|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.cockpit.modeler.ClipboardSupport
public class ClipboardSupport
Helper class that contains functions for the modeler clipboard support.
| Constructor Summary | |
|---|---|
ClipboardSupport(WorkspaceDrawingView workspaceView,
ResourceCollection resourceCollection,
boolean socketsAndParamsOnly)
Private constructor prevents instantiation. |
|
| Method Summary | |
|---|---|
boolean |
canCopy()
Checks if a copy action can be performed. |
boolean |
canCut()
Checks if a cut action can be performed. |
boolean |
canDelete()
Checks if a delete action can be performed. |
boolean |
canPaste(java.awt.datatransfer.Transferable content)
Checks whether the actual clipboard contents can be pasted. |
java.awt.datatransfer.Transferable |
cut()
Cuts the current selection and creates a transferable object that contains the data to be copied from the given modeler view. |
void |
delete()
Deletes the current selection. |
java.awt.datatransfer.Transferable |
getCopyData()
Creates a transferable object that contains the data to be copied from the given modeler view. |
void |
paste(java.awt.datatransfer.Transferable content)
Pastes data from the given transferable to the modeler view. |
boolean |
pasteParams(ProcessItem source)
Pastes parameters from the given source process to the modeler view. |
boolean |
pasteProcess(ProcessItem source)
Pastes nodes and control/data links from the given source process to the modeler view. |
boolean |
pasteQualifier(ModelQualifier source)
Pastes a model qualifier to a placeholder node. |
boolean |
pasteSockets(ProcessItem source)
Pastes sockets from the given source process to the modeler view. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClipboardSupport(WorkspaceDrawingView workspaceView,
ResourceCollection resourceCollection,
boolean socketsAndParamsOnly)
workspaceView - Workspace view we are associated withresourceCollection - Resource for messagessocketsAndParamsOnly - true: Allows for socket and parameter pasting only.| Method Detail |
|---|
public boolean canCopy()
public boolean canDelete()
public boolean canCut()
public java.awt.datatransfer.Transferable getCopyData()
public java.awt.datatransfer.Transferable cut()
public void delete()
public boolean canPaste(java.awt.datatransfer.Transferable content)
content - Transferable object held by the clipboard
public void paste(java.awt.datatransfer.Transferable content)
content - Content to paste; The transferable object is expected to contain
data that was created by the getCopyData() method.
public boolean pasteProcess(ProcessItem source)
throws java.lang.CloneNotSupportedException
source - Process that contains the nodes to paste
java.lang.CloneNotSupportedException
public boolean pasteSockets(ProcessItem source)
throws java.lang.CloneNotSupportedException
source - Process that contains the sockets to paste
java.lang.CloneNotSupportedException
public boolean pasteParams(ProcessItem source)
throws java.lang.CloneNotSupportedException
source - Process that contains the parameters to paste
java.lang.CloneNotSupportedExceptionpublic boolean pasteQualifier(ModelQualifier source)
source - Model qualifier of the object to reference
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||