1 15 package org.apache.tapestry.contrib.table.model.simple; 16 17 import java.io.Serializable ; 18 19 import org.apache.tapestry.contrib.table.model.ITableSortingState; 20 21 27 public class SimpleTableSortingState 28 implements ITableSortingState, Serializable 29 { 30 private static final long serialVersionUID = 1L; 31 32 private String m_strSortColumn; 33 private boolean m_bSortOrder; 34 35 public SimpleTableSortingState() 36 { 37 this(null, ITableSortingState.SORT_ASCENDING); 38 } 39 40 public SimpleTableSortingState(String strSortColumn, boolean bSortOrder) 41 { 42 m_strSortColumn = strSortColumn; 43 m_bSortOrder = bSortOrder; 44 } 45 46 50 public boolean getSortOrder() 51 { 52 return m_bSortOrder; 53 } 54 55 59 public String getSortColumn() 60 { 61 return m_strSortColumn; 62 } 63 64 68 public void setSortColumn(String strSortColumn, boolean bSortOrder) 69 { 70 m_strSortColumn = strSortColumn; 71 m_bSortOrder = bSortOrder; 72 } 73 74 } 75 | Popular Tags |