Enum Class NodeFlag

java.lang.Object
java.lang.Enum<NodeFlag>
com.juliewoolie.dom.NodeFlag
All Implemented Interfaces:
Serializable, Comparable<NodeFlag>, Constable

public enum NodeFlag extends Enum<NodeFlag>
Flags each Node can have
  • Enum Constant Details

    • HOVERED

      public static final NodeFlag HOVERED
      The element is currently 'hovered'

      Note that this does not mean Document.getHoveredElement() will equal the node this was set on. This flag is propagated through the DOM tree when the player hovers over an element, so all the parent elements of a hovered element will also have this flag.

    • CLICKED

      public static final NodeFlag CLICKED
      The element is currently 'clicked'
    • ADDED

      public static final NodeFlag ADDED
      The element has been added to the DOM.

      If this flag is not set, it means the node, or it's ancestors, have not been appended to a Document.

    • ROOT

      public static final NodeFlag ROOT
      The element is the root element of its Document
  • Field Details

    • mask

      public final int mask
      The flag's bit mask
  • Method Details

    • values

      public static NodeFlag[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static NodeFlag valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null