Constructs a new instance of this class given its parent (which must be a <code>Tray</code>) and a style value describing its behavior and appearance. The item is added to the end of the items maintained by its parent. <p> The style value is either one of the style constants defined in class <code>SWT</code> which is applicable to instances of this class, or must be built by <em>bitwise OR</em>'ing together (that is, using the <code>int</code> "|" operator) two or more of those <code>SWT</code> style constants. The class description lists the style constants that are applicable to the class. Style bits are also inherited from superclasses. </p>
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 <code>MenuDetectListener</code> interface.
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 <code>SelectionListener</code> interface. <p> <code>widgetSelected</code> is called when the receiver is selected <code>widgetDefaultSelected</code> is called when the receiver is double-clicked </p>
Returns the receiver's parent, which must be a <code>Tray</code>.
Returns the receiver's tool tip, or null if it has not been set.
Returns the receiver's tool tip text, or null if it has not been set.
Returns <code>true</code> if the receiver is visible and <code>false</code> otherwise.
Removes the listener from the collection of listeners who will be notified when the platform-specific context menu trigger has occurred.
Removes the listener from the collection of listeners who will be notified when the receiver is selected by the user.
Sets the receiver's image.
Sets the receiver's tool tip to the argument, which may be null indicating that no tool tip should be shown.
Sets the receiver's tool tip text to the argument, which may be null indicating that no tool tip text should be shown.
Makes the receiver visible if the argument is <code>true</code>, and makes it invisible otherwise.
Returns the receiver's image if it has one, or null if it does not.
Returns the receiver's text, which will be an empty string if it has never been set.
Sets the receiver's image to the argument, which may be null indicating that no image should be displayed.
Sets the receiver's text.
Instances of this class represent icons that can be placed on the system tray or task bar status area. <p> <dl> <dt><b>Styles:</b></dt> <dd>(none)</dd> <dt><b>Events:</b></dt> <dd>DefaultSelection, MenuDetect, Selection</dd> </dl> </p><p> IMPORTANT: This class is <em>not</em> intended to be subclassed. </p>
@see <a href="http://www.eclipse.org/swt/snippets/#tray">Tray, TrayItem snippets</a> @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
@since 3.0