public interface ElementTableFree extends ElementTableBase, ElementListFree
The interface inherits from ElementListFree
and java.util.List
indirectly and supports both types of iterators. List
and Iterator
methods accept
and return DOM Element objects. They see the table as a list of rows.
The table can work in master and slave modes, see
ElementListFree.isMaster()
. If in master mode direct DOM
structural changes (add/remove/replace a row, column, cell) must be avoided.
In a "free" table the number of columns may not be the same between rows.
ElementGroupManager.createElementTableFree(Element,boolean)
Modifier and Type | Method and Description |
---|---|
void |
addColumn(org.w3c.dom.Element[] cells)
Adds a new column at the end of columns.
|
void |
addRow(org.w3c.dom.Element elem)
Adds a new row element at the end of the table.
|
ElementListFree |
getCellElementListOfRow(int row)
Returns the cell elements of the specified row as an element list.
|
void |
insertColumnAt(int column,
org.w3c.dom.Element[] cells)
Inserts a new column at the specified position.
|
void |
insertRowAt(int row,
org.w3c.dom.Element elem)
Inserts a new row element at the specified position.
|
org.w3c.dom.Element |
setCellElementAt(int row,
int column,
org.w3c.dom.Element elem)
Replaces the specified cell element with a new one.
|
org.w3c.dom.Element[] |
setCellElementsOfColumn(int column,
org.w3c.dom.Element[] cells)
Replaces the specified column with a new one.
|
org.w3c.dom.Element[] |
setCellElementsOfRow(int row,
org.w3c.dom.Element[] cells)
Clears the specified row and fills again with new elements.
|
org.w3c.dom.Element |
setRowAt(int row,
org.w3c.dom.Element elem)
Replaces the specified row element with a new one.
|
getCellElementAt, getCellElementsOfColumn, getCellElementsOfRow, getElementRows, getFirstRowElement, getLastRowElement, getRowCount, getRowElementAt, getRowElementFromNode, getRowListElementInfoAt, getRowListElementInfoFromNode, getTableCellElementInfoAt, getTableCellElementInfoFromNode, indexOfRowElement, lastIndexOfRowElement, moveColumn, moveRow, removeAllColumns, removeAllRows, removeColumnAt, removeRowAt, removeRowRange
addElement, insertElementAt, isMaster, setElementAt, setElements
getElementAt, getElementFromNode, getElements, getFirstElement, getLastElement, getListElementInfoAt, getListElementInfoFromNode, indexOfElement, isEmpty, lastIndexOfElement, moveElement, removeAllElements, removeElementAt, removeElementRange
getItsNatDocument, getParentElement
containsUserValueName, getUserValue, getUserValueNames, removeUserValue, setUserValue
void addRow(org.w3c.dom.Element elem)
If the new row element is already in the table a deep clone
(calling Node.cloneNode(boolean deep)
) is inserted. This avoids
an indirect delete by DOM.
elem
- the new row element.insertRowAt(int,org.w3c.dom.Element)
void insertRowAt(int row, org.w3c.dom.Element elem)
If the new row element is already in the table a deep clone
(calling Node.cloneNode(boolean deep)
) is inserted. This avoids
an indirect delete by DOM.
row
- row index of the element.elem
- the new element.addRow(Element)
org.w3c.dom.Element setRowAt(int row, org.w3c.dom.Element elem)
If the new row element is already in the list a deep clone
(calling Node.cloneNode(boolean deep)
) is used to replace the element in that
position. This avoids an indirect delete by DOM.
row
- row index of the element.elem
- the new element.insertRowAt(int,Element)
,
ElementTableBase.getRowElementAt(int)
org.w3c.dom.Element[] setCellElementsOfRow(int row, org.w3c.dom.Element[] cells)
If a new cell element is already in the list a deep clone
(calling Node.cloneNode(boolean deep)
) is used to replace the element in that
position. This avoids an indirect delete by DOM.
cells
- new cell elements.ElementTableBase.getCellElementsOfRow(int)
org.w3c.dom.Element setCellElementAt(int row, int column, org.w3c.dom.Element elem)
If the new cell element is already in the list a deep clone
(calling Node.cloneNode(boolean deep)
) is used to replace the element in that
position. This avoids an indirect delete by DOM.
row
- row index of the cell element.column
- column index of the cell element.elem
- the new element.ElementTableBase.getCellElementAt(int,int)
,
setRowAt(int,Element)
ElementListFree getCellElementListOfRow(int row)
row
- the row index.void addColumn(org.w3c.dom.Element[] cells)
If a new cell element is already in the table a deep clone
(calling Node.cloneNode(boolean deep)
) is inserted. This avoids
an indirect delete by DOM.
cells
- the cells of the new column.insertColumnAt(int,org.w3c.dom.Element[])
void insertColumnAt(int column, org.w3c.dom.Element[] cells)
If a new cell element is already in the table a deep clone
(calling Node.cloneNode(boolean deep)
) is inserted. This avoids
an indirect delete by DOM.
column
- index of column to insert.cells
- the cells of the new column.addColumn(Element[])
org.w3c.dom.Element[] setCellElementsOfColumn(int column, org.w3c.dom.Element[] cells)
If a new cell element is already in the list a deep clone
(calling Node.cloneNode(boolean deep)
) is used to replace the element in that
position. This avoids an indirect delete by DOM.
column
- index of column to replace.cells
- the new cells of the column.insertColumnAt(int,Element[])
,
ElementTableBase.getCellElementsOfColumn(int)
Copyright © 2007 Innowhere Software Services S.L. All Rights Reserved.