|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pietschy.command.Command
org.pietschy.command.CommandGroup
org.pietschy.command.ToggleCommandGroup
public class ToggleCommandGroup
ToggleGroupCommand managed mutually exclusive collections of
ToggleCommands.
| Field Summary |
|---|
| Fields inherited from class org.pietschy.command.CommandGroup |
|---|
memberList |
| Fields inherited from class org.pietschy.command.Command |
|---|
internalLog, listenerList, pcs |
| Constructor Summary | |
|---|---|
ToggleCommandGroup(CommandManager commandManager)
Creates a new anonymous command group with the specified id. |
|
ToggleCommandGroup(CommandManager commandManager,
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()
|
void |
setEmptySelectionAllowed(boolean emptySelectionAllowed)
Configures if this group allows the last selected command to be deselected. |
void |
setExclusive(boolean exclusive)
|
| Methods inherited from class org.pietschy.command.CommandGroup |
|---|
acceptVisitor, add, add, addGlue, addGlue, addGroupListener, addInline, addInline, addSeparator, addSeparator, bindMembers, bindMembers, commandRegistered, contains, createButton, createButton, createMenuBar, createMenuBar, createMenuBar, createMenuBar, createMenuItem, createPopupMenu, createPopupMenu, createToolBar, createToolBar, createToolBar, createToolBar, fireMembersChanged, getMemberCount, getMemberFactory, getMemberList, isInlineMember, isMember, rebuildAllPopups, remove, remove, removeGroupListener, reset, reset, visit, visitChildren |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ToggleCommandGroup(CommandManager commandManager)
CommandManager to obtain commands.
public ToggleCommandGroup(CommandManager commandManager,
java.lang.String groupId)
CommandManager to obtain commands.
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(org.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()
public void setExclusive(boolean exclusive)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||