Class TableModel.Row

  • Enclosing class:
    TableModel

    public class TableModel.Row
    extends Object
    Model of a row.
    • Constructor Detail

      • Row

        public Row()
    • Method Detail

      • cell

        public TableModel.Row cell​(String columnId,
                                   Object value)
        Sets the cell value for the given column of this row.
        Parameters:
        columnId - column identifier
        value - value to set
        Returns:
        self, for chaining
      • get

        public Object get​(String columnId)
        Returns the value of the cell in the given column for this row.
        Parameters:
        columnId - column identifier
        Returns:
        cell value
      • getAsFormattedStrings

        public String[] getAsFormattedStrings()
        Returns the row as an array of formatted strings.
        Returns:
        the formatted row data