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, enabled
Fields 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 TypeMethodDescriptionvoid
abstract void
actionPerformedOnText
(JTextComponent target) void
cut
(JTextComponent target, int from, int to) boolean
void
putKillBuffer
(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:
isEnabled
in interfaceAction
- Overrides:
isEnabled
in classAbstractAction
-
actionPerformed
-
actionPerformedOnText
- Throws:
BadLocationException
-
cut
- Throws:
BadLocationException
-
putKillBuffer
-