Method Summary |
|
public Element[] | addColumn() Adds a new column at the end of columns using the cell pattern. |
public Element[] | addColumn(Object[] columnData) Adds a new column at the end of columns using the cell pattern, and renders the specified values using
the current structure and renderer.
Parameters: columnData - the column values to render. |
public Element[] | addColumn(List columnData) Adds a new column at the end of columns using the cell pattern, and renders the specified values using
the current structure and renderer.
Parameters: columnData - the column values to render. |
public Element | addRow() Adds a new row element at the end of the table using the row pattern (the new row is a clone). |
public Element | addRow(Object[] rowData) Adds a new row element at the end of the table using the row pattern, and renders the specified values using
the current structure and renderer.
Parameters: rowData - the row values to render. |
public Element | addRow(List rowData) Adds a new row element at the end of the table using the row pattern, and renders the specified values using
the current structure and renderer.
Parameters: rowData - the row values to render. |
public Element | getCellContentElementAt(int row, int column) Returns the "content" element of the cell, this element is used to render below
the associated value of the cell. |
public DocumentFragment | getCellContentPatternFragment() Returns the pattern used to render values if
ElementTable.isUsePatternMarkupToRender() is true. |
public Element | getCellPatternElement() Returns the element used as a cell pattern. |
public int | getColumnCount() Returns the number of columns. |
public ElementTableRenderer | getElementTableRenderer() Returns the current renderer used by this table. |
public ElementTableStructure | getElementTableStructure() Returns the current structure used by this table. |
public Element | getRowContentElementAt(int row) Returns the "content" element of the row, this element is the parent of the row cells
This element is obtained using the current structure.
Parameters: row - index of the row. |
public Element | getRowPatternElement() Returns the element used as a row pattern. |
public Element[] | insertColumnAt(int column) Inserts a new column at the specified position using the cell pattern.
Parameters: column - index of the new column. |
public Element[] | insertColumnAt(int column, Object[] columnData) Inserts a new column at the specified position using the cell pattern,
and renders the specified values using
the current structure and renderer.
Parameters: column - index of the new column. Parameters: columnData - the column values to render. |
public Element[] | insertColumnAt(int column, List columnData) Inserts a new column at the specified position using the cell pattern,
and renders the specified values using
the current structure and renderer.
Parameters: column - index of the new column. Parameters: columnData - the column values to render. |
public Element | insertRowAt(int row) Inserts a new row element at the specified position using the row pattern.
Parameters: row - index of the new row. |
public Element | insertRowAt(int row, Object[] rowData) Inserts a new row element at the specified position using the row pattern, and renders the specified row values using
the current structure and renderer.
Parameters: row - index of the new row. |
public Element | insertRowAt(int row, List rowData) Inserts a new row element at the specified position using the row pattern and renders the specified row values using
the current structure and renderer.
Parameters: row - index of the new row. |
public boolean | isUsePatternMarkupToRender() Informs whether the original (saved as pattern) markup is used to render. |
public void | setCellValueAt(int row, int column, Object value) Renders the specified value into the cell element with the given row and column position
using the current structure and renderer.
Parameters: row - row of the cell. |
public void | setColumnCount(int columnCount) Increases or shrinks the number of columns to fit the new size. |
public void | setColumnValuesAt(int column, Object[] columnData) Renders the specified values into the column with the given position
using the current structure and renderer.
Parameters: column - index of the column. |
public void | setColumnValuesAt(int column, List columnData) Renders the specified values into the column with the given position
using the current structure and renderer.
Parameters: column - index of the column. |
public void | setElementTableRenderer(ElementTableRenderer renderer) Sets the renderer used by this table. |
public void | setElementTableStructure(ElementTableStructure structure) Sets the structure used by this table. |
public void | setRowCount(int rowCount) Increases or shrinks the number of rows to fit the new size. |
public void | setRowValuesAt(int row, Object[] rowData) Renders the specified values into the row with the given position
using the current structure and renderer.
Parameters: row - index of the row. |
public void | setRowValuesAt(int row, List rowData) Renders the specified values into the row with the given position
using the current structure and renderer.
Parameters: row - index of the row. |
public void | setTableValues(Object[][] values) Renders all table cells with new values
using the current structure and renderer. |
public void | setTableValues(List values) Renders all table cells with new values
using the current structure and renderer. |
public void | setUsePatternMarkupToRender(boolean value) Sets whether the original (saved as pattern) markup is used to render. |