Interface TextArea

  • All Superinterfaces:
    Element, be.yildizgames.common.util.Registerable

    public interface TextArea
    extends Element
    Author:
    Grégory Van den Borre
    • 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)