org.eclipse.swt.layout
Class RowData

java.lang.Object
  |
  +--org.eclipse.swt.layout.RowData

public final class RowData
extends Object

Safe: Each control controlled by a RowLayout can have its initial width and height specified by setting a RowData object into the control.

The following code uses a RowData object to change the initial size of a Button in a Shell:

 		Display display = new Display();
 		Shell shell = new Shell(display);
 		shell.setLayout(new RowLayout());
 		Button button1 = new Button(shell, SWT.PUSH);
 		button1.setText("Button 1");
 		button1.setLayoutData(new RowData(50, 40));
 

See Also:
RowLayout

Field Summary
 int height
          Enabled: height specifies the height of the cell in pixels.
 int width
          Enabled: width specifies the width of the cell in pixels.
 
Constructor Summary
RowData()
          Enabled:
RowData(int width, int height)
          Enabled:
RowData(Point point)
          Enabled:
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

width

public int width
Enabled: width specifies the width of the cell in pixels.


height

public int height
Enabled: height specifies the height of the cell in pixels.

Constructor Detail

RowData

public RowData()
Enabled:


RowData

public RowData(int width,
               int height)
Enabled:


RowData

public RowData(Point point)
Enabled:



comments?