001: //** Copyright Statement ***************************************************
002: //The Salmon Open Framework for Internet Applications (SOFIA)
003: // Copyright (C) 1999 - 2002, Salmon LLC
004: //
005: // This program is free software; you can redistribute it and/or
006: // modify it under the terms of the GNU General Public License version 2
007: // as published by the Free Software Foundation;
008: //
009: // This program is distributed in the hope that it will be useful,
010: // but WITHOUT ANY WARRANTY; without even the implied warranty of
011: // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
012: // GNU General Public License for more details.
013: //
014: // You should have received a copy of the GNU General Public License
015: // along with this program; if not, write to the Free Software
016: // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
017: //
018: // For more information please visit http://www.salmonllc.com
019: //** End Copyright Statement ***************************************************
020: package com.salmonllc.html;
021:
022: /////////////////////////
023: //$Archive: /SOFIA/SourceCode/com/salmonllc/html/HtmlTableRowProperties.java $
024: //$Author: Dan $
025: //$Revision: 8 $
026: //$Modtime: 6/11/03 4:27p $
027: /////////////////////////
028:
029: /**
030: * This is used in conjunction with HtmlTable to set the properties for a particular row
031: */
032: public class HtmlTableRowProperties implements java.io.Serializable {
033: private String _align = HtmlTable.ALIGN_NONE;
034: private String _vAlign = HtmlTable.VALIGN_NONE;
035: private String _bgColor = null;
036: private String _rowClass = null;
037: private boolean _wrap = true;
038: private boolean _visible = true;
039:
040: /**
041: * Constructs a new empty object
042: */
043: public HtmlTableRowProperties() {
044: super ();
045: }
046:
047: /**
048: * Constructs a new object with all the properties set
049: * @param align Valid values are HtmlTable.ALIGN_LEFT,HtmlTable.ALIGN_CENTER,HtmlTable.ALIGN_RIGHT,HtmlTable.ALIGN_NONE
050: * @param vAlign Valid values are HtmlTable.VALIGN_BASELINE,HtmlTable.VALIGN_BOTTOM,HtmlTable.VALIGN_MIDDLE and HtmlTable.VALIGN_TOP.
051: * @param backGroundColor The background color for the cell.
052: * @param wrap True if the contents of the cell should word wrap.
053: */
054: public HtmlTableRowProperties(String align, String vAlign,
055: String backGroundColor, boolean wrap) {
056: super ();
057: _align = align;
058: _vAlign = vAlign;
059: _bgColor = backGroundColor;
060: _wrap = wrap;
061: }
062:
063: public String getAlign() {
064: return _align;
065: }
066:
067: public String getBackgroundColor() {
068: return _bgColor;
069: }
070:
071: public String getRowClass() {
072: return _rowClass;
073: }
074:
075: public String getVertAlign() {
076: return _vAlign;
077: }
078:
079: public boolean getVisible() {
080: return _visible;
081: }
082:
083: public boolean getWrapStyle() {
084: return _wrap;
085: }
086:
087: public void setAlign(String value) {
088: _align = value;
089: }
090:
091: public void setBackgroundColor(String color) {
092: _bgColor = color;
093: }
094:
095: public void setRowClass(String rowClass) {
096: _rowClass = rowClass;
097: }
098:
099: public void setVertAlign(String value) {
100: _vAlign = value;
101: }
102:
103: public void setVisible(boolean visible) {
104: _visible = visible;
105: }
106:
107: public void setWrapStyle(boolean value) {
108: _wrap = value;
109: }
110: }
|