dk.netarkivet.harvester.webinterface
Class HarvestStatusRunningTablesSort

java.lang.Object
  extended by dk.netarkivet.harvester.webinterface.HarvestStatusRunningTablesSort

public class HarvestStatusRunningTablesSort
extends java.lang.Object

class used to manage the sort of tables in the harvest status running screen


Nested Class Summary
static class HarvestStatusRunningTablesSort.ColumnId
          list of the column id.
 
Constructor Summary
HarvestStatusRunningTablesSort()
          Constructor.
 
Method Summary
 HarvestStatusRunningTablesSort.ColumnId getColumnIdByHash(int columnIdInt)
          return the ColumnId corresponding to the hash code.
 HarvestStatusRunningTablesSort.ColumnId getSortedColumnIdentByHarvestName(java.lang.String harvestName)
          return the ColumnId of the sorted table.
 TableSort.SortOrder getSortOrderByHarvestName(java.lang.String harvestName)
          return the SortOrder of the sorted table.
 void sort(java.lang.String harvestName, HarvestStatusRunningTablesSort.ColumnId column)
          effect of a click on a column.
 void sortByHarvestName(java.lang.String harvestName, int column)
          effect of a click on a column.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HarvestStatusRunningTablesSort

public HarvestStatusRunningTablesSort()
Constructor.

Method Detail

getColumnIdByHash

public final HarvestStatusRunningTablesSort.ColumnId getColumnIdByHash(int columnIdInt)
return the ColumnId corresponding to the hash code.

Parameters:
columnIdInt - the hash code
Returns:
the ColumnId

getSortedColumnIdentByHarvestName

public final HarvestStatusRunningTablesSort.ColumnId getSortedColumnIdentByHarvestName(java.lang.String harvestName)
return the ColumnId of the sorted table.

Parameters:
harvestName - the harvest name
Returns:
the ColumnId

getSortOrderByHarvestName

public final TableSort.SortOrder getSortOrderByHarvestName(java.lang.String harvestName)
return the SortOrder of the sorted table.

Parameters:
harvestName - the harvest name
Returns:
the SortOrder

sort

public final void sort(java.lang.String harvestName,
                       HarvestStatusRunningTablesSort.ColumnId column)
effect of a click on a column.

Parameters:
harvestName - the harvest name
column - ColumnId of the clicked column

sortByHarvestName

public final void sortByHarvestName(java.lang.String harvestName,
                                    int column)
effect of a click on a column.

Parameters:
harvestName - the harvest name
column - hashcode of the ColumnId of the clicked column