Interface ITextField

  • All Superinterfaces:
    ICustomGuiComponent

    public interface ITextField
    extends ICustomGuiComponent
    Represents a text field component in a custom GUI. Provides methods to get or set its size and text content.
    • Method Detail

      • getWidth

        int getWidth()
        Returns the width of the text field.
        Returns:
        the width in pixels.
      • getHeight

        int getHeight()
        Returns the height of the text field.
        Returns:
        the height in pixels.
      • setSize

        ITextField setSize​(int width,
                           int height)
        Sets the size of the text field.
        Parameters:
        width - the new width.
        height - the new height.
        Returns:
        this text field instance.
      • getText

        java.lang.String getText()
        Returns the current text content of the text field.
        Returns:
        the text.
      • setText

        ITextField setText​(java.lang.String text)
        Sets the text content of the text field.
        Parameters:
        text - the new text.
        Returns:
        this text field instance.