be.yildizgames.common.util.Registerable, ContainerChild, Element, TextArea, Widgetpublic final class SimpleTextArea extends BaseContainerChild implements TextArea
Element.AlignmentMAX_OPACITY, virtualHeightemptyZones| Constructor | Description |
|---|---|
SimpleTextArea(String name,
BaseCoordinate coordinates,
AbstractIconElement backgroundImage,
AbstractTextElement textElement,
int padding,
SimpleContainer container) |
Full constructor.
|
| 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 |
delete() |
Delete the widget elements and remove it from the Registerer.
|
void |
deleteText() |
Delete all the text contained in the text area.
|
String |
getContent() |
|
protected void |
hideImpl() |
Implementation to set the widget invisible.
|
protected void |
highlightImpl(boolean over) |
Does nothing.
|
void |
replaceText(be.yildizgames.common.client.translation.Key text) |
|
void |
replaceText(be.yildizgames.common.client.translation.Key.MultiKey text) |
|
void |
replaceText(String text) |
|
SimpleTextArea |
setColor(Color color) |
Set the text color.
|
void |
setFont(Font font) |
Set the text font.
|
void |
setMaterial(Material newMaterial) |
Set the background material.
|
protected Element |
setPositionImpl(int posX,
int posY) |
Implementation to update the widget position.
|
protected void |
setSizeImpl(int width,
int height) |
Implementation to set the widget size.
|
protected void |
showImpl() |
Implementation to set the widget visible.
|
addEmptyZoneImpl, detachFromParent, getParent, isContainer, setLeftFromParent, setLeftFromParent, setTopFromParent, setTopFromParent, setUnaffectedByZoom, updateSizeAfterZoomaddToLeft, addToPosition, addToTop, getBottom, getCoordinates, getHeight, getLeft, getOpacity, getRight, getTop, getWidth, hide, isVisible, multiplySize, resetVirtualHeight, setCoordinates, setHeight, setLeft, setLeft, setLeft, setLeft, setPosition, setPosition, setPosition, setSize, setSize, setTop, setTop, setTop, setTop, setVirtualHeight, setVisible, setWidth, show, updateAddPositionValueaddEmptyZone, addKeyboardListener, addMouseDoubleLeftClickListener, addMouseDragListener, addMouseLeftClickListener, addMouseMoveListener, addMouseReleaseListener, addMouseWheelListener, addOnMouseOverListener, addSpecialKeyListener, align, contains, contains, deleteKeyPressed, disableEmptyZone, enableEmptyZone, enterKeyPressed, findParent, focus, forceContainsFalse, getAbsoluteLeft, getAbsolutePosition, getAbsoluteTop, highlight, isFocusable, isMouseOver, keyPressed, mouseLeftClick, playAnimation, registerAnimation, removeAllClickListeners, setFocusable, setHighlightable, setMouseClickActive, setMouseOver, setStatic, stopAnimation, toStringupdateAddPositionValueaddToLeft, 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, showclone, finalize, getClass, notify, notifyAll, wait, wait, waitdetachFromParentaddEmptyZone, addKeyboardListener, addMouseDoubleLeftClickListener, addMouseDragListener, addMouseLeftClickListener, addMouseMoveListener, addMouseReleaseListener, addMouseWheelListener, addOnMouseOverListener, addSpecialKeyListener, align, contains, contains, focus, getAbsoluteLeft, getAbsoluteTop, highlight, isFocusable, playAnimation, registerAnimation, removeAllClickListeners, stopAnimationpublic SimpleTextArea(String name, BaseCoordinate coordinates, AbstractIconElement backgroundImage, AbstractTextElement textElement, int padding, SimpleContainer container)
name - Unique name.coordinates - Text area size and position.backgroundImage - Background.textElement - Text Area text element.padding - Text padding.container - Container holding the TextAreaGui widget.public void addLine(be.yildizgames.common.client.translation.Key line)
public void addLine(be.yildizgames.common.client.translation.Key.MultiKey line)
public void addLine(String line)
TextAreapublic String getContent()
getContent in interface TextAreapublic void deleteText()
TextAreadeleteText in interface TextAreapublic void delete()
delete in class BaseElementprotected void highlightImpl(boolean over)
highlightImpl in class BaseWidgetover - Unused.protected void showImpl()
BaseElementshowImpl in class BaseElementprotected void hideImpl()
BaseElementhideImpl in class BaseElementpublic void setFont(Font font)
TextAreapublic void setMaterial(Material newMaterial)
TextAreasetMaterial in interface TextAreanewMaterial - Material to set.protected void setSizeImpl(int width,
int height)
BaseElementsetSizeImpl in class BaseElementwidth - New width.height - New height.protected Element setPositionImpl(int posX, int posY)
BaseElementsetPositionImpl in class BaseElementposX - New widget x position.posY - New widget y position.public SimpleTextArea setColor(Color color)
TextAreapublic void replaceText(String text)
replaceText in interface TextAreatext - Replace former text by a new one.public void replaceText(be.yildizgames.common.client.translation.Key text)
replaceText in interface TextAreapublic void replaceText(be.yildizgames.common.client.translation.Key.MultiKey text)
replaceText in interface TextAreaCopyright © 2014–2018. All rights reserved.