moka.x
Class MenuItem

java.lang.Object
  extended bymoka.lang.Object
      extended bymoka.event.EventListener
          extended bymoka.x.MenuItem

public class MenuItem
extends EventListener

MenuItem class represents an item of a menu. All items in a menu must belong to the class MenuItem, or one of its subclasses.

Since:
MDK2.1

Field Summary
 java.lang.String caption
          The caption of the MenuItem.
 EventListener listen
          The event listener for this MenuItem.
 char mnemonic
          The mnemonic associated with this MenuItem.
 
Constructor Summary
MenuItem()
           
MenuItem(java.lang.String caption)
           
 
Method Summary
 void finalize()
          Frees the memory of system ressources used by this MenuItem object.
 void setCaption(java.lang.String caption)
          Sets the caption of the MenuItem.
 
Methods inherited from class moka.event.EventListener
eventTriggered
 
Methods inherited from class moka.lang.Object
equals, getClassName, toString
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

caption

public java.lang.String caption
The caption of the MenuItem. Should be only read.


listen

public EventListener listen
The event listener for this MenuItem.


mnemonic

public char mnemonic
The mnemonic associated with this MenuItem.

Constructor Detail

MenuItem

public MenuItem()

MenuItem

public MenuItem(java.lang.String caption)
Method Detail

setCaption

public void setCaption(java.lang.String caption)
Sets the caption of the MenuItem.

Parameters:
caption - The caption of the MenuItem.

finalize

public void finalize()
Frees the memory of system ressources used by this MenuItem object.

Overrides:
finalize in class Object