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 Link icon

    • atom Link icon

      public final Atom atom
      The atom name of the reference.
    • propClass Link icon

      public final Class<REFPROP extends VSRelativeReference<VSTYPE>> propClass
      The reference class.
    • owner Link icon

      public final PropCnr owner
      The property reference owner (or parent).
  • Constructor Details Link icon

    • VSReferenceOwnerData Link icon

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

    • getReferenceProp Link icon

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

      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 Link icon

      public VSTYPE getVSComponent()
      Gets the component reference.
      Returns:
      The component referenced, or null if not defined.