|
Eclipse Platform Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.swt.layout.RowData
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));
Field Summary | |
int | height
height specifies the height of the cell in pixels. |
int | width
width specifies the width of the cell in pixels. |
Constructor Summary | |
RowData()
| |
RowData(int width,
int height)
| |
RowData(Point point)
|
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)
|
Eclipse Platform Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2004. All rights reserved.