Interface TextArea
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface be.yildizgames.module.graphic.gui.internal.Element
Element.Alignment
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddLine(be.yildizgames.common.client.translation.TranslationKey line)voidaddLine(be.yildizgames.common.client.translation.TranslationKey.MultiKey line)voidaddLine(String line)Add a new line of text.voiddeleteText()Delete all the text contained in the text area.voiddetachFromParent()StringgetContent()voidreplaceText(be.yildizgames.common.client.translation.TranslationKey text)voidreplaceText(be.yildizgames.common.client.translation.TranslationKey.MultiKey text)voidreplaceText(String text)TextAreasetColor(be.yildizgames.module.color.Color color)Set the text color.voidsetFont(Font font)Set the text font.voidsetMaterial(Material newMaterial)Set the background material.-
Methods inherited from interface be.yildizgames.module.graphic.gui.internal.Element
addToLeft, addToPosition, addToTop, getBottom, getCoordinates, getHeight, getLeft, getRight, getTop, getWidth, hide, isVisible, resetVirtualHeight, setCoordinates, setHeight, setLeft, setLeft, setLeft, setLeft, setPosition, setPosition, setSize, setSize, setTop, setTop, setTop, setTop, setVirtualHeight, setVisible, setWidth, show
-
-
-
-
Method Detail
-
addLine
void addLine(String line)
Add a new line of text.- Parameters:
line- Text line to add to the current text.
-
addLine
void addLine(be.yildizgames.common.client.translation.TranslationKey line)
-
addLine
void addLine(be.yildizgames.common.client.translation.TranslationKey.MultiKey line)
-
detachFromParent
void detachFromParent()
-
getContent
String getContent()
- Returns:
- The printed text content.
-
deleteText
void deleteText()
Delete all the text contained in the text area.
-
setFont
void setFont(Font font)
Set the text font.- Parameters:
font- Font to use.
-
setMaterial
void setMaterial(Material newMaterial)
Set the background material.- Parameters:
newMaterial- Material to set.
-
setColor
TextArea setColor(be.yildizgames.module.color.Color color)
Set the text color.- Parameters:
color- New text color.- Returns:
- This object for chaining.
-
replaceText
void replaceText(String text)
- Parameters:
text- Replace former text by a new one.
-
replaceText
void replaceText(be.yildizgames.common.client.translation.TranslationKey text)
-
replaceText
void replaceText(be.yildizgames.common.client.translation.TranslationKey.MultiKey text)
-
-