org.imixs.workflow.jee.faces
Class SelectItemComparator

java.lang.Object
  extended by org.imixs.workflow.jee.faces.SelectItemComparator
All Implemented Interfaces:
Comparator<javax.faces.model.SelectItem>

public class SelectItemComparator
extends Object
implements Comparator<javax.faces.model.SelectItem>

Sorts a ArrayList of SelectItems by label

Author:
rsoika

Constructor Summary
SelectItemComparator(Locale locale, boolean ascending)
           
 
Method Summary
 int compare(javax.faces.model.SelectItem a, javax.faces.model.SelectItem b)
           
 
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

SelectItemComparator

public SelectItemComparator(Locale locale,
                            boolean ascending)
Method Detail

compare

public int compare(javax.faces.model.SelectItem a,
                   javax.faces.model.SelectItem b)
Specified by:
compare in interface Comparator<javax.faces.model.SelectItem>


Copyright © 2006-2011 Imixs Software Solutions GmbH. All Rights Reserved.