Interface StatusItem

All Superinterfaces:
Item<StatusField>
All Known Subinterfaces:
UnknownStatusItem

public interface StatusItem extends Item<StatusField>
Represents an item of a StatusField
  • Method Details

    • setText

      void setText(String text)
      Change the text of the item
      Parameters:
      text - The new text
    • getText

      String getText()
      Get the current text of the item
      Returns:
      The text
    • setType

      void setType(StatusItemType type)
      Change the type of the item
      Parameters:
      type - The new type
    • getType

      StatusItemType getType()
      Get the current type of the item
      Returns:
      The type
    • compareTo

      int compareTo(StatusItem otherItem)
      Compare two items
      Parameters:
      otherItem - the item to compare
      Returns:
      0 if they are equals, positive if current item is bigger than the other or negative if not