public class HtmlOption extends HtmlSinglePartElement
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
m_selected
If the option is selected.
|
protected String |
m_value
The value to put in the option.
|
m_nameEQUALS_BEGIN, EQUALS_END, m_attributes, SPACE| Constructor and Description |
|---|
HtmlOption(String value) |
HtmlOption(String value,
boolean isSelected) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
getElementCount, getName, output, output, output, setName, toStringgetTag, hasTag, requireClosingTag, requireClosingTag, setClass, setStyle, setTagaddAttribute, addIsThreadHTML5Compliant, addIsThreadXHTMLCompliant, appendToAttribute, destroy, getAttributes, isThreadHTML5Compliant, isThreadXHTMLCompliant, removeAttribute, removeIsThreadHTML5Compliant, removeIsThreadXHTMLCompliantprotected String m_value
protected boolean m_selected
public HtmlOption(String value)
public HtmlOption(String value, boolean isSelected)
public void outputAttributes(StringBuffer strbuf)
outputAttributes in interface IHtmlAttributeContaineroutputAttributes in class HtmlAttributeContainerpublic void outputAttributes(PrintWriter out)
outputAttributes in interface IHtmlAttributeContaineroutputAttributes in class HtmlAttributeContainerpublic void outputAttributes(Writer out)
outputAttributes in interface IHtmlAttributeContaineroutputAttributes in class HtmlAttributeContainerpublic String getValue()
public HtmlOption setValue(String v)
v - Value to assign to m_value.public boolean getSelected()
public HtmlOption setSelected(boolean v)
v - Value to assign to m_selected.| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-BASIS-API
|
[sap.com]
|
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 2021 SAP SE Complete Copyright Notice