nl.tudelft.simulation.introspection.sortable
Interface Sortable

All Known Implementing Classes:
SortingObjectTableModel, SortingTableModel

public interface Sortable

Defines methods to define, retrieve and perform sorting definitions.

(c) copyright 2002-2005 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser General Public License (LGPL) , no warranty.

Since:
1.4
Version:
1.2 Apr 14, 2004
Author:
Peter Jacobs

Nested Class Summary
static interface Sortable.Definition
          Defines the sort definition
 
Method Summary
 Sortable.Definition[] getDefinitions()
           
 void setDefinitions(Sortable.Definition[] definitions)
          Sets the current definitions defined for this Sortable.
 void sort()
          Instructs this Sortable to sort based on currently set sorting definitions.
 

Method Detail

getDefinitions

Sortable.Definition[] getDefinitions()
Returns:
Returns the current definitions defined for this Sortable. The sequence of the definitions matches the sorting sequence, in that a definition will be performed before another definition if having a lower index.

setDefinitions

void setDefinitions(Sortable.Definition[] definitions)
Sets the current definitions defined for this Sortable. The sequence of the definitions matches the sorting sequence, in that a definition will be performed before another definition if having a lower index.

Parameters:
definitions - An array of sort definitions. If multiple definitions for the same field are included, the one with highest index will be applied.

sort

void sort()
Instructs this Sortable to sort based on currently set sorting definitions.



Copyright © 2002-2011 Delft University of Technology, the Netherlands. All Rights Reserved.