01: /*
02: ItsNat Java Web Application Framework
03: Copyright (C) 2007 Innowhere Software Services S.L., Spanish Company
04: Author: Jose Maria Arranz Santamaria
05:
06: This program is free software: you can redistribute it and/or modify
07: it under the terms of the GNU Affero General Public License as published by
08: the Free Software Foundation, either version 3 of the License, or
09: (at your option) any later version. See the GNU Affero General Public
10: License for more details. See the copy of the GNU Affero General Public License
11: included in this program. If not, see <http://www.gnu.org/licenses/>.
12: */
13:
14: package org.itsnat.comp.ui;
15:
16: import org.itsnat.core.ItsNatUserData;
17: import org.w3c.dom.Element;
18:
19: /**
20: * Contains visual information of a table cell element.
21: *
22: * <p>This interface is the "componentized" version of a master
23: * {@link org.itsnat.core.domutil.TableCellElementInfo} and
24: * follows a similar philosophy.</p>
25: *
26: * @author Jose Maria Arranz Santamaria
27: * @see ItsNatTableUI#getItsNatTableCellUIAt(int,int)
28: * @see ItsNatTableUI#getItsNatTableCellUIFromNode(org.w3c.dom.Node)
29: */
30: public interface ItsNatTableCellUI extends ItsNatUserData {
31: /**
32: * Returns the parent table UI this object belongs to.
33: *
34: * @return the parent table UI.
35: */
36: public ItsNatTableUI getItsNatTableUI();
37:
38: /**
39: * Returns the row DOM element (top) parent of the cell.
40: *
41: * @return the row element.
42: */
43: public Element getRowElement();
44:
45: /**
46: * Returns the row index of the cell.
47: *
48: * @return the row index.
49: */
50: public int getRowIndex();
51:
52: /**
53: * Returns the cell DOM element.
54: *
55: * @return the cell element.
56: */
57: public Element getCellElement();
58:
59: /**
60: * Returns the column index of the cell.
61: *
62: * @return the column index.
63: */
64: public int getColumnIndex();
65:
66: /**
67: * Returns the content element of this table cell.
68: *
69: * <p>Current implementation delegates to {@link ItsNatTableUI#getCellContentElementAt(int,int)}.</p>
70: *
71: * @return the content element of this table cell.
72: */
73: public Element getCellContentElement();
74: }
|