001package com.hfg.xml.msofficexml.xlsx.spreadsheetml; 002 003import com.hfg.xml.msofficexml.xlsx.CellRange; 004import com.hfg.xml.msofficexml.xlsx.Xlsx; 005 006//------------------------------------------------------------------------------ 007/** 008 Represents an Office Open XML sort state (<ssml:sortState>) tag. 009 010 @author J. Alex Taylor, hairyfatguy.com 011 */ 012//------------------------------------------------------------------------------ 013// com.hfg XML/HTML Coding Library 014// 015// This library is free software; you can redistribute it and/or 016// modify it under the terms of the GNU Lesser General Public 017// License as published by the Free Software Foundation; either 018// version 2.1 of the License, or (at your option) any later version. 019// 020// This library is distributed in the hope that it will be useful, 021// but WITHOUT ANY WARRANTY; without even the implied warranty of 022// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 023// Lesser General Public License for more details. 024// 025// You should have received a copy of the GNU Lesser General Public 026// License along with this library; if not, write to the Free Software 027// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 028// 029// J. Alex Taylor, President, Founder, CEO, COO, CFO, OOPS hairyfatguy.com 030// jataylor@hairyfatguy.com 031//------------------------------------------------------------------------------ 032// Ex: <sortState ref="A3:AT7" xmlns:xlrd2="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata2"><sortCondition descending="1" ref="AT3:AT7"/></sortState> 033public class SsmlSortState extends SsmlXMLTag 034{ 035 //########################################################################### 036 // PRIVATE FIELDS 037 //########################################################################### 038 039 //########################################################################### 040 // CONSTRUCTORS 041 //########################################################################### 042 043 //--------------------------------------------------------------------------- 044 public SsmlSortState(Xlsx inXlsx, CellRange inCellRange) 045 { 046 super(SsmlXML.SORT_STATE, inXlsx); 047 048 setRef(inCellRange); 049 } 050 051 //########################################################################### 052 // PRIVATE METHODS 053 //########################################################################### 054 055 //--------------------------------------------------------------------------- 056 private SsmlSortState setRef(CellRange inValue) 057 { 058 setAttribute(SsmlXML.REF_RANGE_ATT, inValue); 059 return this; 060 } 061}