Element, be.yildizgames.common.util.RegisterableSimpleTextAreapublic interface TextArea extends Element
Element.Alignment| Modifier and Type | Method | Description |
|---|---|---|
void |
addLine(be.yildizgames.common.client.translation.Key line) |
|
void |
addLine(be.yildizgames.common.client.translation.Key.MultiKey line) |
|
void |
addLine(String line) |
Add a new line of text.
|
void |
deleteText() |
Delete all the text contained in the text area.
|
void |
detachFromParent() |
|
String |
getContent() |
|
void |
replaceText(be.yildizgames.common.client.translation.Key text) |
|
void |
replaceText(be.yildizgames.common.client.translation.Key.MultiKey text) |
|
void |
replaceText(String text) |
|
TextArea |
setColor(Color color) |
Set the text color.
|
void |
setFont(Font font) |
Set the text font.
|
void |
setMaterial(Material newMaterial) |
Set the background material.
|
addToLeft, 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, showvoid addLine(String line)
line - Text line to add to the current text.void addLine(be.yildizgames.common.client.translation.Key line)
void addLine(be.yildizgames.common.client.translation.Key.MultiKey line)
void detachFromParent()
String getContent()
void deleteText()
void setFont(Font font)
font - Font to use.void setMaterial(Material newMaterial)
newMaterial - Material to set.TextArea setColor(Color color)
color - New text color.void replaceText(String text)
text - Replace former text by a new one.void replaceText(be.yildizgames.common.client.translation.Key text)
void replaceText(be.yildizgames.common.client.translation.Key.MultiKey text)
Copyright © 2014–2018. All rights reserved.