Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.pietschy.command.Command
org.pietschy.command.ActionCommand
org.pietschy.command.ToggleCommand
org.pietschy.command.demo.EnableCommandGroup.EnableCommand
public class EnableCommandGroup.EnableCommand
extends ToggleCommand
Field Summary |
Fields inherited from class org.pietschy.command.ActionCommand | |
HINT_ACTION_EVENT , HINT_INVOKER , HINT_INVOKER_WINDOW , HINT_MODIFIERS |
Fields inherited from class org.pietschy.command.Command | |
internalLog , listenerList , pcs |
Method Summary | |
protected void |
|
Methods inherited from class org.pietschy.command.ToggleCommand | |
addNotify , applySelection , attemptSelection , configureButtonStates , createButton , createCheckBox , createCheckBox , createCheckBox , createCheckBox , createMenuItem , handleExecute , handleSelection , isSelected , removeNotify , requestDefautIn , setSelected |
Methods inherited from class org.pietschy.command.ActionCommand | |
addCommandListener , addInterceptor , areEqual , attach , configureButtonStates , detach , execute , execute , getActionAdapter , getActionAdapter , getActionCommand , getActionEvent , getHint , getHint , getHints , getInvoker , getInvokerWindow , getModifiers , handleExecute , installShortCut , installShortCut , postExecute , preExecute , putHint , putHints , removeCommandListener , removeInterceptor , requestDefautIn , setActionCommand , uninstallShortCut , uninstallShortCut |
protected void handleSelection(boolean selected)
Entry for subclasses to handle the selection process. When a request to change the selection is made, this method will be called. To deny the selection request, subclassed must throw aToggleVetoException
. Please note that the current state ofToggleCommand.isSelected()
will not be updated until after this method has been called and so should not be used in this method.
- Overrides:
- handleSelection in interface ToggleCommand
- Parameters:
selected
- the requested selection state.