Package com.iizigo.vs.link
Class VSLinkField
Links a VSField to a target component, or replaces an existing one.
- Author:
- Christopher Mindus
- Constructor SummaryConstructorsConstructorDescription- VSLinkField- (Atom atom) The constructor takes the VSFieldReference atom for the operation.
- Method SummaryModifier and TypeMethodDescription- protected String- getOperation- (PropCnr target, EditorVSField component) Returns the operation that linking will produce.Returns the class used for linking.- protected boolean- isAlreadyLinked- (PropCnr target, EditorVSField component) Verifies if the component has been linked already.- protected booleanReturns if the linker implementation supports multiple components or a single one.- protected PropCnr- runOperation- (PropCnr target, ArrayList<EditorVSField> components, 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- VSLinkFieldThe constructor takes the VSFieldReference atom for the operation.- Parameters:
- atom- The atom for the reference property.
 
 
- Method Details- getVSClassReturns the class used for linking.- Specified by:
- getVSClassin class- VSLinkInfo<EditorVSField>
- Returns:
- EditorVSField.class.
 
- isAlreadyLinkedVerifies if the component has been linked already.- Specified by:
- isAlreadyLinkedin class- VSLinkInfo<EditorVSField>
- Parameters:
- target- The target for linking.
- component- The component.
- Returns:
- true if already handled by this link info.
 
- getOperationReturns the operation that linking will produce.- Specified by:
- getOperationin class- VSLinkInfo<EditorVSField>
- Parameters:
- target- The target for linking.
- component- The component to link.
- Returns:
- The text inserted to the table.
 
- isMultipleComponentsSupportedprotected boolean isMultipleComponentsSupported()Returns if the linker implementation supports multiple components or a single one.- Specified by:
- isMultipleComponentsSupportedin class- VSLinkInfo<EditorVSField>
- Returns:
- true if multiple components can be handled, or false for a single one in the list of components for the runOperation(PropCnr, ArrayList, VSSubLinkInfo, PropCnr, ComplexOperation)
 
- runOperationprotected PropCnr runOperation- (PropCnr target, ArrayList<EditorVSField> components, VSSubLinkInfo subOperations, PropCnr mainContainer, ComplexOperation op) Runs the main operation.- Specified by:
- runOperationin class- VSLinkInfo<EditorVSField>
- Parameters:
- target- The target for linking.
- components- The components 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.