Class WMeteorTextBox
java.lang.Object
meteordevelopment.meteorclient.gui.widgets.WWidget
meteordevelopment.meteorclient.gui.widgets.input.WTextBox
meteordevelopment.meteorclient.gui.themes.meteor.widgets.input.WMeteorTextBox
- All Implemented Interfaces:
MeteorWidget, BaseWidget
-
Nested Class Summary
Nested classes/interfaces inherited from class WTextBox
WTextBox.ICompletionItem, WTextBox.Renderer -
Field Summary
Fields inherited from class WTextBox
action, actionOnUnfocused, cursor, doubleClick, filter, placeholder, renderer, selecting, selectionEnd, selectionStart, text, textStart, textWidths -
Constructor Summary
ConstructorsConstructorDescriptionWMeteorTextBox(String text, String placeholder, CharFilter filter, Class<? extends WTextBox.Renderer> renderer) -
Method Summary
Modifier and TypeMethodDescriptionprotected WContainerprotected <T extends WWidget & WTextBox.ICompletionItem>
TcreateCompletionsValueWidth(String completion, boolean selected) protected voidprotected voidonRender(GuiRenderer renderer, double mouseX, double mouseY, double delta) Methods inherited from class WTextBox
calculateWidgetPositions, get, getCursorTextWidth, getOverflowWidthForRender, getTextWidth, maxTextWidth, move, onCalculateSize, onCharTyped, onKeyPressed, onKeyRepeated, onMouseClicked, onMouseMoved, onMouseReleased, render, set, setCursorMax, setFocusedMethods inherited from class WWidget
calculateSize, charTyped, getRoot, getTheme, getView, init, invalidate, isFocused, isOver, keyPressed, keyRepeated, mouseClicked, mouseMoved, mouseReleased, mouseScrolled, onCalculateWidgetPositions, onMouseScrolled, padMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BaseWidget
getThemeMethods inherited from interface MeteorWidget
renderBackground, renderBackground, theme
-
Constructor Details
-
WMeteorTextBox
public WMeteorTextBox(String text, String placeholder, CharFilter filter, Class<? extends WTextBox.Renderer> renderer)
-
-
Method Details
-
createCompletionsRootWidget
- Specified by:
createCompletionsRootWidgetin classWTextBox
-
createCompletionsValueWidth
protected <T extends WWidget & WTextBox.ICompletionItem> T createCompletionsValueWidth(String completion, boolean selected) - Specified by:
createCompletionsValueWidthin classWTextBox
-
onCursorChanged
protected void onCursorChanged()- Overrides:
onCursorChangedin classWTextBox
-
onRender
-