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, removeChangeListener
public static final java.lang.String COPIED_ELEMENTS_XML_ROOT
public java.util.List<ChartElementComponent> getSelectedSiblings()
public boolean canDelete()
EditActionHandler
EditActionHandler.canCopy()
both return true, the cut action will also be enabled.public boolean canCopy()
EditActionHandler
EditActionHandler.canDelete()
both return true, the cut action will also be enabled.public boolean canPaste(java.awt.datatransfer.Clipboard clipboard)
EditActionHandler
public void doDelete()
EditActionHandler
public java.awt.datatransfer.Transferable doCopy()
EditActionHandler
Transferable
, or null if the copy failed. Will be added to the
system clipboard.public java.awt.datatransfer.Transferable doCut()
EditActionHandler
Transferable
, or null if the cut failed. Will be added to the
system clipboard.public void doPaste(java.awt.datatransfer.Transferable clipboardContents)
EditActionHandler
clipboardContents
- The current contents of the clipboard to paste.