Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class ncsa.horizon.awt.PanelButton.RadioGroup

java.lang.Object
  |
  +--ncsa.horizon.awt.PanelButton.RadioGroup

public static class PanelButton.RadioGroup
extends java.lang.Object
implements java.awt.event.ActionListener
a manager of a group of Panel buttons that ensures that only one of them is pressed at a time. This class allows the group to behave as so-called "radio buttons" and is analogous to the CheckboxGroup class of the AWT Toolkit


Field Summary
PanelButton selected
           
 
Constructor Summary
PanelButton.RadioGroup()
          create a RadioGroup
 
Method Summary
void actionPerformed(java.awt.event.ActionEvent ev)
           
void addActionListener(java.awt.event.ActionListener l)
          add an action listener for all the buttons in this group.
PanelButton getSelected()
          return the currently selected PanelButton
void removeActionListener(java.awt.event.ActionListener l)
          remove an action listener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Field Detail

selected

protected PanelButton selected
Constructor Detail

PanelButton.RadioGroup

public PanelButton.RadioGroup()
create a RadioGroup
Method Detail

getSelected

public PanelButton getSelected()
return the currently selected PanelButton

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ev)
Description copied from interface:
 
Specified by:
actionPerformed(java.awt.event.ActionEvent) in interface java.awt.event.ActionListener

addActionListener

public void addActionListener(java.awt.event.ActionListener l)
add an action listener for all the buttons in this group. The source of the events sent to the listener will be the originating buttons.

removeActionListener

public void removeActionListener(java.awt.event.ActionListener l)
remove an action listener

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD