Interface View.Row

Enclosing interface:
View

public static interface View.Row
A row of a View.Table: one cell per call.
  • Method Details

    • text

      View.Row text(String text)
      Parameters:
      text - a cell of text
      Returns:
      this row
    • text

      View.Row text(String text, Tone tone)
      Parameters:
      text - a cell of text
      tone - its colour
      Returns:
      this row
    • number

      View.Row number(double value)
      Parameters:
      value - a number, written the way of the dashboard's language
      Returns:
      this row
    • number

      View.Row number(double value, int decimals)
      Parameters:
      value - a number
      decimals - how many decimals it shows
      Returns:
      this row
    • badge

      View.Row badge(String text, Tone tone)
      Parameters:
      text - a short label in a pill
      tone - its colour
      Returns:
      this row
    • player

      View.Row player(UUID uuid, String name)
      A player: their head and their name.
      Parameters:
      uuid - the player's id, for their head
      name - the player's name
      Returns:
      this row
    • time

      View.Row time(long epochMillis)
      Parameters:
      epochMillis - a moment, written as how long ago it was ("3 min ago")
      Returns:
      this row
    • date

      View.Row date(long epochMillis)
      Parameters:
      epochMillis - a moment, written as a date and a time
      Returns:
      this row
    • buttons

      View.Row buttons(Consumer<View.Buttons> buttons)
      Parameters:
      buttons - a cell of buttons, at the row's end
      Returns:
      this row