Class CIDProp

  • All Implemented Interfaces:
    EventListener, IGProp<java.lang.Integer>, java.lang.Cloneable

    public class CIDProp
    extends Int32Prop
    Component ID property is used to assign a unique value known on both client and server. The Component ID is used for references such as LabelFor.
    Author:
    Christopher Mindus
    • Constructor Detail

      • CIDProp

        public CIDProp()
        Default constructor.
      • CIDProp

        public CIDProp​(Atom atom)
        Default constructor with name.
    • Method Detail

      • onPropParentChanged

        protected void onPropParentChanged​(PropCnr oldParent,
                                           PropCnr newParent)
        Called when the parent is set.
        Overrides:
        onPropParentChanged in class GProp<java.lang.Integer>
        Parameters:
        oldParent - The old parent (or null if none).
        newParent - The new parent (or null if none).
      • getComponentID

        public int getComponentID()
        Gets the Component ID.
      • appendPropValue

        protected void appendPropValue​(PropMgr propertyManager,
                                       SendTransaction trans,
                                       java.lang.Object value)
        Appends the integer property value. If uninitialized, -1 is appended.
        Overrides:
        appendPropValue in class Int32Prop
        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.