java.lang.Object
org.rusherhack.client.api.ui.window.content.WindowContent
org.rusherhack.client.api.ui.window.content.component.ComboBoxComponent
All Implemented Interfaces:
org.rusherhack.core.interfaces.IClickable, org.rusherhack.core.interfaces.IHoverable, org.rusherhack.core.interfaces.IScrollable, org.rusherhack.core.interfaces.ITickable, org.rusherhack.core.interfaces.ITypeable

public class ComboBoxComponent extends WindowContent
  • Constructor Details

    • ComboBoxComponent

      public ComboBoxComponent(Window window, String[] options)
    • ComboBoxComponent

      public ComboBoxComponent(Window window, Enum<?> enumConstant)
    • ComboBoxComponent

      public ComboBoxComponent(Window window, String[] options, int selected, Consumer<String> callback)
  • Method Details

    • renderContent

      public void renderContent(double mouseX, double mouseY, WindowView parent)
      Specified by:
      renderContent in class WindowContent
    • unfocus

      public void unfocus()
      Description copied from class: WindowContent
      Called when the window loses focus. Should be used to unfocus things like text fields
      Overrides:
      unfocus in class WindowContent
    • getWidth

      public double getWidth()
      Specified by:
      getWidth in class WindowContent
    • getHeight

      public double getHeight()
      Specified by:
      getHeight in class WindowContent
    • setHeight

      public void setHeight(double height)
    • mouseClicked

      public boolean mouseClicked(double mouseX, double mouseY, int button)
    • mouseScrolled

      public boolean mouseScrolled(double mouseX, double mouseY, double delta)
    • charTyped

      public boolean charTyped(char character)
    • keyTyped

      public boolean keyTyped(int key, int scanCode, int modifiers)
    • getOptions

      public String[] getOptions()
    • getSelectedOption

      public String getSelectedOption()
    • getSelected

      public int getSelected()
    • setSelected

      public void setSelected(int selected)
    • isOpen

      public boolean isOpen()
    • setOpen

      public void setOpen(boolean open)
    • getCallback

      public Consumer<String> getCallback()
    • setCallback

      public void setCallback(Consumer<String> callback)