|
Eclipse Rich Ajax Platform Release 1.3 |
||||||||||
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));
RowLayout
,
Sample code and further informationField Summary | |
boolean |
exclude
exclude informs the layout to ignore this control when sizing and positioning controls. |
int |
height
height specifies the preferred height in pixels. |
int |
width
width specifies the desired width in pixels. |
Constructor Summary | |
RowData()
Constructs a new instance of RowData using default values. |
|
RowData(int width,
int height)
Constructs a new instance of RowData according to the parameters. |
|
RowData(Point point)
Constructs a new instance of RowData according to the parameter. |
Method Summary | |
String |
toString()
Returns a string containing a concise, human-readable description of the receiver. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public int width
Control.computeSize(int, int, boolean)
public int height
Control.computeSize(int, int, boolean)
public boolean exclude
true
,
the size and position of the control will not be managed by the
layout. If this value is false
, the size and
position of the control will be computed and assigned.
The default value is false
.
Constructor Detail |
public RowData()
public RowData(int width, int height)
width
- a minimum width for the controlheight
- a minimum height for the controlpublic RowData(Point point)
point
- a point whose x coordinate specifies a minimum width for the control
and y coordinate specifies a minimum height for the controlMethod Detail |
public String toString()
|
Eclipse Rich Ajax Platform Release 1.3 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) Innoopract Informationssysteme GmbH and others 2002, 2011. All rights reserved.