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 Object
Data holder class for the owner of a VS relative reference property for a column reference.
Author:
Christopher Mindus
  • Field Details

  • Constructor Details

    • VSReferenceOwnerData

      public VSReferenceOwnerData(Atom atom, Class<REFPROP> propClass, PropCnr owner)
      Constructor of the data. The atom name of the reference.
  • Method Details

    • getReferenceProp

      public REFPROP getReferenceProp()
      Gets the VS Reference property.
      Returns:
      The reference property instance, null if not defined.
    • createReferenceProp

      public REFPROP createReferenceProp(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.