ContainerChild, Element, be.yildizgames.common.util.Registerable, WidgetSimpleInputBoxpublic interface InputBox extends Widget, ContainerChild
Element.Alignment| Modifier and Type | Method | Description |
|---|---|---|
void |
deleteText() |
Delete all the current contained text.
|
String |
getText() |
|
void |
removeChar() |
Remove the last char of the current contained text.
|
void |
setCaptionText(be.yildizgames.common.client.translation.Key caption) |
|
void |
setCaptionText(String caption) |
Set the caption text.
|
InputBox |
setDefaultMessage(be.yildizgames.common.client.translation.Key message) |
|
InputBox |
setDefaultMessage(String message) |
|
void |
setFont(Font font) |
Set the font to use for the inner text and for the caption.
|
InputBox |
setMaterial(Material material) |
Set the box background material.
|
InputBox |
setPassword() |
All characters written in the box will be hidden and replaced by the replacement character(default is '*').
|
void |
setPasswordReplacement(char replacement) |
Change the password replacement char by another, default is '*'.
|
InputBox |
setText(be.yildizgames.common.client.translation.Key text) |
|
InputBox |
setText(String text) |
Set the text to print in the box.
|
InputBox |
setTextAlignment(PositionRelativeLeft left,
PositionRelativeTop top) |
Set the text position relative to the input box.
|
InputBox |
setTextCenter() |
Align the text.
|
detachFromParent, getParent, setLeftFromParent, setLeftFromParent, setTopFromParent, setTopFromParent, updateAddPositionValue, updateSizeAfterZoomaddToLeft, addToPosition, addToTop, getBottom, getCoordinates, getHeight, getLeft, getRight, getTop, getWidth, hide, isVisible, resetVirtualHeight, setCoordinates, setHeight, setLeft, setLeft, setLeft, setLeft, setPosition, setPosition, setPosition, setSize, setSize, setTop, setTop, setTop, setTop, setVirtualHeight, setVisible, setWidth, showaddEmptyZone, addKeyboardListener, addMouseDoubleLeftClickListener, addMouseDragListener, addMouseLeftClickListener, addMouseMoveListener, addMouseReleaseListener, addMouseWheelListener, addOnMouseOverListener, addSpecialKeyListener, align, contains, contains, focus, getAbsoluteLeft, getAbsoluteTop, highlight, isFocusable, playAnimation, registerAnimation, removeAllClickListeners, stopAnimationInputBox setDefaultMessage(be.yildizgames.common.client.translation.Key message)
InputBox setPassword()
InputBox setMaterial(Material material)
material - Material to use as background.InputBox setTextAlignment(PositionRelativeLeft left, PositionRelativeTop top)
left - Left relative position.top - Top relative position.void setFont(Font font)
font - Font to use.void setPasswordReplacement(char replacement)
replacement - New char to use in password boxes.String getText()
InputBox setText(String text)
text - Text to set.InputBox setText(be.yildizgames.common.client.translation.Key text)
void setCaptionText(String caption)
caption - Text to set for the caption.void setCaptionText(be.yildizgames.common.client.translation.Key caption)
void deleteText()
InputBox setTextCenter()
void removeChar()
Copyright © 2014–2018. All rights reserved.