com.mucommander.ui.main.table
Class SortInfo

java.lang.Object
  extended by com.mucommander.ui.main.table.SortInfo
All Implemented Interfaces:
java.lang.Cloneable

public class SortInfo
extends java.lang.Object
implements java.lang.Cloneable

This class holds information describes how a FileTable is currently sorted: sort criterion, ascending/descending order, whether directories are displayed first or mixed with regular files.

The values are not meant to be changed outside this package: all setters are package-protected. Use FileTable methods to change how the table is sorted.

Author:
Maxence Bernard

Constructor Summary
SortInfo()
           
 
Method Summary
 java.lang.Object clone()
           
 boolean getAscendingOrder()
          Returns true if the current sort order of is ascending, false if it is descending.
 int getCriterion()
          Returns the column criterion currently used to sort the table.
 boolean getFoldersFirst()
          Returns true if folders are sorted and displayed before regular files, false if they are mixed with regular files and sorted altogether.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SortInfo

public SortInfo()
Method Detail

getCriterion

public int getCriterion()
Returns the column criterion currently used to sort the table.

Returns:
the current column criterion used to sort the table, see Columns for allowed values

getAscendingOrder

public boolean getAscendingOrder()
Returns true if the current sort order of is ascending, false if it is descending.

Returns:
true if the current sort order is ascending, false if it is descending

getFoldersFirst

public boolean getFoldersFirst()
Returns true if folders are sorted and displayed before regular files, false if they are mixed with regular files and sorted altogether.

Returns:
true if folders are sorted and displayed before regular files, false if they are mixed with regular files and sorted altogether

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object


This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard