public class PasteAction extends CayenneAction implements FlavorListener
alwaysOn, applicationchangeSupport, enabledACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON| Constructor and Description |
|---|
PasteAction(Application application)
Constructor for PasteAction
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
enableForPath(ConfigurationNode object)
Returns
true if last object in the path contains a removable object. |
void |
flavorsChanged(FlavorEvent e) |
KeyStroke |
getAcceleratorKey()
Returns keyboard shortcut for this action.
|
static String |
getActionName() |
String |
getIconName()
Returns the name of the icon that should be used for buttons.
|
void |
paste(Object where,
Object content,
DataChannelDescriptor domain,
DataMap map)
Pastes single object
|
void |
performAction(ActionEvent e)
Performs pasting items from the system buffer
|
void |
updateState()
Enables or disables the action, judging last selected component
|
actionPerformed, buildButton, buildCheckBoxMenu, buildMenu, createIcon, getApplication, getCurrentProject, getKey, getProjectController, isAlwaysOn, setAlwaysOn, setEnabled, setNameaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListenerpublic PasteAction(Application application)
public static String getActionName()
public String getIconName()
CayenneActionRESOURCE_PATH. Default implementation returns
null.getIconName in class CayenneActionpublic KeyStroke getAcceleratorKey()
CayenneActionnull.getAcceleratorKey in class CayenneActionpublic void performAction(ActionEvent e)
performAction in class CayenneActionpublic void paste(Object where, Object content, DataChannelDescriptor domain, DataMap map)
public boolean enableForPath(ConfigurationNode object)
true if last object in the path contains a removable object.enableForPath in class CayenneActionpublic void updateState()
public void flavorsChanged(FlavorEvent e)
flavorsChanged in interface FlavorListenerCopyright © 2001–2015 Apache Cayenne. All rights reserved.