public class TextEditElement extends GuiElement implements IValueElement<java.lang.String>
cropElement, cropHeight, cropWidth, cropX, cropY, height, parent, visible, width, xOffset, xPos, yOffset, yPos| Constructor and Description |
|---|
TextEditElement(int xPos,
int yPos,
int width,
int height) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canFocus() |
boolean |
canMouseOver() |
void |
drawElement(int mouseX,
int mouseY)
Draws the element itself at the current position.
|
java.lang.String |
getValue() |
TextEditElement |
setMaxLength(int maxLength) |
TextEditElement |
setValidator(java.util.function.Predicate<java.lang.String> validator) |
void |
setValue(java.lang.String value) |
addEventHandler, addTooltip, addTooltip, addTooltip, clearTooltip, draw, getAbsoluteX, getAbsoluteY, getAlign, getCropElement, getCropHeight, getCropWidth, getCropX, getCropY, getHeight, getParent, getTooltip, getTooltip, getWidth, getWindow, getX, getY, hasTooltip, hide, isCropped, isEnabled, isMouseOver, isMouseOver, isVisible, onCreation, onDeletion, onUpdateClient, receiveEvent, setAlign, setBounds, setCroppedZone, setHeight, setLocation, setOffset, setParent, setSize, setWidth, setXPosition, setYPosition, show, toString, updateClientdrawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLineclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddEventHandler, addEventHandler, addEventHandler, addSelfEventHandler, addTooltip, addTooltip, addTooltip, clearTooltip, draw, getAbsoluteX, getAbsoluteY, getAlign, getHeight, getParent, getTooltip, getTooltip, getWidth, getWindow, getX, getY, hasTooltip, hide, isEnabled, isMouseOver, isMouseOver, isVisible, onCreation, onDeletion, postEvent, postEvent, receiveEvent, setAlign, setBounds, setHeight, setLocation, setOffset, setParent, setSize, setWidth, setXPosition, setYPosition, show, updateClientgetCropElement, getCropHeight, getCropWidth, getCropX, getCropY, isCropped, setCroppedZonepublic TextEditElement(int xPos,
int yPos,
int width,
int height)
public TextEditElement setMaxLength(int maxLength)
public TextEditElement setValidator(java.util.function.Predicate<java.lang.String> validator)
public java.lang.String getValue()
getValue in interface IValueElement<java.lang.String>public void setValue(java.lang.String value)
setValue in interface IValueElement<java.lang.String>public void drawElement(int mouseX,
int mouseY)
IGuiElementdrawElement in interface IGuiElementdrawElement in class GuiElementmouseX - The x position of the mouse relative to the parent of the element.mouseY - The y position of the mouse relative to the parent of the element.public boolean canFocus()
canFocus in interface IGuiElementpublic boolean canMouseOver()
canMouseOver in interface IGuiElement