Class UIState

All Implemented Interfaces:
UIKeyHandler, Hintable, Savable
Direct Known Subclasses:
AbstractUITextEntryComponent.DefaultTextEntryState, LabelState, UITextArea.TextAreaWritingState, UITextField.TextFieldWritingState

public class UIState extends UIComponent
Used in conjunction with StateBasedUIComponent to describe the appearance and behavior of a specific component state.
  • Constructor Details

    • UIState

      public UIState()
  • Method Details

    • setupAppearance

      public void setupAppearance(UIComponent component)
      Applies the local characteristics of this state to the given UIComponent.
      Parameters:
      component - the UI component to apply this state to
    • release

      public void release()
      Called right before a state loses its status as being the "current" state of a UIComponent.
    • getHudX

      @Deprecated public int getHudX()
      Deprecated.
      Overrides:
      getHudX in class UIComponent
      Returns:
      current screen x coordinate of this component's origin (usually its lower left corner.)
    • getHudY

      @Deprecated public int getHudY()
      Deprecated.
      Overrides:
      getHudY in class UIComponent
      Returns:
      current screen y coordinate of this component's origin (usually its lower left corner.)