All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class xu.xu_ButtonGroupAction

java.lang.Object
   |
   +----com.sun.java.swing.AbstractAction
           |
           +----xu.xu_ButtonGroupAction

public class xu_ButtonGroupAction
extends AbstractAction
An action intended to be associated with a button group, such that it is invoked when a different button in the group is selected. In this situation, the actionPerformed method is invoked, and the ActionEvent it is passed gives details of which is now the current button.


Constructor Index

 o xu_ButtonGroupAction(String)
Constructor.

Method Index

 o actionPerformed(ActionEvent)
The currently-selected button has changed.
 o addAttList(xg_AttList)
Add an attribute list to the end of the list of attribute lists.
 o getAttList()
Get the attributes associated with the currently-selected button (ie.
 o getCurrentRadioButton()
Get the currently-selected button.
 o getIndex()
Get the relative position in the group of the currently-selected button.
 o setIndex(int)
Nominate which button is currently selected.

Constructors

 o xu_ButtonGroupAction
 public xu_ButtonGroupAction(String InputActionName)
Constructor.

Parameters:
InputActionName - The name of the action

Methods

 o actionPerformed
 public void actionPerformed(ActionEvent InputActionEvent)
The currently-selected button has changed.

Overrides:
actionPerformed in class AbstractAction
 o addAttList
 public void addAttList(xg_AttList InputAttList)
Add an attribute list to the end of the list of attribute lists. We assume there will be a call made for each button in the group, so that when a request is made to retrieve them, the index will point to the right one. param InputAttList The attribute list of the currently-selected item

 o setIndex
 public void setIndex(int InputButtonGroupIndex)
Nominate which button is currently selected.

 o getCurrentRadioButton
 public JRadioButtonMenuItem getCurrentRadioButton()
Get the currently-selected button.

 o getIndex
 public int getIndex()
Get the relative position in the group of the currently-selected button.

 o getAttList
 public xg_AttList getAttList()
Get the attributes associated with the currently-selected button (ie. the attributes from the XML element from which it was created). return The attribute list of the currently-selected item


All Packages  Class Hierarchy  This Package  Previous  Next  Index