Class EmptyTableModel
- java.lang.Object
-
- com.github.bordertech.wcomponents.AbstractTableModel
-
- com.github.bordertech.wcomponents.EmptyTableModel
-
- All Implemented Interfaces:
WTable.TableModel
,Serializable
public final class EmptyTableModel extends AbstractTableModel
An empty data model implementation, the default model used byWTable
.- Since:
- 1.0.0
- Author:
- Jonathan Austin
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static EmptyTableModel
INSTANCE
The singleton instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getChildCount(List<Integer> row)
Retrieves the number of children a row has.int
getRowCount()
Retrieves the number of rows for the root (ie top) level.Object
getValueAt(List<Integer> row, int col)
Retrieves the value at the given row and column.-
Methods inherited from class com.github.bordertech.wcomponents.AbstractTableModel
getRendererClass, getRowKey, hasChildren, isCellEditable, isDisabled, isExpandable, isSelectable, isSortable, setValueAt, sort, sort
-
-
-
-
Field Detail
-
INSTANCE
public static final EmptyTableModel INSTANCE
The singleton instance.
-
-
Method Detail
-
getValueAt
public Object getValueAt(List<Integer> row, int col)
Description copied from interface:WTable.TableModel
Retrieves the value at the given row and column.- Parameters:
row
- ignoredcol
- ignored- Returns:
- null
-
getRowCount
public int getRowCount()
Description copied from interface:WTable.TableModel
Retrieves the number of rows for the root (ie top) level.- Returns:
- 0
-
getChildCount
public int getChildCount(List<Integer> row)
Description copied from interface:WTable.TableModel
Retrieves the number of children a row has.- Parameters:
row
- ignored- Returns:
- 0
-
-