| java.lang.Object org.eclipse.ui.internal.layout.Row
Row | public class Row (Code) | | Describes a single row (or column) in a CellLayout
since: 3.0 |
Field Summary | |
boolean | grows | boolean | largerThanChildren True iff this row should query its child controls for its size. | int | size Size of this row. |
Constructor Summary | |
public | Row(int size) Creates a fixed-size row with the given width (pixels). | public | Row(boolean growing) Creates a row that automatically computes its size based on the preferred
sizes of its children. | public | Row(int size, boolean largerThanChildren) Creates a growing row. |
Method Summary | |
public static Row | fixed() Construct and return a fixed-size row. | public static Row | fixed(int pixels) Construct and return a fixed-size row. | public static Row | growing() Construct and return a typical growing row. | public static Row | growing(int size, boolean largerThanChildren) |
grows | boolean grows(Code) | | True iff this row will expand to fill available space
|
largerThanChildren | boolean largerThanChildren(Code) | | True iff this row should query its child controls for its size.
|
size | int size(Code) | | Size of this row. For growing rows, this is the relative size
of the row with respect to other rows (ie: a row of size 100 is twice
as wide as a row of size 50). For fixed rows, this is the absolute size
of the row, in pixels.
|
Row | public Row(int size)(Code) | | Creates a fixed-size row with the given width (pixels).
The preferred sizes of child controls are ignored.
Parameters: size - |
Row | public Row(boolean growing)(Code) | | Creates a row that automatically computes its size based on the preferred
sizes of its children.
Parameters: growing - |
Row | public Row(int size, boolean largerThanChildren)(Code) | | Creates a growing row.
Parameters: sizeRatio - determines the size of this row with respect to other growing rows(for example, a row with size = 3 will be 3x as large as a row with size = 1) Parameters: largerThanChildren - true iff the preferred size of this row should take intoaccount the preferred sizes of its children. |
fixed | public static Row fixed()(Code) | | Construct and return a fixed-size row. The row will not grow when the layout
is resized, and its size will be computed from the default sizes of its children.
a new Row |
fixed | public static Row fixed(int pixels)(Code) | | Construct and return a fixed-size row. The row will always have the given
width, regardless of the size of the layout or the preferred sizes of its children.
Parameters: pixels - size of the row a fixed-size row with the given width (in pixels) |
growing | public static Row growing()(Code) | | Construct and return a typical growing row.
a growing row |
growing | public static Row growing(int size, boolean largerThanChildren)(Code) | | Construct and return a growing row with custom properties
Parameters: size - relative size of this row with respect to other growing rows Parameters: largerThanChildren - true iff the preferred size of this row shouldbe based on the preferred sizes of its children a new Row |
|
|