Module org.autogui
Package org.autogui.swing.util
Class PopupExtensionText.TextAbstractHistoryAction
java.lang.Object
javax.swing.AbstractAction
org.autogui.swing.util.PopupExtensionText.TextAbstractHistoryAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action
- Direct Known Subclasses:
PopupExtensionText.TextDeleteNextWordAction,PopupExtensionText.TextDeletePreviousWordAction,PopupExtensionText.TextDeleteToLineEndAction,PopupExtensionText.TextPasteHistoryAction
- Enclosing class:
PopupExtensionText
an abstract action for interacting with the history-buffer (kill-buffer)
- See Also:
-
Field Summary
FieldsFields inherited from class javax.swing.AbstractAction
changeSupport, enabledFields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidabstract voidactionPerformedOnText(JTextComponent target) voidcut(JTextComponent target, int from, int to) booleanvoidputKillBuffer(String str) Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, putValue, removePropertyChangeListener, setEnabled
-
Field Details
-
field
-
-
Constructor Details
-
TextAbstractHistoryAction
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceAction- Overrides:
isEnabledin classAbstractAction
-
actionPerformed
-
actionPerformedOnText
- Throws:
BadLocationException
-
cut
- Throws:
BadLocationException
-
putKillBuffer
-