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 header cell.
21: *
22: * <p>This interface is similar to {@link ItsNatListCellUI} and
23: * follows a similar philosophy.</p>
24: *
25: * @author Jose Maria Arranz Santamaria
26: * @see ItsNatTableHeaderUI#getItsNatTableHeaderCellUIAt(int)
27: * @see ItsNatTableHeaderUI#getItsNatTableHeaderCellUIFromNode(org.w3c.dom.Node)
28: */
29: public interface ItsNatTableHeaderCellUI extends ItsNatUserData {
30: /**
31: * Returns the parent table header UI this object belongs to.
32: *
33: * @return the parent table header UI.
34: */
35: public ItsNatTableHeaderUI getItsNatTableHeaderUI();
36:
37: /**
38: * Returns the element index.
39: *
40: * @return the element index.
41: */
42: public int getIndex();
43:
44: /**
45: * Returns the DOM element object parent of this cell.
46: *
47: * @return the DOM element.
48: */
49: public Element getElement();
50:
51: /**
52: * Returns the content element of this cell.
53: *
54: * <p>Current implementation delegates to {@link ItsNatTableHeaderUI#getContentElementAt(int)}.</p>
55: *
56: * @return the content element of this cell.
57: */
58: public Element getContentElement();
59: }
|