|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcage.utility.AbstractButtonGroup
public abstract class AbstractButtonGroup
An implementation of GenericButtonGroup that uses a
Vector. This class implements ItemListener and registers
itself with any button that is added to the group and removes itself from
any button that is removed from the group.
| Field Summary | |
|---|---|
protected java.util.Vector |
buttons
The Vector that contains the elements of this group. |
| Constructor Summary | |
|---|---|
AbstractButtonGroup()
|
|
| Method Summary | |
|---|---|
void |
add(javax.swing.AbstractButton button)
Add button to this group and this as listener to that button. |
java.util.Enumeration |
getElements()
Returns an enumeration of the buttons in this group. |
javax.swing.AbstractButton |
getSelection()
Always returns null. |
void |
remove(javax.swing.AbstractButton button)
Remove button from this group and do nothing if it wasn't in this group. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.awt.event.ItemListener |
|---|
itemStateChanged |
| Field Detail |
|---|
protected java.util.Vector buttons
Vector that contains the elements of this group.
| Constructor Detail |
|---|
public AbstractButtonGroup()
| Method Detail |
|---|
public void add(javax.swing.AbstractButton button)
add in interface GenericButtonGroupbutton - The AbstractButton to add to this group.public void remove(javax.swing.AbstractButton button)
remove in interface GenericButtonGroupbutton - The AbstractButton to remove to this group.public java.util.Enumeration getElements()
getElements in interface GenericButtonGrouppublic javax.swing.AbstractButton getSelection()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||