public class SortDefinition extends Object implements Sortable.Definition
(c) copyright 2002-2005-2004 Delft
University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser
General Public License (LGPL) , no warranty.
Constructor and Description |
---|
SortDefinition(int fieldID,
boolean ascending)
constructs a new SortDefinition
|
Modifier and Type | Method and Description |
---|---|
int |
getFieldID() |
boolean |
isAcendingSort()
Returns whether this definition defines an ascending sort.
|
void |
setAscending(boolean ascending)
Allows dynamic definitions
|
String |
toString() |
public SortDefinition(int fieldID, boolean ascending)
fieldID
- the fieldIDascending
- whether sorting should occur ascendingpublic int getFieldID()
getFieldID
in interface Sortable.Definition
Sortable.Definition.getFieldID()
public boolean isAcendingSort()
Sortable.Definition
isAcendingSort
in interface Sortable.Definition
#isAcendingSort()
public void setAscending(boolean ascending)
Sortable.Definition
setAscending
in interface Sortable.Definition
ascending
- whether the sort is ascending#setAscending(boolean)
public String toString()
toString
in class Object
Object.toString()
Copyright © 2002-2012 Delft University of Technology, the Netherlands. All Rights Reserved.