Package dk.netarkivet.common.utils
Class TableSort
- java.lang.Object
-
- dk.netarkivet.common.utils.TableSort
-
public class TableSort extends Object
Contains the data about how a table is sorted.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TableSort.SortOrder
list of the sort order.
-
Constructor Summary
Constructors Constructor Description TableSort(int columnId, TableSort.SortOrder sortOrder)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getColumnIdent()
Return the id of the sorted column.TableSort.SortOrder
getOrder()
Return the order of the sort.void
setColumnIdent(int columnident)
Set the id of the sorted column.void
setOrder(TableSort.SortOrder sortorder)
Set the order of the sort.
-
-
-
Constructor Detail
-
TableSort
public TableSort(int columnId, TableSort.SortOrder sortOrder)
Constructor.- Parameters:
columnId
- the id of the sorted columnsortOrder
- the order of the sort
-
-
Method Detail
-
getColumnIdent
public final int getColumnIdent()
Return the id of the sorted column.- Returns:
- the id of the sorted column
-
setColumnIdent
public final void setColumnIdent(int columnident)
Set the id of the sorted column.- Parameters:
columnident
- the id of the sorted column
-
getOrder
public final TableSort.SortOrder getOrder()
Return the order of the sort.- Returns:
- the order of the sort
-
setOrder
public final void setOrder(TableSort.SortOrder sortorder)
Set the order of the sort.- Parameters:
sortorder
- the order of the sort
-
-