de.sciss.gui
Class MenuItem

java.lang.Object
  extended by de.sciss.gui.MenuItem
All Implemented Interfaces:
MenuNode
Direct Known Subclasses:
MenuCheckItem, MenuGroup, MenuSeparator

public class MenuItem
extends java.lang.Object
implements MenuNode

Version:
0.71, 27-Jul-08
Author:
Hanns Holger Rutz

Nested Class Summary
protected static class MenuItem.Realized
           
 
Nested classes/interfaces inherited from interface de.sciss.gui.MenuNode
MenuNode.DummyAction
 
Field Summary
protected  java.util.Map mapRealized
           
 
Fields inherited from interface de.sciss.gui.MenuNode
IDENTIFIER
 
Constructor Summary
MenuItem(java.lang.String id, javax.swing.Action a)
           
MenuItem(java.lang.String id, java.lang.String text)
           
MenuItem(java.lang.String id, java.lang.String text, javax.swing.KeyStroke stroke)
           
 
Method Summary
 javax.swing.JComponent create(AbstractWindow w)
           
protected  javax.swing.JComponent createComponent(javax.swing.Action a)
           
 void destroy(AbstractWindow w)
           
 javax.swing.Action getAction()
           
 javax.swing.Action getAction(AbstractWindow w)
           
 java.lang.String getID()
           
 java.util.Iterator getRealized()
           
 void put(AbstractWindow w, javax.swing.Action a)
           
 void remove(AbstractWindow w)
           
 void setEnabled(boolean b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mapRealized

protected final java.util.Map mapRealized
Constructor Detail

MenuItem

public MenuItem(java.lang.String id,
                javax.swing.Action a)

MenuItem

public MenuItem(java.lang.String id,
                java.lang.String text)

MenuItem

public MenuItem(java.lang.String id,
                java.lang.String text,
                javax.swing.KeyStroke stroke)
Method Detail

setEnabled

public void setEnabled(boolean b)
Specified by:
setEnabled in interface MenuNode

getID

public java.lang.String getID()
Specified by:
getID in interface MenuNode

put

public void put(AbstractWindow w,
                javax.swing.Action a)

remove

public void remove(AbstractWindow w)

getAction

public javax.swing.Action getAction()
Specified by:
getAction in interface MenuNode

getAction

public javax.swing.Action getAction(AbstractWindow w)

create

public javax.swing.JComponent create(AbstractWindow w)
Specified by:
create in interface MenuNode

createComponent

protected javax.swing.JComponent createComponent(javax.swing.Action a)

destroy

public void destroy(AbstractWindow w)
Specified by:
destroy in interface MenuNode

getRealized

public java.util.Iterator getRealized()