CoolBar.
Important Note
This class is not intended to be subclassed.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Image | |
| pack-priv ToolBar | |
| private int | |
| private static final int | |
| private static final int | |
| private int | |
| pack-priv Control | |
| pack-priv static final int | |
| pack-priv boolean | |
| pack-priv Rectangle | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv CoolBar | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public | CoolItem(CoolBar
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 at which to store the receiver in its parent index)Constructs a new instance of this class given its parent
(which must be a |
| Modifier and Type | Method and Description |
|---|---|
| public void | addSelectionListener(SelectionListener
the listener which should be notified when the control is selected by the user listener)Adds the listener to the collection of listeners that will
be notified when the control is selected by the user, by sending it one
of the messages defined in the |
| pack-priv void | |
| protected void | checkSubclass()
Overrides org. |
| public Point | Returns: the preferred sizethe width hint (can be wHint, int SWT.DEFAULT)the height hint (can be hHint)SWT.DEFAULT)Returns the preferred size of the receiver. |
| pack-priv Image | |
| public void | dispose()
Overrides org. |
| public Rectangle | Returns: the receiver's bounding rectangleReturns a rectangle describing the receiver's size and location relative to its parent. |
| public Control | Returns: the control that is contained by the receiverReturns the control that is associated with the receiver. |
| public Point | Returns: a point containing the minimum width and height of the cool item, in SWT logical pointsReturns the minimum size that the cool item can be resized to using the cool item's gripper. |
| public CoolBar | |
| public Point | Returns: the receiver's ideal sizeReturns a point describing the receiver's ideal size. |
| public Point | |
| pack-priv Rectangle | |
| pack-priv int | |
| pack-priv void | |
| public void | removeSelectionListener(SelectionListener
the listener which should no longer be notified listener)Removes the listener from the collection of listeners that will be notified when the control is selected by the user. |
| pack-priv void | |
| public void | setControl(Control
the new control that will be contained by the receiver control)Sets the control that is associated with the receiver to the argument. |
| public void | setMinimumSize(int
the minimum width of the cool item, in SWT logical points width, int the minimum height of the cool item, in SWT logical points height)Sets the minimum size that the cool item can be resized to using the cool item's gripper, to the point specified by the arguments. |
| public void | setMinimumSize(Point
a point representing the minimum width and height of the cool item, in SWT logical points size)Sets the minimum size that the cool item can be resized to using the cool item's gripper, to the point specified by the argument. |
| public void | setPreferredSize(int
the new ideal width for the receiver width, int the new ideal height for the receiver height)Sets the receiver's ideal size to the point specified by the arguments. |
| public void | setPreferredSize(Point
the new ideal size for the receiver size)Sets the receiver's ideal size to the point specified by the argument. |
| public void | setSize(int
the new width for the receiver width, int the new height for the receiver height)Sets the receiver's size to the point specified by the arguments. |
| public void | |
| pack-priv void |
| arrowImage | back to summary |
|---|---|
| pack-priv Image arrowImage | |
| chevron | back to summary |
|---|---|
| pack-priv ToolBar chevron | |
| CHEVRON_HORIZONTAL_TRIM | back to summary |
|---|---|
| private int CHEVRON_HORIZONTAL_TRIM | |
| CHEVRON_IMAGE_WIDTH | back to summary |
|---|---|
| private static final int CHEVRON_IMAGE_WIDTH | |
| CHEVRON_LEFT_MARGIN | back to summary |
|---|---|
| private static final int CHEVRON_LEFT_MARGIN | |
| CHEVRON_VERTICAL_TRIM | back to summary |
|---|---|
| private int CHEVRON_VERTICAL_TRIM | |
| control | back to summary |
|---|---|
| pack-priv Control control | |
| GRABBER_WIDTH | back to summary |
|---|---|
| pack-priv static final int GRABBER_WIDTH | |
| ideal | back to summary |
|---|---|
| pack-priv boolean ideal | |
| itemBounds | back to summary |
|---|---|
| pack-priv Rectangle itemBounds | |
| MARGIN_WIDTH | back to summary |
|---|---|
| pack-priv static final int MARGIN_WIDTH | |
| MINIMUM_WIDTH | back to summary |
|---|---|
| pack-priv static final int MINIMUM_WIDTH | |
| minimumHeight | back to summary |
|---|---|
| pack-priv int minimumHeight | |
| minimumWidth | back to summary |
|---|---|
| pack-priv int minimumWidth | |
| parent | back to summary |
|---|---|
| pack-priv CoolBar parent | |
| preferredHeight | back to summary |
|---|---|
| pack-priv int preferredHeight | |
| preferredWidth | back to summary |
|---|---|
| pack-priv int preferredWidth | |
| requestedWidth | back to summary |
|---|---|
| pack-priv int requestedWidth | |
| wrap | back to summary |
|---|---|
| pack-priv boolean wrap | |
| CoolItem | back to summary |
|---|---|
| public CoolItem(CoolBar parent, int style) Constructs a new instance of this class given its parent
(which must be a
The style value is either one of the style constants defined in
class
| |
| CoolItem | back to summary |
|---|---|
| public CoolItem(CoolBar parent, int style, int index) Constructs a new instance of this class given its parent
(which must be a
The style value is either one of the style constants defined in
class
| |
| addSelectionListener | back to summary |
|---|---|
| public void addSelectionListener(SelectionListener listener) Adds the listener to the collection of listeners that will
be notified when the control is selected by the user, by sending it one
of the messages defined in the
If
| |
| calculateChevronTrim | back to summary |
|---|---|
| pack-priv void calculateChevronTrim() | |
| 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.
| |
| computeSize | back to summary |
|---|---|
| public Point computeSize(int wHint, int hHint) Returns the preferred size of the receiver.
The preferred size of a
| |
| createArrowImage | back to summary |
|---|---|
| pack-priv Image createArrowImage(int width, int height) | |
| dispose | back to summary |
|---|---|
| public void dispose() Overrides org. Doc from org. Disposes of the operating system resources associated with
the receiver and all its descendants. After this method has
been invoked, the receiver and all descendants will answer
Note This method is not called recursively on the descendants
of the receiver. This means that, widget implementers can not
detect when a widget is being disposed of by re-implementing
this method, but should instead listen for the
| |
| getBounds | back to summary |
|---|---|
| public Rectangle getBounds() Returns a rectangle describing the receiver's size and location relative to its parent.
| |
| getControl | back to summary |
|---|---|
| public Control getControl() Returns the control that is associated with the receiver.
| |
| getMinimumSize | back to summary |
|---|---|
| public Point getMinimumSize() Returns the minimum size that the cool item can be resized to using the cool item's gripper.
| |
| getParent | back to summary |
|---|---|
| public CoolBar getParent() Returns the receiver's parent, which must be a
| |
| getPreferredSize | back to summary |
|---|---|
| public Point getPreferredSize() Returns a point describing the receiver's ideal size. The x coordinate of the result is the ideal width of the receiver. The y coordinate of the result is the ideal height of the receiver.
| |
| getSize | back to summary |
|---|---|
| public Point getSize() Returns a point describing the receiver's size. The x coordinate of the result is the width of the receiver. The y coordinate of the result is the height of the receiver.
| |
| internalGetBounds | back to summary |
|---|---|
| pack-priv Rectangle internalGetBounds() | |
| internalGetMinimumWidth | back to summary |
|---|---|
| pack-priv int internalGetMinimumWidth() | |
| onSelection | back to summary |
|---|---|
| pack-priv void onSelection(Event ev) | |
| removeSelectionListener | back to summary |
|---|---|
| public void removeSelectionListener(SelectionListener listener) Removes the listener from the collection of listeners that will be notified when the control is selected by the user.
| |
| setBounds | back to summary |
|---|---|
| pack-priv void setBounds(int x, int y, int width, int height) | |
| setControl | back to summary |
|---|---|
| public void setControl(Control control) Sets the control that is associated with the receiver to the argument.
| |
| setMinimumSize | back to summary |
|---|---|
| public void setMinimumSize(int width, int height) Sets the minimum size that the cool item can be resized to using the cool item's gripper, to the point specified by the arguments.
| |
| setMinimumSize | back to summary |
|---|---|
| public void setMinimumSize(Point size) Sets the minimum size that the cool item can be resized to using the cool item's gripper, to the point specified by the argument.
| |
| setPreferredSize | back to summary |
|---|---|
| public void setPreferredSize(int width, int height) Sets the receiver's ideal size to the point specified by the arguments.
| |
| setPreferredSize | back to summary |
|---|---|
| public void setPreferredSize(Point size) Sets the receiver's ideal size to the point specified by the argument.
| |
| setSize | back to summary |
|---|---|
| public void setSize(int width, int height) Sets the receiver's size to the point specified by the arguments. Note Attempting to set the width or height of the receiver to a negative number will cause that value to be set to zero instead.
| |
| setSize | back to summary |
|---|---|
| public void setSize(Point size) Sets the receiver's size to the point specified by the argument. Note Attempting to set the width or height of the receiver to a negative number will cause them to be set to zero instead.
| |
| updateChevron | back to summary |
|---|---|
| pack-priv void updateChevron() | |