SysTray for Java
v2.4.1  

snoozesoft.systray4j
Class CheckableMenuItem

java.lang.Object
  extended bysnoozesoft.systray4j.SysTrayMenuItem
      extended bysnoozesoft.systray4j.CheckableMenuItem

public class CheckableMenuItem
extends SysTrayMenuItem

This class represents a labeled menu item with a check mark.


Constructor Summary
CheckableMenuItem(java.lang.String label)
          Creates a new CheckableMenuItem object.
CheckableMenuItem(java.lang.String label, java.lang.String actionCommand)
          Creates a new CheckableMenuItem object.
 
Method Summary
 boolean getState()
          Getter for the state of this item.
 void setState(boolean state)
          Checks/unchecks this item according to state.
 
Methods inherited from class snoozesoft.systray4j.SysTrayMenuItem
addSysTrayMenuListener, getActionCommand, getLabel, isEnabled, removeSysTrayMenuListener, setActionCommand, setEnabled, setLabel
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckableMenuItem

public CheckableMenuItem(java.lang.String label)
Creates a new CheckableMenuItem object.

Parameters:
label - The label of the item.

CheckableMenuItem

public CheckableMenuItem(java.lang.String label,
                         java.lang.String actionCommand)
Creates a new CheckableMenuItem object.

Parameters:
label - The label of the item.
actionCommand - The action command emitted when this item is clicked.
Method Detail

getState

public boolean getState()
Getter for the state of this item.

Returns:
true if this item is currently checked.

setState

public void setState(boolean state)
Checks/unchecks this item according to state.

Parameters:
state - if true this item will be checked.

SysTray for Java
v2.4.1