org.itsnat.core.domutil
Interface TableCellElementInfo

All Superinterfaces:
ItsNatUserData

public interface TableCellElementInfo
extends ItsNatUserData

Contains the DOM Elements, row and cell, and the row and column indexes of a cell of a DOM element table.

If the parent table (which this object belongs to) is master, this object is ever the same instance per table cell element, supporting row and column changes (inserting or removing rows and columns) and DOM element changes (calling ElementTableFree.setCellElementAt(int,int,org.w3c.dom.Element) ). This feature is very interesting to save contextual data associated to the cell element (using ItsNatUserData).

If the parent table is slave every object obtained is a new instance, ItsNatUserData can not be used.

Author:
Jose Maria Arranz Santamaria
See Also:
ElementTableBase.getTableCellElementInfoFromNode(Node), ElementTableBase.getTableCellElementInfoAt(int,int)

Method Summary
 org.w3c.dom.Element getCellElement()
          Returns the cell DOM element.
 int getColumnIndex()
          Returns the column index of the cell.
 ElementTableBase getParentTable()
          Returns the parent table this object belongs to.
 org.w3c.dom.Element getRowElement()
          Returns the row DOM element (top) parent of the cell.
 int getRowIndex()
          Returns the row index of the cell.
 
Methods inherited from interface org.itsnat.core.ItsNatUserData
containsUserValueName, getUserValue, getUserValueNames, removeUserValue, setUserValue
 

Method Detail

getParentTable

ElementTableBase getParentTable()
Returns the parent table this object belongs to.

Returns:
the parent table.

getRowElement

org.w3c.dom.Element getRowElement()
Returns the row DOM element (top) parent of the cell.

Returns:
the row element.

getRowIndex

int getRowIndex()
Returns the row index of the cell.

Returns:
the row index.

getCellElement

org.w3c.dom.Element getCellElement()
Returns the cell DOM element.

Returns:
the cell element.

getColumnIndex

int getColumnIndex()
Returns the column index of the cell.

Returns:
the column index.


Copyright © 2007 Innowhere Software Services S.L. All Rights Reserved.