The item children that may be added to instances of this class
must be of type ExpandItem.
Important Note
This class is not intended to be subclassed.
ExpandItem, ExpandEvent, ExpandListener, ExpandAdapter, ExpandBar snippets, SWT Example: ControlExample, Sample code and further information
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv ExpandItem[] | |
| pack-priv ExpandItem | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addExpandListener(ExpandListener
the listener which should be notified listener)Adds the listener to the collection of listeners who will
be notified when an item in the receiver is expanded or collapsed
by sending it one of the messages defined in the |
| protected void | checkSubclass()
Checks that this class can be subclassed.
|
| pack-priv Point | computeSizeInPixels(int wHint, int hHint, boolean changed)
Overrides org. |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv long | |
| pack-priv boolean | |
| public ExpandItem | Returns: the item at the given indexthe index of the item to return index)Returns the item at the given, zero-relative index in the receiver. |
| public int | |
| public ExpandItem[] | Returns: the items in the receiverReturns an array of |
| public int | |
| pack-priv long | gtk_key_press_event(long widget, long event)
Overrides org. |
| pack-priv long | gtk_size_allocate(long widget, long allocation)
|
| pack-priv boolean | |
| pack-priv void | |
| public int | Returns: the index of the itemthe search item item)Searches the receiver's list starting at the first item (index 0) until an item is found that is equal to the argument, and returns the index of that item. |
| pack-priv void | |
| pack-priv long | |
| pack-priv void | |
| public void | removeExpandListener(ExpandListener
the listener which should no longer be notified listener)Removes the listener from the collection of listeners who will be notified when items in the receiver are expanded or collapsed. |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void |
| itemCount | back to summary |
|---|---|
| pack-priv int itemCount | |
| items | back to summary |
|---|---|
| pack-priv ExpandItem[] items | |
| lastFocus | back to summary |
|---|---|
| pack-priv ExpandItem lastFocus | |
| spacing | back to summary |
|---|---|
| pack-priv int spacing | |
| ExpandBar | back to summary |
|---|---|
| public ExpandBar(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
| |
| addExpandListener | back to summary |
|---|---|
| public void addExpandListener(ExpandListener listener) Adds the listener to the collection of listeners who will
be notified when an item in the receiver is expanded or collapsed
by sending it one of the messages defined in the
| |
| 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.
| |
| computeSizeInPixels | back to summary |
|---|---|
| pack-priv Point computeSizeInPixels(int wHint, int hHint, boolean changed) Overrides org.
| |
| createHandle | back to summary |
|---|---|
| pack-priv void createHandle(int index) Overrides org.
| |
| createItem | back to summary |
|---|---|
| pack-priv void createItem(ExpandItem item, int style, int index) | |
| createWidget | back to summary |
|---|---|
| pack-priv void createWidget(int index) Overrides org.
| |
| destroyItem | back to summary |
|---|---|
| pack-priv void destroyItem(ExpandItem item) | |
| eventHandle | back to summary |
|---|---|
| pack-priv long eventHandle() Overrides org.
| |
| forceFocus | back to summary |
|---|---|
| pack-priv boolean forceFocus(long focusHandle) Overrides org.
| |
| getItem | back to summary |
|---|---|
| public ExpandItem getItem(int index) Returns the item at the given, zero-relative index in the receiver. Throws an exception if the index is out of range.
| |
| getItemCount | back to summary |
|---|---|
| public int getItemCount() Returns the number of items contained in the receiver.
| |
| getItems | back to summary |
|---|---|
| public ExpandItem[] getItems() Returns an array of Note This is not the actual structure used by the receiver to maintain its list of items, so modifying the array will not affect the receiver.
| |
| getSpacing | back to summary |
|---|---|
| public int getSpacing() Returns the receiver's spacing.
| |
| gtk_key_press_event | back to summary |
|---|---|
| pack-priv long gtk_key_press_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() Overrides org.
| |
| hookEvents | back to summary |
|---|---|
| pack-priv void hookEvents() Overrides org.
| |
| indexOf | back to summary |
|---|---|
| public int indexOf(ExpandItem item) Searches the receiver's list starting at the first item (index 0) until an item is found that is equal to the argument, and returns the index of that item. If no item is found, returns -1.
| |
| layoutItems | back to summary |
|---|---|
| pack-priv void layoutItems() | |
| parentingHandle | back to summary |
|---|---|
| pack-priv long parentingHandle() Overrides org.
| |
| releaseChildren | back to summary |
|---|---|
| pack-priv void releaseChildren(boolean destroy) Overrides org.
| |
| removeExpandListener | back to summary |
|---|---|
| public void removeExpandListener(ExpandListener listener) Removes the listener from the collection of listeners who will be notified when items in the receiver are expanded or collapsed.
| |
| reskinChildren | back to summary |
|---|---|
| pack-priv void reskinChildren(int flags) Overrides org.
| |
| setFontDescription | back to summary |
|---|---|
| pack-priv void setFontDescription(long font) Overrides org.
| |
| setForegroundGdkRGBA | back to summary |
|---|---|
| pack-priv void setForegroundGdkRGBA(GdkRGBA rgba) Overrides org.
| |
| setOrientation | back to summary |
|---|---|
| pack-priv void setOrientation(boolean create) Overrides org.
| |
| setSpacing | back to summary |
|---|---|
| public void setSpacing(int spacing) Sets the receiver's spacing. Spacing specifies the number of points allocated around each item.
| |
| setSpacingInPixels | back to summary |
|---|---|
| pack-priv void setSpacingInPixels(int spacing) | |
| setWidgetBackground | back to summary |
|---|---|
| pack-priv void setWidgetBackground() Overrides org.
| |
| updateScrollBarValue | back to summary |
|---|---|
| pack-priv void updateScrollBarValue(ScrollBar bar) Overrides org.
| |