Class TableModel.Row

  • Enclosing class:
    TableModel

    public class TableModel.Row
    extends java.lang.Object
    Model of a row.
    • Constructor Summary

      Constructors 
      Constructor Description
      Row()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      TableModel.Row cell​(java.lang.String columnId, java.lang.Object value)
      Sets the cell value for the given column of this row.
      java.lang.Object get​(java.lang.String columnId)
      Returns the value of the cell in the given column for this row.
      java.lang.String[] getAsFormattedStrings()
      Returns the row as an array of formatted strings.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Row

        public Row()
    • Method Detail

      • cell

        public TableModel.Row cell​(java.lang.String columnId,
                                   java.lang.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 java.lang.Object get​(java.lang.String columnId)
        Returns the value of the cell in the given column for this row.
        Parameters:
        columnId - column identifier
        Returns:
        cell value
      • getAsFormattedStrings

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