com.alarmpoint.integration.infrastructure.agent.service.tag
Class JspOption

java.lang.Object
  extended by com.alarmpoint.integration.infrastructure.agent.service.tag.JspOption
All Implemented Interfaces:
java.lang.Comparable<JspOption>

public class JspOption
extends java.lang.Object
implements java.lang.Comparable<JspOption>

Simple value object to contain data to create an HTML Option. Used by the IntegrationAgentServiceOptionTag when passing the options back to the parent tag

Since:
4.0
Author:
Mike Bennett

Constructor Summary
JspOption(java.lang.String id, java.lang.String value)
          Creates a new instance of JspOption
JspOption(java.lang.String id, java.lang.String value, boolean selected)
          Creates a new instance of JspOption
 
Method Summary
 int compareTo(JspOption o)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String getId()
           
 java.lang.String getValue()
           
 boolean isSelected()
           
 void setId(java.lang.String id)
           
 void setSelected(boolean selected)
           
 void setValue(java.lang.String value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JspOption

public JspOption(java.lang.String id,
                 java.lang.String value,
                 boolean selected)
Creates a new instance of JspOption

Parameters:
id - value for the id attribute in the option
value - body of the option
selected - boolean indicating if the value should display as selected

JspOption

public JspOption(java.lang.String id,
                 java.lang.String value)
Creates a new instance of JspOption

Parameters:
id - value for the id attribute in the option
value - body of the option
Method Detail

setId

public void setId(java.lang.String id)

getId

public java.lang.String getId()

setValue

public void setValue(java.lang.String value)

getValue

public java.lang.String getValue()

setSelected

public void setSelected(boolean selected)

isSelected

public boolean isSelected()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

compareTo

public int compareTo(JspOption o)
Specified by:
compareTo in interface java.lang.Comparable<JspOption>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object