Enum Class StylesStates

java.lang.Object
java.lang.Enum<StylesStates>
com.iizix.prop.StylesStates
All Implemented Interfaces:
Serializable, Comparable<StylesStates>, Constable

public enum StylesStates extends Enum<StylesStates>
The enum for the supported Styles States for UI components.

This enum maps directly onto the image states, except the two last ones "READ_ONLY" and "HYPERLINK".

Author:
Christopher Mindus
  • Enum Constant Details

    • RTL

      public static final StylesStates RTL
      Right-to-left (0x01).
    • DISABLE

      public static final StylesStates DISABLE
      Disabled (0x02).
    • PRESS

      public static final StylesStates PRESS
      Pressed (0x04).
    • SELECT

      public static final StylesStates SELECT
      Selected (0x08): selected checkbox, radio button, checked or radio menu item item, switch, plain button, etc.
    • FOCUS

      public static final StylesStates FOCUS
      Focused (0x10).
    • HOVER

      public static final StylesStates HOVER
      Hover (0x20), i.e. mouse hovers over component.
    • CAPTURE

      public static final StylesStates CAPTURE
      Capture (0x40) means mouse capture. This state may have to go away but remains here for compatibility with Styles of Images.
    • READ_ONLY

      public static final StylesStates READ_ONLY
      Read-only.
  • Field Details

    • bitValue

      public final int bitValue
      The bit value of the state, or'ed together to make up a specific state.
    • description

      public final String description
      The description of the value.
  • Method Details

    • values

      public static StylesStates[] 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 StylesStates 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
    • getDescription

      public static String getDescription(int mask)
      Returns the states descriptive text for a bit mask value.
      Parameters:
      mask - The mask value, -1 if undefined.
      Returns:
      The corresponding mask description text.
    • getDescriptionNoHyperlink

      public static String getDescriptionNoHyperlink(int mask)
      Returns the states descriptive text for a bit mask value, including the hyperlink state.
      Parameters:
      mask - The mask value, -1 if undefined.
      Returns:
      The corresponding mask description text.