Package com.iizigo.vs.link
Class VSLinkVirtualSpace
Links a VirtualSpace to a target component, or replaces an existing VirtualSpace.
- Author:
- Christopher Mindus
Constructor Summary
ConstructorsConstructorDescriptionThe constructor for a VirtualSpace participant where the property of VSParticipant is named Atom.VIRTUALSPACE.VSLinkVirtualSpace(Atom atom, boolean isParticipant) The constructor takes the VirtualSpace atom for the operation and if it's a VirtualSpace reference or a VirtualSpace participant.Method Summary
Modifier and TypeMethodDescriptionprotected StringgetOperation(PropCnr target, EditorVirtualSpace component) Returns the operation that linking will produce.Returns the class used for linking.protected booleanisAlreadyLinked(PropCnr target, EditorVirtualSpace component) Verifies if the component has been linked already.protected booleanReturns if the linker implementation supports multiple components or a single one.protected PropCnrrunOperation(PropCnr target, ArrayList<EditorVirtualSpace> virtualSpaces, VSSubLinkInfo subOperations, PropCnr mainContainer, ComplexOperation op) Runs the main operation.Methods inherited from class com.iizigo.vs.link.VSLinkInfo
getAlreadyLinkedMessage, getNoComponentsMessage, getSubOperations, isSkipDialogAllowed
Constructor Details
VSLinkVirtualSpace
public VSLinkVirtualSpace()The constructor for a VirtualSpace participant where the property of VSParticipant is named Atom.VIRTUALSPACE.VSLinkVirtualSpace
The constructor takes the VirtualSpace atom for the operation and if it's a VirtualSpace reference or a VirtualSpace participant.- Parameters:
atom- The atom for the reference property.isParticipant- Flag indicating VirtualSpace participant.
Method Details
getVSClass
Returns the class used for linking.- Specified by:
getVSClassin classVSLinkInfo<EditorVirtualSpace>- Returns:
- EditorVirtualSpace.class.
isAlreadyLinked
Verifies if the component has been linked already.- Specified by:
isAlreadyLinkedin classVSLinkInfo<EditorVirtualSpace>- Parameters:
target- The target for linking.component- The component.- Returns:
- true if already handled by this link info.
getOperation
Returns the operation that linking will produce.- Specified by:
getOperationin classVSLinkInfo<EditorVirtualSpace>- Parameters:
target- The target for linking.component- The component to link.- Returns:
- The text inserted to the table.
isMultipleComponentsSupported
protected boolean isMultipleComponentsSupported()Returns if the linker implementation supports multiple components or a single one.- Specified by:
isMultipleComponentsSupportedin classVSLinkInfo<EditorVirtualSpace>- Returns:
- true if multiple components can be handled, or false for a single one in the list of components for the
operation.runOperation(PropCnr, ArrayList, VSSubLinkInfo, PropCnr, ComplexOperation)
runOperation
protected PropCnr runOperation(PropCnr target, ArrayList<EditorVirtualSpace> virtualSpaces, VSSubLinkInfo subOperations, PropCnr mainContainer, ComplexOperation op) Runs the main operation.- Specified by:
runOperationin classVSLinkInfo<EditorVirtualSpace>- Parameters:
target- The target for linking.virtualSpaces- The VirtualSpaces to link (just one due to "isMultipleComponentsSupported()==false").subOperations- Sub-operations to execute, null for none.mainContainer- The main container from a parent operation, null for main operation.op- The complex operation.- Returns:
- Potential property container created, for use in sub-operations.