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.impl.core.domutil;
15:
16: import org.itsnat.core.domutil.ElementTreeNodeRenderer;
17: import org.itsnat.core.domutil.ElementTreeNodeStructure;
18: import org.itsnat.impl.core.ItsNatDocumentImpl;
19: import org.itsnat.impl.core.util.*;
20: import org.w3c.dom.Element;
21:
22: /**
23: *
24: * @author jmarranz
25: */
26: public class ElementTreeTableNodeImpl extends ElementTreeNodeImpl {
27:
28: /**
29: * Creates a new instance of ElementTreeTableNodeImpl
30: */
31: public ElementTreeTableNodeImpl(ItsNatDocumentImpl itsNatDoc,
32: ElementTreeTableNodeListImpl parentList, int index,
33: Element parentElement, ElementTreeNodeStructure structure,
34: ElementTreeNodeRenderer renderer) {
35: super (itsNatDoc, parentList, index, parentElement, structure,
36: renderer);
37:
38: this .childElemList = new ElementTreeTableNodeListNormalImpl(
39: itsNatDoc, getGlobalChildList(), this , structure,
40: renderer);
41: }
42:
43: public boolean isTreeTable() {
44: return true;
45: }
46:
47: public ElementListImpl getGlobalChildList() {
48: return getElementTreeTableNodeList().getGlobalChildList();
49: }
50:
51: public ElementTreeTableNodeListImpl getElementTreeTableNodeList() {
52: return (ElementTreeTableNodeListImpl) parentList;
53: }
54:
55: public ElementTreeNodeListImpl getElementTreeNodeList() {
56: return childElemList;
57: }
58: }
|