|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pietschy.command.toggle.ToggleGroupController
public class ToggleGroupController
Controls the selection of ToggleCommands within a ToggleGroup. It
support both exclusive and non-exclusive selection.
| Constructor Summary | |
|---|---|
ToggleGroupController()
Creates a new instance. |
|
| Method Summary | |
|---|---|
void |
add(ToggleCommand command)
Adds the specified command to the controller. |
void |
handleSelectionRequest(ToggleCommand toggleCommand,
boolean selected)
Handles a particular selection request on a particular command. |
boolean |
isEmptySelectionAllowed()
Checks if this groups allows empty selection. |
boolean |
isExclusive()
Checks if this group is exclusive. |
void |
remove(ToggleCommand command)
Removes the specified command from the controller. |
void |
setEmptySelectionAllowed(boolean emptySelectionAllowed)
Sets if this groups allows empty selection. |
void |
setExclusive(boolean exclusive)
Configures the exclusive state of the group. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ToggleGroupController()
| Method Detail |
|---|
public void add(ToggleCommand command)
command - the command to add.public void remove(ToggleCommand command)
command - public boolean isEmptySelectionAllowed()
public void setEmptySelectionAllowed(boolean emptySelectionAllowed)
emptySelectionAllowed - true if the group should allow empty
selection, false if there must always be at least on selected command.public boolean isExclusive()
true if the group is exclusive, false otherwise.public void setExclusive(boolean exclusive)
exclusive - true to only allow exclusive selection, false otherwise.
public void handleSelectionRequest(ToggleCommand toggleCommand,
boolean selected)
toggleCommand - the command that has been selectedselected - the new state of the command.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||