|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--dog.gui.DCheckboxGroup
A checkbox and button state manager.
This class handles a mutual exclusion relation between a set of checkboxes and buttons.
Field Summary | |
protected java.util.Vector |
checkboxes
The checkboxes managed by this group. |
protected DCheckbox |
current
The currently selected checkbox. |
protected java.lang.Object |
reference
The object reference. |
Constructor Summary | |
DCheckboxGroup()
Constructs a checkbox group. |
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent event)
One of the checkboxes was pressed. |
void |
addCheckbox(DCheckbox checkbox)
Adds a checkbox to this group. |
java.lang.Object |
getReference()
Returns the object reference. |
DCheckbox |
getSelectedCheckbox()
Returns the current checkbox in this group. |
void |
removeCheckbox(DCheckbox checkbox)
Removes a checkbox from this group. |
void |
setReference(java.lang.Object reference)
Sets the object reference. |
void |
setSelectedCheckbox(DCheckbox checkbox)
Sets the current checkbox in this group. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Vector checkboxes
protected DCheckbox current
protected java.lang.Object reference
Constructor Detail |
public DCheckboxGroup()
Method Detail |
public DCheckbox getSelectedCheckbox()
public void setSelectedCheckbox(DCheckbox checkbox) throws java.beans.PropertyVetoException
java.beans.PropertyVetoException
- if the current checkbox could not be changedpublic java.lang.Object getReference()
getReference
in interface Referential
public void setReference(java.lang.Object reference)
setReference
in interface Referential
reference
- the object reference to store.public void addCheckbox(DCheckbox checkbox)
public void removeCheckbox(DCheckbox checkbox)
public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
in interface java.awt.event.ActionListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |