com.alarmpoint.integrations.infrastructure.agent.service.tag
Class JspOption
java.lang.Object
com.alarmpoint.integrations.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 |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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 optionvalue
- body of the optionselected
- 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 optionvalue
- body of the option
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