|
|||||||||
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.ActionCommand
org.pietschy.command.ToggleCommand
org.pietschy.command.demo.toggle.SimpleToggle
public class SimpleToggle
Created by IntelliJ IDEA. User: andrewp Date: 11/04/2004 Time: 14:34:50 To change this template use Options | File Templates.
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 |
Constructor Summary | |
---|---|
SimpleToggle(CommandManager cm,
java.lang.String commandId)
|
|
SimpleToggle(java.lang.String commandId)
|
Method Summary | |
---|---|
protected void |
handleSelection(boolean selected)
Entry for subclasses to handle the selection process. |
Methods inherited from class org.pietschy.command.ToggleCommand |
---|
addNotify, applySelection, attemptSelection, configureButtonStates, createButton, createCheckBox, createCheckBox, createCheckBox, createCheckBox, createMenuItem, handleExecute, isSelected, removeNotify, requestDefautIn, setSelected |
Methods inherited from class org.pietschy.command.ActionCommand |
---|
addCommandListener, addInterceptor, areEqual, attach, detach, execute, execute, getActionAdapter, getActionAdapter, getActionCommand, getActionEvent, getHint, getHint, getHints, getInvoker, getInvokerWindow, getModifiers, installShortCut, installShortCut, postExecute, preExecute, putHint, putHints, removeCommandListener, removeInterceptor, setActionCommand, uninstallShortCut, uninstallShortCut |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.pietschy.command.ActionCommandExecutor |
---|
addPropertyChangeListener, addPropertyChangeListener, isEnabled, removePropertyChangeListener, removePropertyChangeListener |
Constructor Detail |
---|
public SimpleToggle(java.lang.String commandId)
commandId
- public SimpleToggle(CommandManager cm, java.lang.String commandId)
commandId
- Method Detail |
---|
protected void handleSelection(boolean selected) throws ToggleVetoException
ToggleCommand
To deny the selection request, subclassed must throw a ToggleVetoException
.
Please note that
the current state of ToggleCommand.isSelected()
will not be updated until after this method
has been called and so should not be used in this method.
handleSelection
in class ToggleCommand
selected
- the requested selection state.
ToggleVetoException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |