|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdsto.dfc.swing.commands.CompositeCmdMenuProvider
public class CompositeCmdMenuProvider
Implements the command menu provider interface for composite commands.
| Field Summary | |
|---|---|
protected ButtonGroup |
buttonGroup
|
protected ArrayList |
changeListeners
|
protected CompositeCommand |
compositeCmd
|
| Constructor Summary | |
|---|---|
CompositeCmdMenuProvider(CompositeCommand command)
|
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
|
void |
addChangeListener(ChangeListener l)
Custom menu providers should fire change events when the menu UI needs to be updated. |
protected JMenuItem |
createMenuItem(ButtonGroup itemButtonGroup,
Command childCmd)
Create a menu item for the child command |
List |
createMenuItems()
Create the menu items that represent the UI for the command. |
void |
destroyMenuItems(List menuItems)
Destroy menu items created by createMenuItems (). |
protected void |
fireStateChanged()
|
protected void |
fireStateChanged(ChangeEvent e)
Informs all the change listeners that the state of this menu provider has changed. |
boolean |
isSelected(Command childCmd)
|
void |
removeChangeListener(ChangeListener l)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CompositeCommand compositeCmd
protected transient ArrayList changeListeners
protected ButtonGroup buttonGroup
| Constructor Detail |
|---|
public CompositeCmdMenuProvider(CompositeCommand command)
| Method Detail |
|---|
public boolean isSelected(Command childCmd)
public List createMenuItems()
CustomMenuProvider
createMenuItems in interface CustomMenuProviderpublic void destroyMenuItems(List menuItems)
CustomMenuProvider
destroyMenuItems in interface CustomMenuProvider
protected JMenuItem createMenuItem(ButtonGroup itemButtonGroup,
Command childCmd)
itemButtonGroup - the button group to add the menu item to.childCmd - the command that a menu item is to be created for.
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic void removeChangeListener(ChangeListener l)
removeChangeListener in interface CustomMenuProviderpublic void addChangeListener(ChangeListener l)
CustomMenuProvider
addChangeListener in interface CustomMenuProviderprotected void fireStateChanged()
protected void fireStateChanged(ChangeEvent e)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||