org.pietschy.command.demo.undo

Class SimpleUndoToggle

Implemented Interfaces:
ActionCommandExecutor, UndoableEventSource

public class SimpleUndoToggle
extends UndoableToggleCommand

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

SimpleUndoToggle(String commandId, JTextPane textPane)

Method Summary

protected UndoableEdit
performEdit(boolean selected)

Methods inherited from class org.pietschy.command.undo.UndoableToggleCommand

addUndoableEditListener, getUndoableEditListeners, handleSelection, performEdit, postEdit, removeUndoableEditListener

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

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

SimpleUndoToggle

public SimpleUndoToggle(String commandId,
                        JTextPane textPane)
Parameters:
commandId -

Method Details

performEdit

protected UndoableEdit performEdit(boolean selected)
Overrides:
performEdit in interface UndoableToggleCommand