Class TextField
java.lang.Object
org.rusherhack.client.api.utils.objects.TextField
- All Implemented Interfaces:
org.rusherhack.core.interfaces.ITypeable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
charTyped
(char character) void
deleteChars
(int num) void
deleteWords
(int num) int
int
int
int
getWordPosition
(int numWords) void
insertText
(String textToWrite) boolean
keyTyped
(int keyCode, int scanCode, int modifiers) void
moveCursor
(int delta) void
moveCursorTo
(int pos) void
void
void
reset()
void
setConsumer
(Consumer<String> consumer) void
setCursorPosition
(int pos) void
setHighlightPos
(int position)
-
Constructor Details
-
TextField
public TextField() -
TextField
-
-
Method Details
-
getDisplayText
-
setConsumer
-
reset
public void reset() -
charTyped
public boolean charTyped(char character) - Specified by:
charTyped
in interfaceorg.rusherhack.core.interfaces.ITypeable
-
keyTyped
public boolean keyTyped(int keyCode, int scanCode, int modifiers) - Specified by:
keyTyped
in interfaceorg.rusherhack.core.interfaces.ITypeable
-
insertText
-
deleteWords
public void deleteWords(int num) -
deleteChars
public void deleteChars(int num) -
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)
-