cds.aladin
Interface MetaDataTree.SortableColumn

Enclosing class:
MetaDataTree

public static interface MetaDataTree.SortableColumn

Interface allowing us to have sortable columns in the flatview of the tree


Method Summary
 int compare(java.lang.Object n1, java.lang.Object n2, boolean goOn)
          This method compares 2 nodes upon the basis of their columns Returns a negative, zero or a positive integer if n1 is less, equals, or greater than n2
 java.lang.String getColName(ResourceNode node)
          Returns the label of the column for a given leaf of the tree
 

Method Detail

getColName

java.lang.String getColName(ResourceNode node)
Returns the label of the column for a given leaf of the tree

Parameters:
node - a leaf node
Returns:
String

compare

int compare(java.lang.Object n1,
            java.lang.Object n2,
            boolean goOn)
This method compares 2 nodes upon the basis of their columns Returns a negative, zero or a positive integer if n1 is less, equals, or greater than n2

Parameters:
n1 - first node to be compared
n2 - second node to be compared
goOn - if false, we only do a primary comparison
Returns:
int


Copyright © 2009 UDS/CNRS