public class InputElement<T extends IElementGUI> extends InputElementBase<T>
text| Constructor and Description |
|---|
InputElement(T gui,
float posX,
float posY,
int width,
java.lang.String text,
boolean editable,
java.util.function.Consumer<InputElementBase<T>> onSubmit,
java.util.function.Function<java.lang.Integer,java.lang.Boolean> allowKey) |
InputElement(T gui,
float posX,
float posY,
int width,
java.lang.String text,
java.util.function.Consumer<InputElementBase<T>> onSubmit) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
allowKey(int key) |
protected void |
onSubmit() |
clearText, deleteFromCursor, deleteWords, getNthWordFromCursor, getNthWordFromPos, getNthWordFromPosWhitespace, getSelectedText, getText, keyPressed, mouseClicked, moveCursorBy, render, select, setCursorPosition, setCursorPositionEnd, setCursorPositionZero, setEditable, setSelectionPos, setText, update, writeTextdrawOutline, drawOutline, drawRectangle, drawRectangle, drawTexturedRectangle, drawTexturedRectangle, endScissor, getChildren, getColorScheme, getHeight, getParent, getPosX, getPosY, getWidth, init, isEnabled, isSelected, isSelected, isVisible, mouseDragged, mouseReleased, mouseScrolled, renderChildren, setEnabled, setHeight, setPosX, setPosY, setVisible, setWidth, startScissor, withColorScheme, withParentpublic InputElement(T gui, float posX, float posY, int width, java.lang.String text, java.util.function.Consumer<InputElementBase<T>> onSubmit)
public InputElement(T gui, float posX, float posY, int width, java.lang.String text, boolean editable, java.util.function.Consumer<InputElementBase<T>> onSubmit, java.util.function.Function<java.lang.Integer,java.lang.Boolean> allowKey)
protected void onSubmit()
onSubmit in class InputElementBase<T extends IElementGUI>protected boolean allowKey(int key)
allowKey in class InputElementBase<T extends IElementGUI>