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.impl.core.ItsNatUserDataImpl;
17:
18: /**
19: *
20: * @author jmarranz
21: */
22: public class TableCellElementInfoMasterImpl extends
23: TableCellElementInfoImpl {
24: protected ItsNatUserDataImpl userData;
25: protected Object auxObject;
26:
27: /**
28: * Creates a new instance of TableCellElementInfoImpl
29: */
30: private TableCellElementInfoMasterImpl(
31: ListElementInfoMasterImpl rowInfo,
32: ListElementInfoMasterImpl cellInfo,
33: ElementTableBaseImpl table) {
34: super (rowInfo, cellInfo, table);
35: }
36:
37: public static TableCellElementInfoMasterImpl getTableCellElementInfoMaster(
38: ListElementInfoMasterImpl rowInfo,
39: ListElementInfoMasterImpl cellInfo,
40: ElementTableBaseImpl table) {
41: TableCellElementInfoMasterImpl tableCellInfo = (TableCellElementInfoMasterImpl) cellInfo
42: .getAuxObject();
43: if (tableCellInfo == null) {
44: tableCellInfo = new TableCellElementInfoMasterImpl(rowInfo,
45: cellInfo, table);
46: cellInfo.setAuxObject(tableCellInfo);
47: }
48: return tableCellInfo;
49: }
50:
51: public Object getAuxObject() {
52: return auxObject;
53: }
54:
55: public void setAuxObject(Object auxObject) {
56: this .auxObject = auxObject;
57: }
58:
59: public ItsNatUserDataImpl getItsNatUserData() {
60: if (userData == null)
61: this .userData = new ItsNatUserDataImpl(false);
62: return userData;
63: }
64:
65: public boolean containsUserValueName(String name) {
66: return getItsNatUserData().containsUserValueName(name);
67: }
68:
69: public Object getUserValue(String name) {
70: return getItsNatUserData().getUserValue(name);
71: }
72:
73: public Object setUserValue(String name, Object value) {
74: return getItsNatUserData().setUserValue(name, value);
75: }
76:
77: public Object removeUserValue(String name) {
78: return getItsNatUserData().removeUserValue(name);
79: }
80:
81: public String[] getUserValueNames() {
82: return getItsNatUserData().getUserValueNames();
83: }
84:
85: }
|