Package com._1c.g5.lwt.layouts
Class LightRowLayoutData
- java.lang.Object
-
- com._1c.g5.lwt.layouts.LightRowLayoutData
-
- All Implemented Interfaces:
ILightLayoutData
public final class LightRowLayoutData extends Object implements ILightLayoutData
Each control controlled by aRowLayout
can have its initial width and height specified by setting aRowData
object into the control.The following code uses a
RowData
object to change the initial size of aButton
in aShell
: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
, Sample code and further information
-
-
Constructor Summary
Constructors Constructor Description LightRowLayoutData()
Constructs a new instance of RowData using default values.LightRowLayoutData(int width, int height)
Constructs a new instance of RowData according to the parameters.LightRowLayoutData(org.eclipse.swt.graphics.Point point)
Constructs a new instance of RowData according to the parameter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
Returns a string containing a concise, human-readable description of the receiver.
-
-
-
Field Detail
-
width
public int width
width specifies the desired width in pixels. This value is the wHint passed into Control.computeSize(int, int, boolean) to determine the preferred size of the control. The default value is SWT.DEFAULT.- See Also:
Control.computeSize(int, int, boolean)
-
height
public int height
height specifies the preferred height in pixels. This value is the hHint passed into Control.computeSize(int, int, boolean) to determine the preferred size of the control. The default value is SWT.DEFAULT.- See Also:
Control.computeSize(int, int, boolean)
-
exclude
public boolean exclude
exclude informs the layout to ignore this control when sizing and positioning controls. If this value istrue
, the size and position of the control will not be managed by the layout. If this value isfalse
, the size and position of the control will be computed and assigned. The default value isfalse
.- Since:
- 3.1
-
-
Constructor Detail
-
LightRowLayoutData
public LightRowLayoutData()
Constructs a new instance of RowData using default values.
-
LightRowLayoutData
public LightRowLayoutData(int width, int height)
Constructs a new instance of RowData according to the parameters. A value of SWT.DEFAULT indicates that no minimum width or no minimum height is specified.- Parameters:
width
- a minimum width for the controlheight
- a minimum height for the control
-
LightRowLayoutData
public LightRowLayoutData(org.eclipse.swt.graphics.Point point)
Constructs a new instance of RowData according to the parameter. A value of SWT.DEFAULT indicates that no minimum width or no minimum height is specified.- Parameters:
point
- a point whose x coordinate specifies a minimum width for the control and y coordinate specifies a minimum height for the control
-
-