com.sapportals.portal.prt.util.html
Class HtmlOption
java.lang.Object
|
+--com.sapportals.portal.prt.util.html.HtmlAttributeContainer
|
+--com.sapportals.portal.prt.util.html.HtmlBase
|
+--com.sapportals.portal.prt.util.html.HtmlSinglePartElement
|
+--com.sapportals.portal.prt.util.html.HtmlOption
- All Implemented Interfaces:
- IHtmlAttributeContainer, IHtmlBase, IHtmlOutputable
- public class HtmlOption
- extends HtmlSinglePartElement
HtmlOption.java
Created: Wed Nov 03 19:16:54 1999
- Version:
- $Revision: #3 $
|
Field Summary |
protected boolean |
m_selected
If the option is selected. |
protected java.lang.String |
m_value
The value to put in the option. |
| Fields inherited from class com.sapportals.portal.prt.util.html.HtmlBase |
m_hasTag |
|
Constructor Summary |
HtmlOption(java.lang.String value)
|
HtmlOption(java.lang.String value,
boolean isSelected)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
m_value
protected java.lang.String m_value
- The value to put in the option.
m_selected
protected boolean m_selected
- If the option is selected.
HtmlOption
public HtmlOption(java.lang.String value)
HtmlOption
public HtmlOption(java.lang.String value,
boolean isSelected)
outputAttributes
public void outputAttributes(java.lang.StringBuffer strbuf)
- Overrides:
outputAttributes in class HtmlAttributeContainer
outputAttributes
public void outputAttributes(java.io.PrintWriter out)
- Deprecated.
- Overrides:
outputAttributes in class HtmlAttributeContainer
- Following copied from interface:
com.sapportals.portal.prt.util.html.IHtmlAttributeContainer
- Parameters:
writer -
outputAttributes
public void outputAttributes(java.io.Writer out)
- Overrides:
outputAttributes in class HtmlAttributeContainer
getValue
public java.lang.String getValue()
- Get the value of m_value.
- Returns:
- Value of m_value.
setValue
public HtmlOption setValue(java.lang.String v)
- Set the value of m_value.
- Parameters:
v - Value to assign to m_value.
getSelected
public boolean getSelected()
- Get the value of m_selected.
- Returns:
- Value of m_selected.
setSelected
public HtmlOption setSelected(boolean v)
- Set the value of m_selected.
- Parameters:
v - Value to assign to m_selected.