Esri Geoportal Server
1.0

com.esri.gpt.framework.jsf
Class SelectItemComparable

java.lang.Object
  extended by javax.faces.model.SelectItem
      extended by com.esri.gpt.framework.jsf.SelectItemComparable
All Implemented Interfaces:
Serializable, Comparable<SelectItem>

public class SelectItemComparable
extends SelectItem
implements Comparable<SelectItem>

The Class SelectItemComparable.

See Also:
Serialized Form

Constructor Summary
SelectItemComparable(String value)
          Instantiates a new select item comparable.
SelectItemComparable(String value, String label)
          Instantiates a new select item comparable.
SelectItemComparable(String value, String label, String description)
          Instantiates a new select item comparable.
SelectItemComparable(String value, String label, String description, boolean disabled)
          Instantiates a new select item comparable.
 
Method Summary
 int compareTo(SelectItem o)
          Compare To
 
Methods inherited from class javax.faces.model.SelectItem
getDescription, getLabel, getValue, isDisabled, isEscape, isNoSelectionOption, setDescription, setDisabled, setEscape, setLabel, setNoSelectionOption, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectItemComparable

public SelectItemComparable(String value,
                            String label)
Instantiates a new select item comparable.

Parameters:
value - the value
label - the label

SelectItemComparable

public SelectItemComparable(String value)
Instantiates a new select item comparable.

Parameters:
value - the value

SelectItemComparable

public SelectItemComparable(String value,
                            String label,
                            String description)
Instantiates a new select item comparable.

Parameters:
value - the value
label - the label
description - the description

SelectItemComparable

public SelectItemComparable(String value,
                            String label,
                            String description,
                            boolean disabled)
Instantiates a new select item comparable.

Parameters:
value - the value
label - the label
description - the description
disabled - the disabled
Method Detail

compareTo

public int compareTo(SelectItem o)
Compare To

Specified by:
compareTo in interface Comparable<SelectItem>
Parameters:
o - Selected Item to compare against
Returns:
comparison of getLabel()

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.