001package com.hfg.xml.msoffice2003.spreadsheetml;
002
003import com.hfg.xml.XMLTag;
004import com.hfg.xml.msoffice2003.spreadsheetml.ExcelCell;
005import com.hfg.xml.msoffice2003.spreadsheetml.SpreadsheetML;
006
007
008//------------------------------------------------------------------------------
009/**
010 Excel row.
011
012 @author J. Alex Taylor, hairyfatguy.com
013 */
014//------------------------------------------------------------------------------
015// com.hfg Library
016//
017// This library is free software; you can redistribute it and/or
018// modify it under the terms of the GNU Lesser General Public
019// License as published by the Free Software Foundation; either
020// version 2.1 of the License, or (at your option) any later version.
021//
022// This library is distributed in the hope that it will be useful,
023// but WITHOUT ANY WARRANTY; without even the implied warranty of
024// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
025// Lesser General Public License for more details.
026//
027// You should have received a copy of the GNU Lesser General Public
028// License along with this library; if not, write to the Free Software
029// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
030//
031// J. Alex Taylor, President, Founder, CEO, COO, CFO, OOPS hairyfatguy.com
032// jataylor@hairyfatguy.com
033//------------------------------------------------------------------------------
034
035public class ExcelRow extends XMLTag
036{
037
038   //---------------------------------------------------------------------------
039   public ExcelRow()
040   {
041      super(SpreadsheetML.ROW);
042   }
043
044   //---------------------------------------------------------------------------
045   public ExcelCell addCell()
046   {
047      ExcelCell cell = new ExcelCell();
048      addSubtag(cell);
049
050      return cell;
051   }
052
053   //---------------------------------------------------------------------------
054   public ExcelRow setStyleId(String inValue)
055   {
056      setAttribute(SpreadsheetML.STYLE_ID_ATT, inValue);
057      return this;
058   }
059
060   //---------------------------------------------------------------------------
061   public ExcelRow setIndex(int inValue)
062   {
063      setAttribute(SpreadsheetML.INDEX_ATT, inValue);
064      return this;
065   }
066
067   //---------------------------------------------------------------------------
068   public ExcelRow setHeight(int inValue)
069   {
070      setAttribute(SpreadsheetML.HEIGHT_ATT, inValue);
071      return this;
072   }
073}