Note that although this class is a subclass of Composite,
it does not make sense to set a layout on it.
Important Note
This class is not intended to be subclassed.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int | |
| pack-priv int | |
| public static RGB | borderInsideRGB
Color of innermost line of drop shadow border. |
| pack-priv int | |
| public static RGB | borderMiddleRGB
Color of middle line of drop shadow border. |
| public static RGB | borderOutsideRGB
Color of outermost line of drop shadow border. |
| pack-priv int | |
| pack-priv int | |
| pack-priv Control | |
| pack-priv int | |
| public int | horizontalSpacing
horizontalSpacing specifies the number of points between the right edge of one cell and the left edge of its neighbouring cell to the right. |
| pack-priv Listener | |
| public int | marginHeight
marginHeight specifies the number of points of vertical margin that will be placed along the top and bottom edges of the form. |
| public int | marginWidth
marginWidth specifies the number of points of horizontal margin that will be placed along the left and right edges of the form. |
| pack-priv static final int | |
| pack-priv Point | |
| pack-priv static final int | |
| pack-priv Color | |
| pack-priv boolean | |
| pack-priv int | |
| pack-priv boolean | |
| pack-priv Control | |
| pack-priv Control | |
| pack-priv Control | |
| public int | verticalSpacing
verticalSpacing specifies the number of points between the bottom edge of one cell and the top edge of its neighbouring cell underneath. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static int | |
| public Rectangle | computeTrim(int
the desired x coordinate of the client area x, int the desired y coordinate of the client area y, int the desired width of the client area width, int the desired height of the client area height)
Given a desired client area for the receiver
(as described by the arguments), returns the bounding
rectangle which would be required to produce that client
area.
|
| public Rectangle | getClientArea()
Returns a rectangle which describes the area of the
receiver which is capable of displaying data (that is,
not covered by the "trimmings").
|
| public Control | |
| public Control | Returns: the control in the top center of the pane or nullReturns Control that appears in the top center of the pane. |
| public Control | Returns: the control in the top left corner of the pane or nullReturns the Control that appears in the top left corner of the pane. |
| public Control | Returns: the control in the top right corner of the pane or nullReturns the control in the top right corner of the pane. |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public void | setBorderVisible(boolean
true if the border should be displayed show)Specify whether the border should be displayed or not. |
| public void | |
| public void | setLayout(Layout
the receiver's new layout or null layout)Overrides org. |
| pack-priv void | |
| public void | setTopCenter(Control
the control to be displayed in the top center or null topCenter)Set the control that appears in the top center of the pane. |
| public void | setTopCenterSeparate(boolean
true if the topCenter will always appear on a separate line by itself show)If true, the topCenter will always appear on a separate line by itself, otherwise the topCenter will appear in the top row if there is room and will be moved to the second row if required. |
| public void | setTopLeft(Control
the control to be displayed in the top left corner or null c)Set the control that appears in the top left corner of the pane. |
| public void | setTopRight(Control
the control to be displayed in the top right corner or null c)Set the control that appears in the top right corner of the pane. |
| BORDER1_COLOR | back to summary |
|---|---|
| pack-priv static final int BORDER1_COLOR | |
| borderBottom | back to summary |
|---|---|
| pack-priv int borderBottom | |
| borderInsideRGB | back to summary |
|---|---|
| public static RGB borderInsideRGB
Deprecated
Color of innermost line of drop shadow border. NOTE This field is badly named and can not be fixed for backwards compatibility. It should be capitalized. | |
| borderLeft | back to summary |
|---|---|
| pack-priv int borderLeft | |
| borderMiddleRGB | back to summary |
|---|---|
| public static RGB borderMiddleRGB
Deprecated
Color of middle line of drop shadow border. NOTE This field is badly named and can not be fixed for backwards compatibility. It should be capitalized. | |
| borderOutsideRGB | back to summary |
|---|---|
| public static RGB borderOutsideRGB
Deprecated
Color of outermost line of drop shadow border. NOTE This field is badly named and can not be fixed for backwards compatibility. It should be capitalized. | |
| borderRight | back to summary |
|---|---|
| pack-priv int borderRight | |
| borderTop | back to summary |
|---|---|
| pack-priv int borderTop | |
| content | back to summary |
|---|---|
| pack-priv Control content | |
| highlight | back to summary |
|---|---|
| pack-priv int highlight | |
| horizontalSpacing | back to summary |
|---|---|
| public int horizontalSpacing horizontalSpacing specifies the number of points between the right edge of one cell and the left edge of its neighbouring cell to the right. The default value is 1. | |
| listener | back to summary |
|---|---|
| pack-priv Listener listener | |
| marginHeight | back to summary |
|---|---|
| public int marginHeight marginHeight specifies the number of points of vertical margin that will be placed along the top and bottom edges of the form. The default value is 0. | |
| marginWidth | back to summary |
|---|---|
| public int marginWidth marginWidth specifies the number of points of horizontal margin that will be placed along the left and right edges of the form. The default value is 0. | |
| OFFSCREEN | back to summary |
|---|---|
| pack-priv static final int OFFSCREEN | |
| oldSize | back to summary |
|---|---|
| pack-priv Point oldSize | |
| SELECTION_BACKGROUND | back to summary |
|---|---|
| pack-priv static final int SELECTION_BACKGROUND | |
| selectionBackground | back to summary |
|---|---|
| pack-priv Color selectionBackground | |
| separateTopCenter | back to summary |
|---|---|
| pack-priv boolean separateTopCenter | |
| separator | back to summary |
|---|---|
| pack-priv int separator | |
| showBorder | back to summary |
|---|---|
| pack-priv boolean showBorder | |
| topCenter | back to summary |
|---|---|
| pack-priv Control topCenter | |
| topLeft | back to summary |
|---|---|
| pack-priv Control topLeft | |
| topRight | back to summary |
|---|---|
| pack-priv Control topRight | |
| verticalSpacing | back to summary |
|---|---|
| public int verticalSpacing verticalSpacing specifies the number of points between the bottom edge of one cell and the top edge of its neighbouring cell underneath. The default value is 1. | |
| ViewForm | back to summary |
|---|---|
| public ViewForm(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) | |
| computeTrim | back to summary |
|---|---|
| public Rectangle computeTrim(int x, int y, int width, int height) Overrides org. Doc from org. Given a desired client area for the receiver (as described by the arguments), returns the bounding rectangle which would be required to produce that client area. In other words, it returns a rectangle such that, if the receiver's bounds were set to that rectangle, the area of the receiver which is capable of displaying data (that is, not covered by the "trimmings") would be the rectangle described by the arguments (relative to the receiver's parent). | |
| getClientArea | back to summary |
|---|---|
| public Rectangle getClientArea() Overrides org. Doc from org. Returns a rectangle which describes the area of the receiver which is capable of displaying data (that is, not covered by the "trimmings"). | |
| getContent | back to summary |
|---|---|
| public Control getContent() Returns the content area.
| |
| getTopCenter | back to summary |
|---|---|
| public Control getTopCenter() Returns Control that appears in the top center of the pane. Typically this is a toolbar.
| |
| getTopLeft | back to summary |
|---|---|
| public Control getTopLeft() Returns the Control that appears in the top left corner of the pane. Typically this is a label such as CLabel.
| |
| getTopRight | back to summary |
|---|---|
| public Control getTopRight() Returns the control in the top right corner of the pane. Typically this is a Close button or a composite with a Menu and Close button.
| |
| onDispose | back to summary |
|---|---|
| pack-priv void onDispose(Event event) | |
| onPaint | back to summary |
|---|---|
| pack-priv void onPaint(GC gc) | |
| onResize | back to summary |
|---|---|
| pack-priv void onResize() | |
| setBorderVisible | back to summary |
|---|---|
| public void setBorderVisible(boolean show) Specify whether the border should be displayed or not.
| |
| setContent | back to summary |
|---|---|
| public void setContent(Control content) Sets the content. Setting the content to null will remove it from the pane - however, the creator of the content must dispose of the content.
| |
| 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.
| |
| setSelectionBackground | back to summary |
|---|---|
| pack-priv void setSelectionBackground(Color color) | |
| setTopCenter | back to summary |
|---|---|
| public void setTopCenter(Control topCenter) Set the control that appears in the top center of the pane. Typically this is a toolbar. The topCenter is optional. Setting the topCenter to null will remove it from the pane - however, the creator of the topCenter must dispose of the topCenter.
| |
| setTopCenterSeparate | back to summary |
|---|---|
| public void setTopCenterSeparate(boolean show) If true, the topCenter will always appear on a separate line by itself, otherwise the topCenter will appear in the top row if there is room and will be moved to the second row if required.
| |
| setTopLeft | back to summary |
|---|---|
| public void setTopLeft(Control c) Set the control that appears in the top left corner of the pane. Typically this is a label such as CLabel. The topLeft is optional. Setting the top left control to null will remove it from the pane - however, the creator of the control must dispose of the control.
| |
| setTopRight | back to summary |
|---|---|
| public void setTopRight(Control c) Set the control that appears in the top right corner of the pane. Typically this is a Close button or a composite with a Menu and Close button. The topRight is optional. Setting the top right control to null will remove it from the pane - however, the creator of the control must dispose of the control.
| |