Class DOMElement

  • All Implemented Interfaces:
    EventListener, IGProp<GProp<?>[]>, IPropCnr, java.lang.Cloneable

    public class DOMElement
    extends PropCnr
    DOM Element property container used to keep information of the created UI item and its internal DOM structure. The property is used in the Designer only.
    Author:
    Christopher Mindus
    • Field Detail

      • EMPTY

        public static final DOMElement[] EMPTY
        Empty children.
    • Constructor Detail

      • DOMElement

        public DOMElement()
        Creates a DOM Element property container with the specified name with a null value.
      • DOMElement

        public DOMElement​(Atom propertyAtom)
        Creates a DOM Element property container with the specified name with a null value.
        Parameters:
        propertyAtom - the property atom.
    • Method Detail

      • isPropPrivateAtCreation

        protected boolean isPropPrivateAtCreation()
        Make it private!
        Overrides:
        isPropPrivateAtCreation in class GProp<GProp<?>[]>
        Returns:
        true if the property should be set to private at creation, false for default.
      • getChildren

        public DOMElement[] getChildren()
        Gets the DOM Element children.
      • getName

        public java.lang.String getName()
        Gets the element name.
        Returns:
        The upper case string, e.g. DIV, SPAN, INPUT, etc, empty string if not defined.
      • getClasses

        public java.lang.String getClasses()
        Gets the classes for the element.
        Returns:
        The list of classes, space separated, null if not defined.