|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.eclipse.swt.layout.RowData
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));
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 |
public int width
public int height
| Constructor Detail |
public RowData()
public RowData(int width,
int height)
public RowData(Point point)
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||