org.eclipse.swt.layout.FormData

Copyright (c) 2000, 2008 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html

Contributors: IBM Corporation - initial API and implementation Port to the D programming language: Frank Benoit <benoit@tionex.de>

Members

Classes

FormData
class FormData

Instances of this class are used to define the attachments of a control in a <code>FormLayout</code>. <p> To set a <code>FormData</code> object into a control, you use the <code>setLayoutData ()</code> method. To define attachments for the <code>FormData</code>, set the fields directly, like this: <pre> FormData data = new FormData(); data.left = new FormAttachment(0,5); data.right = new FormAttachment(100,-5); button.setLayoutData(formData); </pre> </p> <p> <code>FormData</code> contains the <code>FormAttachments</code> for each edge of the control that the <code>FormLayout</code> uses to determine the size and position of the control. <code>FormData</code> objects also allow you to set the width and height of controls within a <code>FormLayout</code>. </p>

Meta