Interface Table.Row

Enclosing interface:
Table

public static interface Table.Row
A Row represents one entry in a Table, consisting of a list of Fields. Note that this does not always mean exactly one line from a screen - a Row can span multiple lines if it is "folded" for example.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the contents of the Row as a Map.
    Returns the contents of the Row.
    int
    Returns the identifier of the row, unique within this Table.
    void
    update(List<String> fieldNames, List<String> fieldValues)
    Update the values in the given fields/columns.
  • Method Details

    • getId

      int getId()
      Returns the identifier of the row, unique within this Table. TODO Not sure we need this at all. TODO If it is just an ordinal number, perhaps "Id" is not a great name.
      Returns:
      an identifier for the row.
    • getFields

      List<Field> getFields()
      Returns the contents of the Row.
      Returns:
      the contents of the Row.
    • getFieldMap

      Map<String,Field> getFieldMap()
      Returns the contents of the Row as a Map. The keys are the field names.
      Returns:
      the contents of the Row.
    • update

      void update(List<String> fieldNames, List<String> fieldValues)
      Update the values in the given fields/columns.
      Parameters:
      fieldNames - the names of the fields to update
      fieldValues - the values to update the fields with