public class SfcEditActionHandler extends AbstractEditActionHandler
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPIED_ELEMENTS_XML_ROOT |
listenerList| Modifier and Type | Method and Description |
|---|---|
boolean |
canCopy()
Can this edit action handler handle the copy action, given its current selection? Note that if this and
EditActionHandler.canDelete() both return true, the cut action will also be enabled. |
boolean |
canDelete()
Can this edit action handler handle the delete action, given its current selection? Note that if this and
EditActionHandler.canCopy() both return true, the cut action will also be enabled. |
boolean |
canPaste(java.awt.datatransfer.Clipboard clipboard)
Can this action handler handle a paste given the data flavors currently available in the clipboard?
|
java.awt.datatransfer.Transferable |
doCopy()
Called when the copy action is performed.
|
java.awt.datatransfer.Transferable |
doCut()
Called when the cut action is performed.
|
void |
doDelete()
Called when the delete action is performed
|
void |
doPaste(java.awt.datatransfer.Transferable clipboardContents)
Called when the paste action is performed
|
java.util.List<ChartElementComponent> |
getSelectedSiblings() |
addChangeListener, fireChangeEvent, removeChangeListenerpublic static final java.lang.String COPIED_ELEMENTS_XML_ROOT
public java.util.List<ChartElementComponent> getSelectedSiblings()
public boolean canDelete()
EditActionHandlerEditActionHandler.canCopy() both return true, the cut action will also be enabled.public boolean canCopy()
EditActionHandlerEditActionHandler.canDelete() both return true, the cut action will also be enabled.public boolean canPaste(java.awt.datatransfer.Clipboard clipboard)
EditActionHandlerpublic void doDelete()
EditActionHandlerpublic java.awt.datatransfer.Transferable doCopy()
EditActionHandlerTransferable, or null if the copy failed. Will be added to
the system clipboard.public java.awt.datatransfer.Transferable doCut()
EditActionHandlerTransferable, or null if the cut failed. Will be added to the
system clipboard.public void doPaste(java.awt.datatransfer.Transferable clipboardContents)
EditActionHandlerclipboardContents - The current contents of the clipboard to paste.