org.eclipse.swt.layout
Class RowData
java.lang.Object
|
+--org.eclipse.swt.layout.RowData
- public final class RowData
- extends Object
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
height specifies the height of the cell in pixels. |
int |
width
width specifies the width of the cell in pixels. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
width
public int width
- width specifies the width of the cell in pixels.
height
public int height
- height specifies the height of the cell in pixels.
RowData
public RowData()
RowData
public RowData(int width,
int height)
RowData
public RowData(Point point)
Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.