Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Eclipse Platform Release 3.0
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.

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

### 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.

Constructor Detail

### RowData

    public RowData()

### RowData

    public RowData(int width,
                   int height)

### RowData

    public RowData(Point point)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| 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.