org.eclipse.nebula.widgets.nattable.config
Class NullComparator

java.lang.Object
  extended by org.eclipse.nebula.widgets.nattable.config.NullComparator
All Implemented Interfaces:
Serializable, Comparator<Object>

public class NullComparator
extends Object
implements Comparator<Object>, Serializable

GlazedLists require that the comparator be set to 'null' if a column is not sortable. If a null value is set in the IConfigRegistry it will attempt to find other matching values. This comparator can be set in the ConfigRegistry to indicate that the column can not be sorted.

See SortableGridExample

See Also:
Serialized Form

Constructor Summary
NullComparator()
           
 
Method Summary
 int compare(Object o1, Object o2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

NullComparator

public NullComparator()
Method Detail

compare

public int compare(Object o1,
                   Object o2)
Specified by:
compare in interface Comparator<Object>


Copyright © 2015. All rights reserved.