Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Rich Ajax Platform
Release 1.2

org.eclipse.swt.layout
Class RowData

java.lang.Object
  extended by
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));
 

Since:
1.0
See Also:
RowLayout, Sample code and further information

Field 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

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 is 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

RowData

public RowData()
Constructs a new instance of RowData using default values.


RowData

public RowData(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 control
height - a minimum height for the control

RowData

public RowData(
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
Method Detail

toString

public 
String toString()
Returns a string containing a concise, human-readable description of the receiver.

Returns:
a string representation of the RowData object

Eclipse Rich Ajax Platform
Release 1.2

Copyright (c) Innoopract Informationssysteme GmbH and others 2002, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire