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.DefinitionSortable.Definition.getFieldID()public boolean isAcendingSort()
Sortable.DefinitionisAcendingSort in interface Sortable.Definition#isAcendingSort()public void setAscending(boolean ascending)
Sortable.DefinitionsetAscending in interface Sortable.Definitionascending - whether the sort is ascending#setAscending(boolean)public String toString()
toString in class ObjectObject.toString()Copyright © 2002-2012 Delft University of Technology, the Netherlands. All Rights Reserved.