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
Actions
exported by a JComponent.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classEnables and delegates to the target action only if the clipboard has contents. -
Field Summary
Fields 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 TypeMethodDescriptionvoidprotected static booleanprotected static Stringstatic voidvoidMethods 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:
propertyChangein interfacePropertyChangeListener
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-
main
-