public interface Table
Table
is the persistence object of DomTableEditorValue
.DomTableEditorValue
Modifier and Type | Method and Description |
---|---|
void |
addColumn(int index)
Adds a new column at the specified index.
|
void |
addRow(int index)
Adds a new row at the specified index.
|
void |
deleteColumn(int column)
Deletes the column with the specified index
|
void |
deleteRow(int row)
Deletes the row with the specified index
|
Element |
diff(Element other)
Compute a difference between this element and the given one.
|
TableCell |
getCell(int row,
int column)
Gets the
cell of this table with the given row & col index
or null if no cell exists with these indices. |
int |
getColumns()
Returns the numer of existing columns in this table
|
Element |
getDom()
Returns the element node of this table.
|
int |
getRows()
Returns the number of existing rows in this table.
|
boolean |
isEmpty()
Indicates whether this table is empty or not.
|
void |
replace(Table from)
Replaces this table with the given table.
|
int getRows()
int getColumns()
void addRow(int index)
addRow(0
to add a new row at the beginning (will become first row).
Use getRows()
as param to add a new row at the end of this table.index
- the index at which the new row should be addedvoid deleteRow(int row)
row
- the index of the row to be deletedvoid addColumn(int index)
addColumn(0
to add a new column at the beginning (will become first column).
Use getColumns()
as param to add a new column at the end (will become last column).index
- the index at which the new column should be addedvoid deleteColumn(int column)
column
- the index of the colum to be deleted@Nullable TableCell getCell(int row, int column)
cell
of this table with the given row
& col
index
or null
if no cell exists with these indices.row
- the row indexcolumn
- the col indexnull
if no cell exists for given indicesElement getDom()
boolean isEmpty()
true
if this table is empty, false
otherwisevoid replace(Table from)
from
- the table to replace this table withCopyright © 2015 e-Spirit AG. All Rights Reserved. Build 5.1.408