java.lang.Object
javax.swing.AbstractAction
furbelow.DelegatingAction
- All Implemented Interfaces:
ActionListener
,PropertyChangeListener
,Serializable
,Cloneable
,EventListener
,Action
Demonstration of context-sensitive menu items based on
Action
s
exported by a JComponent
.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
Enables and delegates to the target action only if the clipboard has contents. -
Field Summary
Fields 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
protected static boolean
protected static String
static void
void
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Constructor Details
-
DelegatingAction
-
-
Method Details
-
getClipboardContents
-
clipboardHasContents
protected static boolean clipboardHasContents() -
propertyChange
- Specified by:
propertyChange
in interfacePropertyChangeListener
-
actionPerformed
- Specified by:
actionPerformed
in interfaceActionListener
-
main
-