Class TextFieldComponent
java.lang.Object
org.rusherhack.client.api.ui.window.content.WindowContent
org.rusherhack.client.api.ui.window.content.component.TextFieldComponent
- 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
-
Field Summary
Fields inherited from class org.rusherhack.client.api.ui.window.content.WindowContent
contextMenu, x, y -
Constructor Summary
ConstructorsConstructorDescriptionTextFieldComponent(Window window, double width) TextFieldComponent(Window window, String label, double width) TextFieldComponent(Window window, String label, double width, boolean censored) -
Method Summary
Modifier and TypeMethodDescriptionbooleancharTyped(char character) doublegetLabel()getValue()doublegetWidth()booleanbooleankeyTyped(int key, int scanCode, int modifiers) booleanmouseClicked(double mouseX, double mouseY, int button) booleanmouseScrolled(double mouseX, double mouseY, double delta) voidrenderContent(double mouseX, double mouseY, WindowView parent) voidsetCharacterFilter(Predicate<Character> characterFilter) voidsetFocused(boolean focused) voidvoidsetReturnCallback(Consumer<String> returnCallback) voidvoidsetWidth(double width) voidunfocus()Called when the window loses focus.Methods inherited from class org.rusherhack.client.api.ui.window.content.WindowContent
getContextMenu, getFontRenderer, getRenderer, getWindow, getX, getY, isHovered, setContextMenu, setX, setYMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.rusherhack.core.interfaces.IClickable
mouseReleasedMethods inherited from interface org.rusherhack.core.interfaces.ITickable
tick
-
Constructor Details
-
TextFieldComponent
-
TextFieldComponent
-
TextFieldComponent
-
-
Method Details
-
renderContent
- Specified by:
renderContentin classWindowContent
-
unfocus
public void unfocus()Description copied from class:WindowContentCalled when the window loses focus. Should be used to unfocus things like text fields- Overrides:
unfocusin classWindowContent
-
getWidth
public double getWidth()- Specified by:
getWidthin classWindowContent
-
getHeight
public double getHeight()- Specified by:
getHeightin classWindowContent
-
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) -
getDisplayValue
-
getLabel
-
setLabel
-
getValue
-
setValue
-
setWidth
public void setWidth(double width) -
setReturnCallback
-
setCharacterFilter
-
isFocused
public boolean isFocused() -
setFocused
public void setFocused(boolean focused)
-