Package com.iizix.prop.vs
Class VSReferenceOwnerData<VSTYPE extends VSComponent,REFPROP extends VSRelativeReference<VSTYPE>>
- java.lang.Object
- com.iizix.prop.vs.VSReferenceOwnerData<VSTYPE,REFPROP>
public class VSReferenceOwnerData<VSTYPE extends VSComponent,REFPROP extends VSRelativeReference<VSTYPE>> extends java.lang.Object
Data holder class for the owner of a VS relative reference property for a column reference.- Author:
- Christopher Mindus
Constructor Summary
Constructors Constructor Description VSReferenceOwnerData(Atom atom, java.lang.Class<REFPROP> propClass, PropCnr owner)
Constructor of the data.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description REFPROP
createReferenceProp(java.lang.String relativeReference)
Creates the VS Reference property with a reference string to a property referenced.REFPROP
getReferenceProp()
Gets the VS Reference property.VSTYPE
getVSComponent()
Gets the component reference.
Field Detail
atom
public final Atom atom
The atom name of the reference.
propClass
public final java.lang.Class<REFPROP extends VSRelativeReference<VSTYPE>> propClass
The reference class.
owner
public final PropCnr owner
The property reference owner (or parent).
Method Detail
getReferenceProp
public REFPROP getReferenceProp()
Gets the VS Reference property.- Returns:
- The reference property instance, null if not defined.
createReferenceProp
public REFPROP createReferenceProp(java.lang.String relativeReference)
Creates the VS Reference property with a reference string to a property referenced.- Parameters:
relativeReference
- The relative reference to the VS component from the VirtualSpace (or another relative component).- Returns:
- The created property, not added to a container (owner), just created. Use the undo/redo instance to add it (for the Designer).
getVSComponent
public VSTYPE getVSComponent()
Gets the component reference.- Returns:
- The component referenced, or null if not defined.