yu.ac.bg.etf.javaqx.qswingx.actions
Class TextComponentUndoAction
java.lang.Object
yu.ac.bg.etf.javaqx.qswing.AbstractAction
yu.ac.bg.etf.javaqx.qswingx.actions.UndoAction
yu.ac.bg.etf.javaqx.qswingx.actions.TextComponentUndoAction
- All Implemented Interfaces:
- AbstractActionProperties, Action, ActionListener, java.lang.Cloneable, java.util.EventListener, UndoRedoListener
- public class TextComponentUndoAction
- extends UndoAction
- implements UndoRedoListener
Text Component Undo Action.
- Version:
- 0.2.0
- Author:
- Slobodan Vrkacevic (slobodan.vrkacevic@gmail.com)
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.Action |
ACCELERATOR_KEY, ACCELERATOR_KEY_NAME, ACTION_COMMAND_KEY, DEFAULT, HELP_DESCRIPTION, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON, SMALL_ICON_NAME |
Methods inherited from class yu.ac.bg.etf.javaqx.qswing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, firePropertyChange, getAcceleratorKey, getAcceleratorKeyName, getAcceleratorKeyName, getActionCommandKey, getHelpDescription, getHelpDescription, getKeyIterator, getKeys, getLongDescription, getLongDescription, getMnemonicKey, getName, getName, getPropertyChangeListeners, getShortDescription, getShortDescription, getSmallIcon, getSmallIconName, getSmallIconName, getStringValue, getStringValue, getValue, isEnabled, isSelected, putValue, removePropertyChangeListener, setAcceleratorKey, setAcceleratorKey, setActionCommandKey, setEnabled, setHelpDescription, setLongDescription, setMnemonicKey, setName, setProperties, setProperties, setProperties, setProperties, setSelected, setShortDescription, setSmallIcon, setSmallIconName |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
textComponent
protected final JQTextComponent textComponent
TextComponentUndoAction
public TextComponentUndoAction(JQTextComponent textComponent)
- Constructs new TextComponentUndoAction object.
- Parameters:
textComponent
- the text component
unregisterListener
public void unregisterListener()
- Unregisters listener.
actionPerformed
public void actionPerformed(ActionEvent e)
- Notifies listener that action has occurred.
- Specified by:
actionPerformed
in interface ActionListener
- Parameters:
e
- the action event
undoAvailable
public void undoAvailable(boolean available)
- Notifies listener that an undo operation is available.
- Specified by:
undoAvailable
in interface UndoRedoListener
- Parameters:
available
- true if available
redoAvailable
public void redoAvailable(boolean available)
- Notifies listener that an redo operation is available.
- Specified by:
redoAvailable
in interface UndoRedoListener
- Parameters:
available
- true if available
Copyright © 2007 ETF and contributors. All Rights Reserved.