com.sapportals.portal.prt.util.html

Class HtmlOption

java.lang.Object
  extended by com.sapportals.portal.prt.util.html.HtmlAttributeContainer
      extended by com.sapportals.portal.prt.util.html.HtmlBase
          extended by com.sapportals.portal.prt.util.html.HtmlSinglePartElement
              extended by 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


Field Summary
protected  boolean m_selected
          If the option is selected.
protected  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(String value)
           
HtmlOption(String value, boolean isSelected)
           
 
Method Summary
 boolean getSelected()
          Get the value of m_selected.
 String getValue()
          Get the value of m_value.
 void outputAttributes(PrintWriter out)
          Deprecated.  
 void outputAttributes(StringBuffer strbuf)
           
 void outputAttributes(Writer out)
           
 HtmlOption setSelected(boolean v)
          Set the value of m_selected.
 HtmlOption setValue(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, addIsThreadHTML5Compliant, addIsThreadXHTMLCompliant, appendToAttribute, destroy, getAttributes, isThreadHTML5Compliant, isThreadXHTMLCompliant, removeAttribute, removeIsThreadHTML5Compliant, removeIsThreadXHTMLCompliant
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_value

protected 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(String value)

HtmlOption

public HtmlOption(String value,
                  boolean isSelected)
Method Detail

outputAttributes

public void outputAttributes(StringBuffer strbuf)
Specified by:
outputAttributes in interface IHtmlAttributeContainer
Overrides:
outputAttributes in class HtmlAttributeContainer

outputAttributes

public void outputAttributes(PrintWriter out)
Deprecated. 

Specified by:
outputAttributes in interface IHtmlAttributeContainer
Overrides:
outputAttributes in class HtmlAttributeContainer

outputAttributes

public void outputAttributes(Writer out)
Specified by:
outputAttributes in interface IHtmlAttributeContainer
Overrides:
outputAttributes in class HtmlAttributeContainer

getValue

public String getValue()
Get the value of m_value.

Returns:
Value of m_value.

setValue

public HtmlOption setValue(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.
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] EP-BASIS-API [sap.com] epbc.prtapi._apideprecated default EP-PIN-PRT
[sap.com] EP-BASIS-API [sap.com] tc/epbc/prt/api api EP-PIN
[sap.com] EP-BASIS-API [sap.com] tc/epbc/prt/lib/api api EP-PIN
[sap.com] EP-RUNTIME [sap.com] tc/ep/semantics/api api EP-PIN
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM


Copyright 2015 SAP AG Complete Copyright Notice