cmu.survey.data
Class OrderBy

java.lang.Object
  extended by cmu.survey.data.OrderBy

public class OrderBy
extends java.lang.Object

A direction to sort a column. Used in DataTableModel to show which columns should be ordered how.


Constructor Summary
OrderBy(java.lang.String columnName)
           
OrderBy(java.lang.String columnName, boolean forwards)
           
 
Method Summary
 java.lang.String getColumnName()
           
 boolean isForwards()
           
 void setColumnName(java.lang.String columnName)
           
 void setForwards(boolean forwards)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrderBy

public OrderBy(java.lang.String columnName)

OrderBy

public OrderBy(java.lang.String columnName,
               boolean forwards)
Method Detail

getColumnName

public java.lang.String getColumnName()
Returns:
Returns the columnName.

setColumnName

public void setColumnName(java.lang.String columnName)
Parameters:
columnName - The columnName to set.

isForwards

public boolean isForwards()
Returns:
Returns the forwards.

setForwards

public void setForwards(boolean forwards)
Parameters:
forwards - The forwards to set.