| Modifier and Type | Field and Description |
|---|---|
| pack-priv Color | |
| pack-priv Control[] | |
| pack-priv static final int | |
| pack-priv Color | |
| pack-priv Control | |
| public int | SASH_WIDTH
The width of all sashes in the form. |
| pack-priv Sash[] | |
| pack-priv Listener | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static int | |
| pack-priv Sash | |
| pack-priv Control[] | |
| public Control | Returns: the control that currently is maximized or nullAnswer the control that currently is maximized in the SashForm. |
| public int | Returns: SWT.HORIZONTAL or SWT.VERTICAL |
| public int | Returns: the width of the sashesReturns the width of the sashes when the controls in the SashForm are laid out. |
| public int | getStyle()
Overrides org. |
| public int[] | Returns: the relative weight of each childAnswer the relative weight of each child in the SashForm. |
| pack-priv void | |
| public void | setBackground(Color
the new color (or null) color)
Sets the receiver's background color to the color specified
by the argument, or to the default system color for the control
if the argument is null.
|
| public void | setForeground(Color
the new color (or null) color)
Sets the receiver's foreground color to the color specified
by the argument, or to the default system color for the control
if the argument is null.
|
| public void | setLayout(Layout
the receiver's new layout or null layout)Overrides org. |
| public void | setMaximizedControl(Control
the control to be maximized or null control)Specify the control that should take up the entire client area of the SashForm. |
| public void | setOrientation(int
SWT.HORIZONTAL or SWT.VERTICAL, SWT.RIGHT_TO_LEFT or SWT.LEFT_TO_RIGHT orientation)
If orientation is SWT.HORIZONTAL, lay the controls in the SashForm
out side by side.
|
| public void | setSashWidth(int
the width of the sashes width)Specify the width of the sashes when the controls in the SashForm are laid out. |
| public void | setToolTipText(String
the new tool tip text (or null) string)
Sets the receiver's tool tip text to the argument, which
may be null indicating that the default tool tip for the
control will be shown.
|
| public void | setWeights(int...
the relative weight of each child weights)Specify the relative weight of each child in the SashForm. |
| background | back to summary |
|---|---|
| pack-priv Color background | |
| controls | back to summary |
|---|---|
| pack-priv Control[] controls | |
| DRAG_MINIMUM | back to summary |
|---|---|
| pack-priv static final int DRAG_MINIMUM | |
| foreground | back to summary |
|---|---|
| pack-priv Color foreground | |
| maxControl | back to summary |
|---|---|
| pack-priv Control maxControl | |
| SASH_WIDTH | back to summary |
|---|---|
| public int SASH_WIDTH The width of all sashes in the form. | |
| sashes | back to summary |
|---|---|
| pack-priv Sash[] sashes | |
| sashListener | back to summary |
|---|---|
| pack-priv Listener sashListener | |
| sashStyle | back to summary |
|---|---|
| pack-priv int sashStyle | |
| SashForm | back to summary |
|---|---|
| public SashForm(Composite parent, int style) Constructs a new instance of this class given its parent and a style value describing its behavior and appearance.
The style value is either one of the style constants defined in
class
| |
| checkStyle | back to summary |
|---|---|
| pack-priv static int checkStyle(int style) | |
| createSash | back to summary |
|---|---|
| pack-priv Sash createSash() | |
| getControls | back to summary |
|---|---|
| pack-priv Control[] getControls(boolean onlyVisible) | |
| getMaximizedControl | back to summary |
|---|---|
| public Control getMaximizedControl() Answer the control that currently is maximized in the SashForm. This value may be null.
| |
| getOrientation | back to summary |
|---|---|
| public int getOrientation() Overrides org. Returns SWT.HORIZONTAL if the controls in the SashForm are laid out side by side or SWT.VERTICAL if the controls in the SashForm are laid out top to bottom.
To retrieve the bidi orientation of the SashForm use
| |
| getSashWidth | back to summary |
|---|---|
| public int getSashWidth() Returns the width of the sashes when the controls in the SashForm are laid out.
| |
| getStyle | back to summary |
|---|---|
| public int getStyle() Overrides org. Doc from org. Returns the receiver's style information.
Note that the value which is returned by this method may
not match the value which was provided to the constructor
when the receiver was created. This can occur when the underlying
operating system does not support a particular combination of
requested styles. For example, if the platform widget used to
implement a particular SWT widget always has scroll bars, the
result of calling this method would always have the
| |
| getWeights | back to summary |
|---|---|
| public int[] getWeights() Answer the relative weight of each child in the SashForm. The weight represents the percent of the total width (if SashForm has Horizontal orientation) or total height (if SashForm has Vertical orientation) each control occupies. The weights are returned in order of the creation of the widgets (weight[0] corresponds to the weight of the first child created).
| |
| onDragSash | back to summary |
|---|---|
| pack-priv void onDragSash(Event event) | |
| setBackground | back to summary |
|---|---|
| public void setBackground(Color color) Overrides org. Doc from org. Sets the receiver's background color to the color specified by the argument, or to the default system color for the control if the argument is null. Note This operation is a hint and may be overridden by the platform. | |
| setForeground | back to summary |
|---|---|
| public void setForeground(Color color) Overrides org. Doc from org. Sets the receiver's foreground color to the color specified by the argument, or to the default system color for the control if the argument is null. Note This operation is a hint and may be overridden by the platform. | |
| setLayout | back to summary |
|---|---|
| public void setLayout(Layout layout) Overrides org. Sets the layout which is associated with the receiver to be the argument which may be null. Note No Layout can be set on this Control because it already manages the size and position of its children.
| |
| setMaximizedControl | back to summary |
|---|---|
| public void setMaximizedControl(Control control) Specify the control that should take up the entire client area of the SashForm. If one control has been maximized, and this method is called with a different control, the previous control will be minimized and the new control will be maximized. If the value of control is null, the SashForm will minimize all controls and return to the default layout where all controls are laid out separated by sashes.
| |
| setOrientation | back to summary |
|---|---|
| public void setOrientation(int orientation) Overrides org. If orientation is SWT.HORIZONTAL, lay the controls in the SashForm out side by side. If orientation is SWT.VERTICAL, lay the controls in the SashForm out top to bottom. Since 3.7, this method can also be called with SWT.RIGHT_TO_LEFT or SWT.LEFT_TO_RIGHT to change the bidi orientation of the SashForm.
| |
| setSashWidth | back to summary |
|---|---|
| public void setSashWidth(int width) Specify the width of the sashes when the controls in the SashForm are laid out.
| |
| setToolTipText | back to summary |
|---|---|
| public void setToolTipText(String string) Overrides org. Doc from org. Sets the receiver's tool tip text to the argument, which may be null indicating that the default tool tip for the control will be shown. For a control that has a default tool tip, such as the Tree control on Windows, setting the tool tip text to an empty string replaces the default, causing no tool tip text to be shown. The mnemonic indicator (character '&') is not displayed in a tool tip. To display a single '&' in the tool tip, the character '&' can be escaped by doubling it in the string. Note This operation is a hint and behavior is platform specific, on Windows for CJK-style mnemonics of the form " (&C)" at the end of the tooltip text are not shown in tooltip. | |
| setWeights | back to summary |
|---|---|
| public void setWeights(int... weights) Specify the relative weight of each child in the SashForm. This will determine what percent of the total width (if SashForm has Horizontal orientation) or total height (if SashForm has Vertical orientation) each control will occupy. The weights must be positive values and there must be an entry for each non-sash child of the SashForm.
| |