Important Note
This class is not intended to be subclassed.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Image | |
| pack-priv long | |
| pack-priv ImageList | |
| pack-priv Tray | |
| pack-priv ToolTip | |
| pack-priv long | |
| pack-priv String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addMenuDetectListener(MenuDetectListener
the listener which should be notified listener)Adds the listener to the collection of listeners who will
be notified when the platform-specific context menu trigger
has occurred, by sending it one of the messages defined in
the |
| public void | addSelectionListener(SelectionListener
the listener which should be notified when the receiver is selected by the user listener)Adds the listener to the collection of listeners who will
be notified when the receiver is selected by the user, by sending
it one of the messages defined in the |
| protected void | checkSubclass()
Overrides org. |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public Image | Returns: the receiver's highlight imageReturns the receiver's highlight image if it has one, or null if it does not. |
| public Tray | |
| public ToolTip | Returns: the receiver's tool tip textReturns the receiver's tool tip, or null if it has not been set. |
| public String | Returns: the receiver's tool tip textReturns the receiver's tool tip text, or null if it has not been set. |
| public boolean | Returns: the receiver's visibilityReturns |
| pack-priv long | |
| pack-priv long | gtk_button_press_event(long widget, long event)
Overrides org. |
| pack-priv void | gtk_gesture_press_event(long
the corresponding controller responsible for capturing the event gesture, int how many touch/button presses happened with this one n_press, double the x coordinate, in widget allocation coordinates x, double the y coordinate, in widget allocation coordinates y, long the GdkEvent captured event)Overrides org. |
| pack-priv long | gtk_size_allocate(long widget, long allocation)
|
| pack-priv long | gtk_status_icon_popup_menu(long widget, long button, long activate_time)
Overrides org. |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public void | removeMenuDetectListener(MenuDetectListener
the listener which should no longer be notified listener)Removes the listener from the collection of listeners who will be notified when the platform-specific context menu trigger has occurred. |
| public void | removeSelectionListener(SelectionListener
the listener which should no longer be notified listener)Removes the listener from the collection of listeners who will be notified when the receiver is selected by the user. |
| public void | |
| public void | setImage(Image
the new image image)Overrides org. |
| public void | setToolTip(ToolTip
the new tool tip (or null) toolTip)Sets the receiver's tool tip to the argument, which may be null indicating that no tool tip should be shown. |
| 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 | setVisible(boolean
the new visibility state visible)Makes the receiver visible if the argument is |
| highlightImage | back to summary |
|---|---|
| pack-priv Image highlightImage | |
| imageHandle | back to summary |
|---|---|
| pack-priv long imageHandle | |
| imageList | back to summary |
|---|---|
| pack-priv ImageList imageList | |
| parent | back to summary |
|---|---|
| pack-priv Tray parent | |
| toolTip | back to summary |
|---|---|
| pack-priv ToolTip toolTip | |
| tooltipsHandle | back to summary |
|---|---|
| pack-priv long tooltipsHandle | |
| toolTipText | back to summary |
|---|---|
| pack-priv String toolTipText | |
| TrayItem | back to summary |
|---|---|
| public TrayItem(Tray 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
| |
| addMenuDetectListener | back to summary |
|---|---|
| public void addMenuDetectListener(MenuDetectListener listener) Adds the listener to the collection of listeners who will
be notified when the platform-specific context menu trigger
has occurred, by sending it one of the messages defined in
the
| |
| addSelectionListener | back to summary |
|---|---|
| public void addSelectionListener(SelectionListener listener) Adds the listener to the collection of listeners who will
be notified when the receiver is selected by the user, 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.
| |
| 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.
| |
| getHighlightImage | back to summary |
|---|---|
| public Image getHighlightImage() Returns the receiver's highlight image if it has one, or null if it does not.
| |
| getParent | back to summary |
|---|---|
| public Tray getParent() Returns the receiver's parent, which must be a
| |
| getToolTip | back to summary |
|---|---|
| public ToolTip getToolTip() Returns the receiver's tool tip, or null if it has not been set.
| |
| getToolTipText | back to summary |
|---|---|
| public String getToolTipText() Returns the receiver's tool tip text, or null if it has not been set.
| |
| getVisible | back to summary |
|---|---|
| public boolean getVisible() Returns
| |
| 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_gesture_press_event | back to summary |
|---|---|
| pack-priv void gtk_gesture_press_event(long gesture, int n_press, double x, double y, long event) Overrides org.
| |
| gtk_size_allocate | back to summary |
|---|---|
| pack-priv long gtk_size_allocate(long widget, long allocation) Overrides org.
| |
| gtk_status_icon_popup_menu | back to summary |
|---|---|
| pack-priv long gtk_status_icon_popup_menu(long widget, long button, long activate_time) Overrides org.
| |
| hookEvents | back to summary |
|---|---|
| pack-priv void hookEvents() Overrides org.
| |
| register | back to summary |
|---|---|
| pack-priv void register() Overrides org.
| |
| releaseHandle | back to summary |
|---|---|
| pack-priv void releaseHandle() Overrides org.
| |
| releaseWidget | back to summary |
|---|---|
| pack-priv void releaseWidget() Overrides org.
| |
| removeMenuDetectListener | back to summary |
|---|---|
| public void removeMenuDetectListener(MenuDetectListener listener) Removes the listener from the collection of listeners who will be notified when the platform-specific context menu trigger has occurred.
| |
| removeSelectionListener | back to summary |
|---|---|
| public void removeSelectionListener(SelectionListener listener) Removes the listener from the collection of listeners who will be notified when the receiver is selected by the user.
| |
| setHighlightImage | back to summary |
|---|---|
| public void setHighlightImage(Image image) Sets the receiver's highlight image.
| |
| setImage | back to summary |
|---|---|
| public void setImage(Image image) Overrides org. Sets the receiver's image.
| |
| setToolTip | back to summary |
|---|---|
| public void setToolTip(ToolTip toolTip) Sets the receiver's tool tip to the argument, which may be null indicating that no tool tip should be shown.
| |
| setToolTipText | back to summary |
|---|---|
| public void setToolTipText(String 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. 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.
| |
| setVisible | back to summary |
|---|---|
| public void setVisible(boolean visible) Makes the receiver visible if the argument is
| |