Class AbstractUITextEntryComponent.DefaultTextEntryState

All Implemented Interfaces:
UIKeyHandler, Hintable, Savable
Enclosing class:
AbstractUITextEntryComponent

protected class AbstractUITextEntryComponent.DefaultTextEntryState extends UIState
  • Constructor Details

    • DefaultTextEntryState

      protected DefaultTextEntryState()
  • Method Details

    • mousePressed

      public boolean mousePressed(MouseButton button, InputState state)
      Description copied from class: UIComponent
      Called when a mouse button is pressed while the cursor is over this component.
      Overrides:
      mousePressed in class UIComponent
      Parameters:
      button - the button that was pressed
      state - the current tracked state of the input system.
      Returns:
      true if we want to consider the event "consumed" by the UI system.
    • mouseEntered

      public void mouseEntered(int mouseX, int mouseY, InputState state)
      Description copied from class: UIComponent
      Called when a mouse cursor enters this component.
      Overrides:
      mouseEntered in class UIComponent
      Parameters:
      mouseX - mouse x coordinate.
      mouseY - mouse y coordinate.
      state - the current tracked state of the input system.
    • mouseDeparted

      public void mouseDeparted(int mouseX, int mouseY, InputState state)
      Description copied from class: UIComponent
      Called when a mouse cursor leaves this component.
      Overrides:
      mouseDeparted in class UIComponent
      Parameters:
      mouseX - mouse x coordinate.
      mouseY - mouse y coordinate.
      state - the current tracked state of the input system.