| org.itsnat.comp.ItsNatTableStructure
All known Subclasses: org.itsnat.impl.comp.ItsNatTableStructureDefaultImpl,
getBodyElement | public Element getBodyElement(ItsNatTable table, Element tableElem)(Code) | | Returns the table body element.
Default implementation returns (if exists) the first <tbody> element if the
table element is a <table>, else (free table) returns the second child
element if the table contains more than one child element, else
returns the table element (the one child element is considered a row pattern). Never is null.
Parameters: table - the table component, may be used to provide contextual information. Default implementation ignores it. Parameters: tableElem - the parent element of the table. Is a hint, if provided should be obtained by calling table.getElement() . the body element. |
getCellContentElement | public Element getCellContentElement(ItsNatTable table, int row, int col, Element cellElem)(Code) | | Returns the content element of a table cell. This element is used to render
the cell value.
Default implementation delegates to the default
org.itsnat.core.domutil.ElementTableStructure .
Parameters: table - the table component, may be used to provide contextual information. Default implementation ignores it. Parameters: row - index of the row. Parameters: col - index of the column. Parameters: cellElem - the element containing the cell (cell element).This element is a hint, if provided, should be the same as returned by table.getItsNatTableUI().getCellElementAt(row,col) . the cell content element. See Also: ItsNatTableCellRenderer See Also: |
getHeadElement | public Element getHeadElement(ItsNatTable table, Element tableElem)(Code) | | Returns the table head element.
Default implementation returns (if exists) the <thead> element if the
table element is a <table>, else (free table) returns the first child
element if the table contains more than one child element, else returns null (no head).
Parameters: table - the table component, may be used to provide contextual information. Default implementation ignores it. Parameters: tableElem - the parent element of the table. Is a hint, if provided should be obtained by calling table.getElement() . the head element. May be null. |
getHeaderColumnContentElement | public Element getHeaderColumnContentElement(ItsNatTableHeader tableHeader, int column, Element itemElem)(Code) | | Returns the content element of a table header column. This element is used to render
header column.
Default implementation delegates to the default
org.itsnat.core.domutil.ElementListStructure .
Parameters: tableHeader - the table header component, may be used to provide contextual information. Default implementation ignores it. Parameters: column - the column index. Parameters: itemElem - the element containing the column markup in this position. Is a hint, if provided should be obtained by calling tableHeader.getItsNatTableHeaderUI().getColumnElementAt(index) . the content element. See Also: ItsNatTableHeaderCellRenderer |
getRowContentElement | public Element getRowContentElement(ItsNatTable table, int row, Element rowElem)(Code) | | Returns the content element of a table row. This element is used as the parent
of table cell elements.
Default implementation delegates to the default
org.itsnat.core.domutil.ElementTableStructure .
Parameters: table - the table component, may be used to provide contextual information. Default implementation ignores it. Parameters: row - index of the row. Parameters: rowElem - the element containing the row (row element).This element is a hint, if provided, should be the same as returned by table.getItsNatTableUI().getRowElementAt(row) . the row content element. |
|
|