com.jpackages.jtray
Class JTrayNativeMenuItem

java.lang.Object
  extended by com.jpackages.jtray.JTrayNativeMenuItem

public class JTrayNativeMenuItem
extends java.lang.Object

This class defines a native menu item.

Copyright (c) 2001-2007

Author:
JPackages.com

Constructor Summary
JTrayNativeMenuItem(java.lang.String text)
          Create a new native menu item with the specified text.
 
Method Summary
 java.lang.String getText()
          Get the text displayed in this native menu item
 void setEnabled(boolean b)
          Enable or disable this menu item.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JTrayNativeMenuItem

public JTrayNativeMenuItem(java.lang.String text)

Create a new native menu item with the specified text.

Parameters:
text - The text to be displayed in the menu item
Method Detail

getText

public java.lang.String getText()

Get the text displayed in this native menu item

Returns:
The text displayed in this item

setEnabled

public void setEnabled(boolean b)

Enable or disable this menu item.

Disabled native menu items will appear grayed out and will not be clickable.

Parameters:
b - true to enable, false to disable