org.pietschy.command.demo

Class EnableCommandGroup

Implemented Interfaces:
CommandManagerListener, EventListener

public class EnableCommandGroup
extends CommandGroup

GUI Commands Copyright 2004 Andrew Pietsch Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. $Id: EnableCommandGroup.java,v 1.11 2005/09/18 00:37:19 pietschy Exp $

Nested Class Summary

class
EnableCommandGroup.EnableCommand

Field Summary

Fields inherited from class org.pietschy.command.CommandGroup

memberList

Fields inherited from class org.pietschy.command.Command

internalLog, listenerList, pcs

Constructor Summary

EnableCommandGroup(CommandManager manager)
Creates a new anonymous GroupCommand.

Method Summary

void
commandRegistered(CommandManagerEvent event)
Overrides the default behaviour to build a group of commands the control the visibility of all other registered commands.

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, isAllowableMember, isInlineMember, isMember, rebuildAllPopups, remove, remove, removeGroupListener, reset, reset, visit, visitChildren

Methods inherited from class org.pietschy.command.Command

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

Constructor Details

EnableCommandGroup

public EnableCommandGroup(CommandManager manager)
Creates a new anonymous GroupCommand. Anonymous groups must be fully programatically generated and can't be automatically discovered by other groups.

Method Details

commandRegistered

public void commandRegistered(CommandManagerEvent event)
Overrides the default behaviour to build a group of commands the control the visibility of all other registered commands.
Specified by:
commandRegistered in interface CommandManagerListener
Overrides:
commandRegistered in interface CommandGroup