org.pietschy.command
Class ToggleCommandGroup
- CommandManagerListener, EventListener
public class ToggleCommandGroup
ToggleGroupCommand managed mutually exclusive collections of
ToggleCommands
.
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 , isAllowableMember , isInlineMember , isMember , rebuildAllPopups , remove , remove , removeGroupListener , reset , reset , visit , visitChildren |
addFace , addHoverListener , addNewFace , addNotify , addPropertyChangeListener , addPropertyChangeListener , attach , buttonIterator , configureButtonAppearance , configureButtonAppearances , configureButtonAppearances , configureButtonStates , createButton , createButton , createButton , createButton , createMenuItem , createMenuItem , createMenuItem , createMenuItem , detach , export , faceExists , fireHoverEnded , fireHoverStarted , getAccelerator , getAlternativeFaceNames , getButtonFactory , getButtonIn , getCommandManager , getDefaultFace , getDefaultFace , getDescription , getFace , getFace , getIcon , getId , getLongDescription , getMenuFactory , getMnemonic , getMnemonicIndex , getProperty , getProperty , getPropertyNames , getSelectedIcon , getText , getTextPosition , getToolbarFactory , initCommandManager , installFace , isAnonymous , isAttachedTo , isEnabled , isVisible , putProperty , removeHoverListener , removeNotify , removePropertyChangeListener , removePropertyChangeListener , requestFocusIn , setAccelerator , setButtonFactory , setDescription , setEnabled , setIcon , setLongDescription , setMenuFactory , setMnemonic , setMnemonicIndex , setSelectedIcon , setText , setTextPosition , setToolbarFactory , setVisible , toString |
ToggleCommandGroup
public ToggleCommandGroup(CommandManager commandManager)
Creates a new anonymous command group with the specified id. CommandGroups are lazy loading in
that they will store the only the command ids until they are asked to create a button
or menu. The command will use the specifed
CommandManager
to obtain commands.
ToggleCommandGroup
public ToggleCommandGroup(CommandManager commandManager,
String groupId)
Creates a new command groups with the specified id. CommandGroups are lazy loading in
that they will store the only the command ids until they are asked to create a button
or menu. The command will use the specifed
CommandManager
to obtain commands.
groupId
- this groups unique id.
isEmptySelectionAllowed
public boolean isEmptySelectionAllowed()
Checks if this group allows the last selected command to be deselected.
- true if the last selected command can be deslected, false
if at least one command must always be selected.
isExclusive
public boolean isExclusive()
setEmptySelectionAllowed
public void setEmptySelectionAllowed(boolean emptySelectionAllowed)
Configures if this group allows the last selected command to be deselected.
emptySelectionAllowed
- true to allow the last selected command to be
deslected, false to ensure at least one command is always selected.
setExclusive
public void setExclusive(boolean exclusive)