org.imixs.workflow.jee.jsf.util
Class SelectItemComparator

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

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

Sorts a ArrayList of SelectItems by label

Author:
rsoika

Constructor Summary
SelectItemComparator(java.util.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(java.util.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 java.util.Comparator<javax.faces.model.SelectItem>


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