All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class CH.ifa.draw.util.CommandChoice

CH.ifa.draw.util.CommandChoice

public class CommandChoice
A Command enabled choice. Selecting a choice executes the corresponding command.

See Also:
Command

Constructor Index

 o CommandChoice()

Method Index

 o addItem(Command)
Adds a command to the menu.
 o itemStateChanged(ItemEvent)
Executes the command.

Constructors

 o CommandChoice
 public CommandChoice()

Methods

 o addItem
 public synchronized void addItem(Command command)
Adds a command to the menu.

 o itemStateChanged
 public void itemStateChanged(ItemEvent e)
Executes the command.


All Packages  Class Hierarchy  This Package  Previous  Next  Index