|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pietschy.command.Command
com.pietschy.command.group.CommandGroup
com.pietschy.command.toggle.ToggleGroup
public class ToggleGroup
A CommandGroup for ToggleCommand instances. ToggleGroups support
exclusive selection of the commands they contain.
| Field Summary |
|---|
| Fields inherited from class com.pietschy.command.Command |
|---|
internalLog, PROPERTY_ENABLED, PROPERTY_VISIBLE |
| Constructor Summary | |
|---|---|
ToggleGroup()
Creates a new anonymous command group with the specified id. |
|
ToggleGroup(java.lang.String groupId)
Creates a new command groups with the specified id. |
|
| Method Summary | |
|---|---|
protected ToggleGroupController |
getController()
Gets the ToggleGroupController managing this group. |
boolean |
isAllowableMember(Command prospectiveMember)
Ensures that only ToggleCommand instances are added to this group. |
boolean |
isEmptySelectionAllowed()
Checks if this group allows the last selected command to be deselected. |
boolean |
isExclusive()
Checks if this group is in exclusive mode. |
void |
setEmptySelectionAllowed(boolean emptySelectionAllowed)
Configures if this group allows the last selected command to be deselected. |
void |
setExclusive(boolean exclusive)
Configures the exclusive mode of this group. |
| Methods inherited from class com.pietschy.command.group.CommandGroup |
|---|
addGroupListener, bindToContainer, createButton, createButton, createMemberManager, createMenuBar, createMenuBar, createMenuBar, createMenuBar, createMenuItem, createMenuItem, createPopupMenu, createPopupMenu, createPopupMenu, createToolBar, createToolBar, createToolBar, createToolBar, getBuilder, getExpansionPointBuilder, getMemberCount, getMemberListSpec, getMemberManager, getPopupContext, memberIterator, rebuildMembersFromSpec, removeGroupListener, setMemberListSpec, unbindFromContainer, visit, visitMembers |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ToggleGroup()
public ToggleGroup(java.lang.String groupId)
groupId - this groups unique id.| Method Detail |
|---|
protected ToggleGroupController getController()
ToggleGroupController managing this group.
ToggleGroupController.public boolean isAllowableMember(Command prospectiveMember)
ToggleCommand instances are added to this group.
isAllowableMember in class CommandGroupprospectiveMember - the Command being added.
ToggleCommand,
false otherwise.isAllowableMember(com.pietschy.command.Command)public void setEmptySelectionAllowed(boolean emptySelectionAllowed)
emptySelectionAllowed - true to allow the last selected command to be
deslected, false to ensure at least one command is always selected.public boolean isEmptySelectionAllowed()
public boolean isExclusive()
true if the group is in exclusive mode, false otherwise.public void setExclusive(boolean exclusive)
exclusive - true to make the group exclusive, false to allow
multiple members to be simultaneously selected.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||