001: // @@
002: // @@
003: /*
004: * Wi.Ser Framework
005: *
006: * Version: 1.8.1, 20-September-2007
007: * Copyright (C) 2005 Dirk von der Weiden <dvdw@imail.de>
008: *
009: * This library is free software; you can redistribute it and/or
010: * modify it under the terms of the GNU Lesser General Public
011: * License as published by the Free Software Foundation; either
012: * version 2 of the License, or (at your option) any later version.
013: *
014: * This library is distributed in the hope that it will be useful,
015: * but WITHOUT ANY WARRANTY; without even the implied warranty of
016: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
017: * Lesser General Public License for more details.
018: *
019: * You should have received a copy of the GNU Lesser General Public
020: * License along with this library located in LGPL.txt in the
021: * license directory; if not, write to the
022: * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
023: * Boston, MA 02111-1307, USA.
024: *
025: * If this agreement does not cover your requirements, please contact us
026: * via email to get detailed information about the commercial license
027: * or our service offerings!
028: *
029: */
030: // @@
031: package de.ug2t.channel.markup.generic;
032:
033: import de.ug2t.unifiedGui.*;
034:
035: public final class MuGenericTableCell {
036: private static Object pem_nullReplacement = "";
037:
038: public MuGenericTableCell(Object xItem, String xColor,
039: String xFColor, UnBoxStyle xBStyle, String xClass) {
040: pdm_item = xItem;
041: pdm_color = xColor;
042: pdm_fcolor = xFColor;
043: pdm_bStyle = xBStyle;
044: pdm_class = xClass;
045: pdm_xDirStatic = false;
046: pdm_isSpaned = false;
047: pdm_span = null;
048:
049: return;
050: };
051:
052: protected Object pdm_item;
053: protected String pdm_color;
054: protected String pdm_fcolor;
055: protected UnBoxStyle pdm_bStyle;
056: protected String pdm_class;
057: protected boolean pdm_xDirStatic;
058: protected UnTableCellSpan pdm_span;
059: protected boolean pdm_isSpaned;
060:
061: public UnBoxStyle pcmf_getBoxStyle() {
062: return pdm_bStyle;
063: }
064:
065: public UnTableCellSpan pcmf_getSpan() {
066: return (this .pdm_span);
067: }
068:
069: public boolean pcmf_isSpaned() {
070: return (this .pdm_isSpaned);
071: }
072:
073: public UnBoxStyle pcmf_getCreateBoxStyle() {
074: if (this .pdm_bStyle == null)
075: this .pdm_bStyle = new UnBoxStyle();
076:
077: return pdm_bStyle;
078: }
079:
080: public void pcmf_setBoxStyle(UnBoxStyle xStyle) {
081: this .pdm_bStyle = xStyle;
082: }
083:
084: public String pcmf_getClass() {
085: return pdm_class;
086: }
087:
088: public void pcmf_setClass(String xClass) {
089: this .pdm_class = xClass;
090: }
091:
092: public void pcmf_setXDirStatic(boolean xXStatic) {
093: this .pdm_xDirStatic = xXStatic;
094: }
095:
096: public boolean pcmf_getXDirStatic() {
097: return (this .pdm_xDirStatic);
098: }
099:
100: public String pcmf_getBgColor() {
101: return pdm_color;
102: }
103:
104: public void pcmf_setBgColor(String xColor) {
105: this .pdm_color = xColor;
106: }
107:
108: public String pcmf_getFgColor() {
109: return pdm_fcolor;
110: }
111:
112: public void pcmf_setFgColor(String xColor) {
113: this .pdm_fcolor = xColor;
114: }
115:
116: public Object pcmf_getItem() {
117: if (this .pdm_item == null)
118: return (MuGenericTableCell.pem_nullReplacement);
119:
120: return pdm_item;
121: }
122:
123: public void pcmf_setItem(Object xItem) {
124: this .pdm_item = xItem;
125: }
126:
127: public static void pcmf_setNullReplacement(Object xNrp) {
128: MuGenericTableCell.pem_nullReplacement = xNrp;
129: }
130:
131: public static Object pcmf_getNullReplacement() {
132: return (MuGenericTableCell.pem_nullReplacement);
133: }
134: };
|