Class DOMElement

All Implemented Interfaces:
EventListener, IGProp<GProp<?>[]>, IPropCnr, 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 Details

    • EMPTY

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

    • 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 Details

    • 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 String getName()
      Gets the element name.
      Returns:
      The upper case string, e.g. DIV, SPAN, INPUT, etc, empty string if not defined.
    • getClasses

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