org.jaffa.presentation.portlet.widgets.model
Class DropDownModel.Option

java.lang.Object
  extended byorg.jaffa.presentation.portlet.widgets.model.DropDownModel.Option
All Implemented Interfaces:
Comparable
Enclosing class:
DropDownModel

public class DropDownModel.Option
extends Object
implements Comparable

An instance of this class is created for each option added to the DropDownModel.


Method Summary
 int compareTo(Object obj)
          Compares this object with another DropDownModel.Option object.
 boolean equals(Object obj)
          Compares this object to another DropDownModel.Option object.
 String getLabel()
          Getter for property label.
 String getValue()
          Getter for property value.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLabel

public String getLabel()
Getter for property label.

Returns:
Value of property label.

getValue

public String getValue()
Getter for property value.

Returns:
Value of property value.

equals

public boolean equals(Object obj)
Compares this object to another DropDownModel.Option object. Returns a true if the two objects have the same value.

Parameters:
obj - The other DropDownModel.Option object.
Returns:
true if the two objects have the same value.

compareTo

public int compareTo(Object obj)
Compares this object with another DropDownModel.Option object.

Specified by:
compareTo in interface Comparable
Parameters:
obj - the other DropDownModel.Option object.
Returns:
a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.


Copyright © 2002-2004 JAFFA Project.