public class BlockActionHandler extends AbstractEditActionHandler
listenerList| Constructor and Description |
|---|
BlockActionHandler(AbstractBlockWorkspace workspace,
DesignerContext context) |
| 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
|
addChangeListener, fireChangeEvent, removeChangeListenerpublic BlockActionHandler(AbstractBlockWorkspace workspace, DesignerContext context)
public boolean canDelete()
EditActionHandlerEditActionHandler.canCopy() both return true, the cut action will also be enabled.public void doDelete()
EditActionHandlerpublic boolean canCopy()
EditActionHandlerEditActionHandler.canDelete() both return true, the cut action will also be enabled.public boolean canPaste(java.awt.datatransfer.Clipboard clipboard)
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.