    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.

##

xu_ButtonGroupAction(String)
  Constructor.

##

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

##

xu_ButtonGroupAction

     public xu_ButtonGroupAction(String InputActionName)

  Constructor.

  Parameters:
    InputActionName - The name of the action

##

actionPerformed

     public void actionPerformed(ActionEvent InputActionEvent)

  The currently-selected button has changed.

  Overrides:
    actionPerformed in class AbstractAction

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

setIndex

     public void setIndex(int InputButtonGroupIndex)

  Nominate which button is currently selected.

getCurrentRadioButton

     public JRadioButtonMenuItem getCurrentRadioButton()

  Get the currently-selected button.

getIndex

     public int getIndex()

  Get the relative position in the group of the currently-selected button.

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