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