Class AbstractClientBaseRelativeReference<TARGET extends IClientBaseRelativeTarget>

    • Constructor Detail

      • AbstractClientBaseRelativeReference

        public AbstractClientBaseRelativeReference()
        Creates a Label For Reference property with no name and with a null value.
      • AbstractClientBaseRelativeReference

        public AbstractClientBaseRelativeReference​(Atom propertyAtom)
        Creates a Label For Reference property with the specified name with a null value.
        Parameters:
        propertyAtom - the property atom.
      • AbstractClientBaseRelativeReference

        public AbstractClientBaseRelativeReference​(Atom propertyAtom,
                                                   java.lang.String newValue)
        Creates a Label For Reference property with the specified name and value.
        Parameters:
        propertyAtom - the property atom.
        newValue - the new string value for the property.
    • Method Detail

      • resetComponentID

        public void resetComponentID()
        Resets the component ID referenced. This method is typically used in the Designer to clear existing references when copying or moving components.
      • appendPropValue

        protected void appendPropValue​(PropMgr propertyManager,
                                       SendTransaction trans,
                                       java.lang.Object value)
        Overrides the send-transaction to client in order to send the unique label ID in the panel.
        Overrides:
        appendPropValue in class AbstractReference<TARGET extends IClientBaseRelativeTarget>
        Parameters:
        propertyManager - the property manager instance.
        trans - transaction to append the properties to.
        value - the value to append to the transaction, a reference to the current property value.
      • initializeValue

        public boolean initializeValue​(PropMgr propertyManager,
                                       ReadTransaction trans)
        Fakes processing of initializing the value from the remote part by skipping it in the transaction. This value is local in the Editor/Server.
        Overrides:
        initializeValue in class AbstractReference<TARGET extends IClientBaseRelativeTarget>
        Parameters:
        propertyManager - the property manager.
        trans - the transaction to initialize the property with.
        Returns:
        true if the value has changed, false otherwise.
      • informResolved

        protected void informResolved()
        Called when the property has been resolved. Subclasses override this method to implement some behavior. The default implementation performs nothing, i.e. there is no need to call super.informResolved().
        Overrides:
        informResolved in class AbstractReference<TARGET extends IClientBaseRelativeTarget>
      • informError

        protected void informError()
        Called when the property has an error. Subclasses override this method to implement some behavior. The default implementation performs nothing, i.e. there is no need to call super.informError().
        Overrides:
        informError in class AbstractReference<TARGET extends IClientBaseRelativeTarget>
      • isPropReferenceTreeValid

        public final boolean isPropReferenceTreeValid()
        Verifies if the tree is valid for reference creation. This method is typically overridden in a root property that has a Property Manager owner that in turn is checked for a particular configuration (e.g. Client-related references such as LabelForReference that does not create references when communicating).
        Specified by:
        isPropReferenceTreeValid in interface IGProp<TARGET extends IClientBaseRelativeTarget>
        Overrides:
        isPropReferenceTreeValid in class GProp<ReferenceString>
        Returns:
        true if the root property manager is found, false otherwise.