| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectechopoint.model.DefaultMenuItemModel
public class DefaultMenuItemModel
The default implementation of a menu item data model.
| Constructor Summary | |
|---|---|
DefaultMenuItemModel()
Creates a new default menu item model.  | 
|
| Method Summary | |
|---|---|
 void | 
addActionListener(ActionListener l)
Adds an ActionListener to the menu item model. | 
 void | 
addChangeListener(ChangeListener l)
Adds a ChangeListener to the menu item model. | 
 void | 
addItemListener(ItemListener l)
Adds a ItemListener to the menu item model. | 
 void | 
doAction()
Our default doAction  | 
 void | 
fireActionPerformed(ActionEvent e)
Notifies all listeners that have registered for this event type.  | 
 void | 
fireItemStateChanged(ItemEvent e)
Notifies all listeners that have registered for this event type.  | 
 void | 
fireStateChanged()
Notifies all listeners that have registered for this event type.  | 
 java.lang.String | 
getActionCommand()
Returns the action command for this menu item model.  | 
 ButtonGroup | 
getGroup()
Returns the ButtonGroup to which this menu item model belongs, if 
 any. | 
 boolean | 
isSelected()
Returns the menu item model's selection state.  | 
 void | 
removeActionListener(ActionListener l)
Removes an ActionListener from the menu item model. | 
 void | 
removeChangeListener(ChangeListener l)
Removes a ChangeListener from the menu item model. | 
 void | 
removeItemListener(ItemListener l)
Removes a ItemListener from the menu item model. | 
 void | 
setActionCommand(java.lang.String actionCommand)
Sets the menu item model's action command.  | 
 void | 
setGroup(ButtonGroup group)
Sets the ButtonGroup to which this menu item model belongs. | 
 void | 
setSelected(boolean selected)
Sets the menu item model's selection state.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public DefaultMenuItemModel()
| Method Detail | 
|---|
public void addActionListener(ActionListener l)
ActionListener to the menu item model.
addActionListener in interface ButtonModell - The ActionListener to be added.public void addChangeListener(ChangeListener l)
ChangeListener to the menu item model.
addChangeListener in interface ButtonModell - The ChangeListener to be added.public void addItemListener(ItemListener l)
ItemListener to the menu item model.
addItemListener in interface ButtonModell - The ItemListener to be added.public void fireActionPerformed(ActionEvent e)
e - The ActionEvent to send.public void fireItemStateChanged(ItemEvent e)
e - The ItemEvent to send.public void fireStateChanged()
public java.lang.String getActionCommand()
getActionCommand in interface ButtonModelpublic ButtonGroup getGroup()
ButtonGroup to which this menu item model belongs, if 
 any.
getGroup in interface ButtonModelpublic boolean isSelected()
isSelected in interface ButtonModelpublic void removeActionListener(ActionListener l)
ActionListener from the menu item model.
removeActionListener in interface ButtonModell - The ActionListener to be removed.public void removeChangeListener(ChangeListener l)
ChangeListener from the menu item model.
removeChangeListener in interface ButtonModell - The ChangeListener to be removed.public void removeItemListener(ItemListener l)
ItemListener from the menu item model.
removeItemListener in interface ButtonModell - The ItemListener to be removed.public void setActionCommand(java.lang.String actionCommand)
setActionCommand in interface ButtonModelactionCommand - The new action command for this menu item model.public void setGroup(ButtonGroup group)
ButtonGroup to which this menu item model belongs.
 
setGroup in interface ButtonModelgroup - The group to which this menu item model belongs.public void setSelected(boolean selected)
setSelected in interface ButtonModelselected - The new selection state of the menu item model.public void doAction()
doAction in interface ButtonModel
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||