|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jvnet.flamingo.common.CommandToggleButtonGroup
public class CommandToggleButtonGroup
Group of command toggle buttons. Unlike the ButtonGroup
, this class
operates on buttons and not on button models.
Field Summary | |
---|---|
static java.lang.String |
SELECTED_PROPERTY
Name of the property change event fired when the group selection is changed. |
Constructor Summary | |
---|---|
CommandToggleButtonGroup()
Creates a new button group. |
Method Summary | |
---|---|
void |
add(JCommandToggleButton b)
Adds the specified button to the group. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds the specified property change listener on this button group. |
void |
clearSelection()
Clears the selection of this button group. |
JCommandToggleButton |
getSelected()
Returns the selected button of this group. |
void |
remove(JCommandToggleButton b)
Removes the specified button from the group. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes the specified property change listener from this button group. |
void |
setSelected(JCommandToggleButton button,
boolean isSelected)
Changes the selected status of the specified button. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SELECTED_PROPERTY
Constructor Detail |
---|
public CommandToggleButtonGroup()
Method Detail |
---|
public void add(JCommandToggleButton b)
b
- The button to be added.public void remove(JCommandToggleButton b)
b
- The button to be removedpublic void setSelected(JCommandToggleButton button, boolean isSelected)
button
- Button.isSelected
- Selection indication.public JCommandToggleButton getSelected()
null
.public void clearSelection()
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- Listener to add.public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- Listener to remove.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |