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.HtmlSinglePartElement
m_name
 
Fields inherited from class com.sapportals.portal.prt.util.html.HtmlBase
m_hasTag
 
Fields inherited from class com.sapportals.portal.prt.util.html.HtmlAttributeContainer
EQUALS_BEGIN, EQUALS_END, m_attributes, SPACE
 
Constructor Summary
HtmlOption(java.lang.String value)
           
HtmlOption(java.lang.String value, boolean isSelected)
           
 
Method Summary
 boolean getSelected()
          Get the value of m_selected.
 java.lang.String getValue()
          Get the value of m_value.
 void outputAttributes(java.io.PrintWriter out)
          Deprecated.  
 void outputAttributes(java.lang.StringBuffer strbuf)
           
 void outputAttributes(java.io.Writer out)
           
 HtmlOption setSelected(boolean v)
          Set the value of m_selected.
 HtmlOption setValue(java.lang.String v)
          Set the value of m_value.
 
Methods inherited from class com.sapportals.portal.prt.util.html.HtmlSinglePartElement
getElementCount, getName, output, output, output, setName, toString
 
Methods inherited from class com.sapportals.portal.prt.util.html.HtmlBase
getTag, hasTag, requireClosingTag, requireClosingTag, setClass, setStyle, setTag
 
Methods inherited from class com.sapportals.portal.prt.util.html.HtmlAttributeContainer
addAttribute, appendToAttribute, destroy, getAttributes, removeAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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.
Constructor Detail

HtmlOption

public HtmlOption(java.lang.String value)

HtmlOption

public HtmlOption(java.lang.String value,
                  boolean isSelected)
Method Detail

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.