Enum Class Surface

java.lang.Object
java.lang.Enum<Surface>
dev.boze.api.gui.kit.Surface
All Implemented Interfaces:
Serializable, Comparable<Surface>, Constable

public enum Surface extends Enum<Surface>
Kinds of filled areas in built-in editor layouts. How each is being used comes with it as a WidgetState.
  • Enum Constant Details

    • PANEL

      public static final Surface PANEL
      An editor's background.
    • LIST_AREA

      public static final Surface LIST_AREA
      Behind a list of rows.
    • ROW

      public static final Surface ROW
      A list row: selected when it is the current choice, focused while it is being edited.
    • FIELD

      public static final Surface FIELD
      A text field's box.
    • BOX

      public static final Surface BOX
      A small box, such as a search field or a header label.
    • BUTTON

      public static final Surface BUTTON
      A button's background, drawn by WidgetKit.button(GuiPainter, Rect, String, EditorButton.Role, WidgetState) unless the kit draws buttons itself.
    • TAB

      public static final Surface TAB
      A tab: selected when it is the open tab.
    • CHIP

      public static final Surface CHIP
      A bind or value chip.
    • AMOUNT

      public static final Surface AMOUNT
      An amount box in a list row: focused while it is being typed in.
    • SCROLL_THUMB

      public static final Surface SCROLL_THUMB
    • CARD

      public static final Surface CARD
      A message card.
    • CARD_HEADER

      public static final Surface CARD_HEADER
      The header strip of a message card.
    • CARD_BUTTON

      public static final Surface CARD_BUTTON
      The close button on a message card's header.
    • BACKDROP

      public static final Surface BACKDROP
      Dims everything behind a message card.
  • Method Details

    • values

      public static Surface[] 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 Surface 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