Class TextField

java.lang.Object
org.rusherhack.client.api.utils.objects.TextField
All Implemented Interfaces:
org.rusherhack.core.interfaces.ITypeable

public class TextField extends Object implements org.rusherhack.core.interfaces.ITypeable
  • Constructor Details

    • TextField

      public TextField()
    • TextField

      public TextField(Consumer<String> consumer)
  • Method Details

    • getDisplayText

      public String getDisplayText()
    • setConsumer

      public void setConsumer(Consumer<String> consumer)
    • reset

      public void reset()
    • charTyped

      public boolean charTyped(char character)
      Specified by:
      charTyped in interface org.rusherhack.core.interfaces.ITypeable
    • keyTyped

      public boolean keyTyped(int keyCode, int scanCode, int modifiers)
      Specified by:
      keyTyped in interface org.rusherhack.core.interfaces.ITypeable
    • insertText

      public void insertText(String textToWrite)
    • deleteWords

      public void deleteWords(int num)
    • deleteChars

      public void deleteChars(int num)
    • getHighlighted

      public String getHighlighted()
    • getHighlightStartPos

      public int getHighlightStartPos()
    • getHighlightEndPos

      public int getHighlightEndPos()
    • setHighlightPos

      public void setHighlightPos(int position)
    • moveCursor

      public void moveCursor(int delta)
    • moveCursorTo

      public void moveCursorTo(int pos)
    • setCursorPosition

      public void setCursorPosition(int pos)
    • moveCursorToStart

      public void moveCursorToStart()
    • moveCursorToEnd

      public void moveCursorToEnd()
    • getCursorPosition

      public int getCursorPosition()
    • getWordPosition

      public int getWordPosition(int numWords)