Important Note
This class is not intended to be subclassed.
ExpandBar, Sample code and further information
| Modifier and Type | Field and Description |
|---|---|
| pack-priv long | |
| pack-priv long | |
| pack-priv Control | |
| pack-priv int | |
| pack-priv long | |
| pack-priv long | |
| pack-priv ExpandBar | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| public | ExpandItem(ExpandBar
a composite control which will be the parent of the new instance (cannot be null) parent, int the style of control to construct style)Constructs a new instance of this class given its parent and a style value describing its behavior and appearance. |
| public | ExpandItem(ExpandBar
a composite control which will be the parent of the new instance (cannot be null) parent, int the style of control to construct style, int the zero-relative index to store the receiver in its parent index)Constructs a new instance of this class given its parent, a style value describing its behavior and appearance, and the index at which to place it in the items maintained by its parent. |
| Modifier and Type | Method and Description |
|---|---|
| protected void | checkSubclass()
Overrides org. |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv long | |
| public Control | |
| public boolean | Returns: the expanded stateReturns |
| public int | |
| pack-priv int | |
| public int | |
| public ExpandBar | |
| pack-priv long | |
| pack-priv long | gtk_button_press_event(long widget, long event)
Overrides org. |
| pack-priv long | gtk_enter_notify_event(long widget, long event)
Overrides org. |
| pack-priv long | gtk_focus_out_event(long widget, long event)
Overrides org. |
| pack-priv long | gtk_size_allocate(long widget, long allocation)
|
| pack-priv boolean | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public void | setControl(Control
the new control (or null) control)Sets the control that is shown when the item is expanded. |
| public void | |
| pack-priv boolean | |
| pack-priv void | |
| pack-priv void | |
| public void | |
| pack-priv void | |
| public void | setImage(Image
the image to display on the receiver (may be null) image)Overrides org. |
| pack-priv void | |
| public void | setText(String
the new text string)Overrides org. |
| pack-priv void | |
| pack-priv long |
| boxHandle | back to summary |
|---|---|
| pack-priv long boxHandle | |
| clientHandle | back to summary |
|---|---|
| pack-priv long clientHandle | |
| control | back to summary |
|---|---|
| pack-priv Control control | |
| height | back to summary |
|---|---|
| pack-priv int height | |
| imageHandle | back to summary |
|---|---|
| pack-priv long imageHandle | |
| labelHandle | back to summary |
|---|---|
| pack-priv long labelHandle | |
| parent | back to summary |
|---|---|
| pack-priv ExpandBar parent | |
| width | back to summary |
|---|---|
| pack-priv int width | |
| ExpandItem | back to summary |
|---|---|
| public ExpandItem(ExpandBar 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
| |
| ExpandItem | back to summary |
|---|---|
| public ExpandItem(ExpandBar parent, int style, int index) Constructs a new instance of this class given its parent, a style value describing its behavior and appearance, and the index at which to place it in the items maintained by its parent.
The style value is either one of the style constants defined in
class
| |
| checkSubclass | back to summary |
|---|---|
| protected void checkSubclass() Overrides org. Doc from org. Checks that this class can be subclassed.
The SWT class library is intended to be subclassed
only at specific, controlled points (most notably,
Important Note By providing an implementation of this method that allows a subclass of a class which does not normally allow subclassing to be created, the implementer agrees to be fully responsible for the fact that any such subclass will likely fail between SWT releases and will be strongly platform specific. No support is provided for user-written classes which are implemented in this fashion. The ability to subclass outside of the allowed SWT classes is intended purely to enable those not on the SWT development team to implement patches in order to get around specific limitations in advance of when those limitations can be addressed by the team. Subclassing should not be attempted without an intimate and detailed understanding of the hierarchy.
| |
| createHandle | back to summary |
|---|---|
| pack-priv void createHandle(int index) Overrides org.
| |
| createWidget | back to summary |
|---|---|
| pack-priv void createWidget(int index) Overrides org.
| |
| deregister | back to summary |
|---|---|
| pack-priv void deregister() Overrides org.
| |
| destroyWidget | back to summary |
|---|---|
| pack-priv void destroyWidget() Overrides org.
| |
| dpiChanged | back to summary |
|---|---|
| pack-priv long dpiChanged(long object, long arg0) Overrides org.
| |
| getControl | back to summary |
|---|---|
| public Control getControl() Returns the control that is shown when the item is expanded.
If no control has been set, return
| |
| getExpanded | back to summary |
|---|---|
| public boolean getExpanded() Returns
| |
| getHeaderHeight | back to summary |
|---|---|
| public int getHeaderHeight() Returns the height of the receiver's header
| |
| getHeaderHeightInPixels | back to summary |
|---|---|
| pack-priv int getHeaderHeightInPixels() | |
| getHeight | back to summary |
|---|---|
| public int getHeight() Gets the height of the receiver.
| |
| getParent | back to summary |
|---|---|
| public ExpandBar getParent() Returns the receiver's parent, which must be a
| |
| gtk_activate | back to summary |
|---|---|
| pack-priv long gtk_activate(long widget) Overrides org.
| |
| gtk_button_press_event | back to summary |
|---|---|
| pack-priv long gtk_button_press_event(long widget, long event) Overrides org.
| |
| gtk_enter_notify_event | back to summary |
|---|---|
| pack-priv long gtk_enter_notify_event(long widget, long event) Overrides org.
| |
| gtk_focus_out_event | back to summary |
|---|---|
| pack-priv long gtk_focus_out_event(long widget, long event) Overrides org.
| |
| gtk_size_allocate | back to summary |
|---|---|
| pack-priv long gtk_size_allocate(long widget, long allocation) Overrides org.
| |
| hasFocus | back to summary |
|---|---|
| pack-priv boolean hasFocus() | |
| hookEvents | back to summary |
|---|---|
| pack-priv void hookEvents() Overrides org.
| |
| register | back to summary |
|---|---|
| pack-priv void register() Overrides org.
| |
| release | back to summary |
|---|---|
| pack-priv void release(boolean destroy) Overrides org.
| |
| releaseHandle | back to summary |
|---|---|
| pack-priv void releaseHandle() Overrides org.
| |
| releaseWidget | back to summary |
|---|---|
| pack-priv void releaseWidget() Overrides org.
| |
| resizeControl | back to summary |
|---|---|
| pack-priv void resizeControl() | |
| setControl | back to summary |
|---|---|
| public void setControl(Control control) Sets the control that is shown when the item is expanded.
| |
| setExpanded | back to summary |
|---|---|
| public void setExpanded(boolean expanded) Sets the expanded state of the receiver.
| |
| setFocus | back to summary |
|---|---|
| pack-priv boolean setFocus() | |
| setFontDescription | back to summary |
|---|---|
| pack-priv void setFontDescription(long font) | |
| setForegroundRGBA | back to summary |
|---|---|
| pack-priv void setForegroundRGBA(GdkRGBA rgba) | |
| setHeight | back to summary |
|---|---|
| public void setHeight(int height) Sets the height of the receiver. This is height of the item when it is expanded, excluding the height of the header.
| |
| setHeightInPixels | back to summary |
|---|---|
| pack-priv void setHeightInPixels(int height) | |
| setImage | back to summary |
|---|---|
| public void setImage(Image image) Overrides org. Doc from org. Sets the receiver's image to the argument, which may be null indicating that no image should be displayed. | |
| setOrientation | back to summary |
|---|---|
| pack-priv void setOrientation(boolean create) Overrides org.
| |
| setText | back to summary |
|---|---|
| public void setText(String string) Overrides org. Doc from org. Sets the receiver's text. Note If control characters like '\n', '\t' etc. are used in the string, then the behavior is platform dependent. | |
| showWidget | back to summary |
|---|---|
| pack-priv void showWidget(int index) | |
| windowProc | back to summary |
|---|---|
| pack-priv long windowProc(long handle, long user_data) Overrides org.
| |