Interface ITextField

All Superinterfaces:
ICustomGuiComponent
All Known Subinterfaces:
ITextArea

public interface ITextField extends ICustomGuiComponent
  • Method Details

    • getText

      String getText()
    • setText

      ITextField setText(String text)
    • getColor

      int getColor()
    • setColor

      ITextField setColor(int color)
    • setOnChange

      ITextField setOnChange(GuiComponentUpdate<ITextField> onChange)
    • setOnFocusLost

      ITextField setOnFocusLost(GuiComponentUpdate<ITextField> onChange)
    • setFocused

      ITextField setFocused(boolean bo)
    • getFocused

      boolean getFocused()
    • setCharacterType

      ITextField setCharacterType(int type)
      Parameters:
      type - 0:string, 1:int, 2:hex, 3:float
    • getCharacterType

      int getCharacterType()
      Returns:
      0:string, 1:int, 2:hex, 3:float
    • getInteger

      int getInteger()
      Returns:
      Incase CharacterType is 1 or 2 it will convert text to an integer
    • setInteger

      ITextField setInteger(int i)
      Parameters:
      i - Incase CharacterType is 1 or 2 set the text as the integer, if its CharacterType 2 it will convert to Hex
    • getFloat

      float getFloat()
    • setFloat

      ITextField setFloat(float f)
    • setMinMax

      ITextField setMinMax(int min, int max)
      Incase CharacterType is 1 or 2, you can set the min and max value