Package org.onosproject.ui.table
Class TableModel.Row
- java.lang.Object
-
- org.onosproject.ui.table.TableModel.Row
-
- Enclosing class:
- TableModel
public class TableModel.Row extends 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(String columnId, Object value)
Sets the cell value for the given column of this row.Object
get(String columnId)
Returns the value of the cell in the given column for this row.String[]
getAsFormattedStrings()
Returns the row as an array of formatted strings.
-
-
-
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 identifiervalue
- 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
-
-