|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.ecs.GenericElement | +--org.apache.ecs.ElementAttributes | +--org.apache.ecs.ConcreteElement | +--org.apache.ecs.MultiPartElement | +--org.apache.ecs.html.Option
This class creates a <Option> tag. The Option tag defaults to not having a closing </Option> because it is optional in the spec. This can be overridden by setNeedClosingTag(true)
Fields inherited from class org.apache.ecs.ConcreteElement |
h_element,
v_element |
Fields inherited from class org.apache.ecs.ElementAttributes |
attribute_equality_sign,
attribute_filter,
attribute_quote,
attribute_quote_char,
filter_attribute_state |
Fields inherited from class org.apache.ecs.GenericElement |
__text,
begin_end_modifier,
begin_end_modifier_defined,
begin_start_modifier,
begin_start_modifier_defined,
case_type,
codeset,
element,
element_type,
end_element,
end_end_modifier,
end_end_modifier_defined,
end_modifier_defined,
end_start_modifier,
end_start_modifier_defined,
end_tag,
filter,
filter_state,
position,
pretty_print,
start_modifier_defined,
start_tag,
tabLevel,
VERSION |
Constructor Summary | |
Option()
Basic constructor. |
|
Option(java.lang.String value)
Basic constructor. |
|
Option(java.lang.String label,
double value)
Basic constructor. |
|
Option(java.lang.String label,
int value)
Basic constructor. |
|
Option(java.lang.String label,
java.lang.String value)
Basic constructor. |
Method Summary | |
(package private) void |
Private initialization routine. |
Option |
addElement(Element element)
Adds an Element to the element. |
Option |
addElement(java.lang.String element)
Adds an Element to the element. |
Option[] |
addElement(java.lang.String[] element)
Creates a group of options. |
Option |
addElement(java.lang.String hashcode,
Element element)
Adds an Element to the element. |
Option |
addElement(java.lang.String hashcode,
java.lang.String element)
Adds an Element to the element. |
Option |
removeElement(java.lang.String hashcode)
Removes an Element from the element. |
Option |
setDisabled(boolean disabled)
Sets the disabled value |
Option |
setLabel(java.lang.String label)
Sets the LABEL="" attribute |
Option |
setSelected(boolean selected)
Sets the selected value |
Option |
setValue(double value)
Sets the VALUE="" attribute |
Option |
setValue(int value)
Sets the VALUE="" attribute |
Option |
setValue(java.lang.String value)
Sets the VALUE="" attribute |
Methods inherited from class org.apache.ecs.ConcreteElement |
addElementToRegistry,
addElementToRegistry,
addElementToRegistry,
addElementToRegistry,
addElementToRegistry,
addElementToRegistry,
addElementToRegistry,
addElementToRegistry,
clone,
elements,
output,
output,
registryHasElement,
registryHasElement,
removeElementFromRegistry,
removeElementFromRegistry |
Methods inherited from class org.apache.ecs.ElementAttributes |
addAttribute,
createStartTag,
getAttributeEqualitySign,
getAttributeFilter,
getAttributeFilterState,
getAttributeQuote,
getAttributeQuoteChar,
hasAttribute,
removeAttribute,
setAttributeEqualitySign,
setAttributeFilter,
setAttributeFilterState,
setAttributeQuote,
setAttributeQuoteChar,
setClass,
setDir,
setID,
setLang,
setStyle,
setTitle |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
Constructor Detail |
public Option()
public Option(java.lang.String value)
value
- sets the attribute VALUE=""public Option(java.lang.String label, java.lang.String value)
label
- sets the attribute LABEL=""value
- sets the attribute VALUE=""public Option(java.lang.String label, int value)
label
- sets the attribute LABEL=""value
- sets the attribute VALUE=""public Option(java.lang.String label, double value)
label
- sets the attribute LABEL=""value
- sets the attribute VALUE=""Method Detail |
void()
public Option setLabel(java.lang.String label)
label
- the LABEL="" attributepublic Option setValue(java.lang.String value)
value
- the VALUE="" attributepublic Option setValue(int value)
value
- the VALUE="" attributepublic Option setValue(double value)
value
- the VALUE="" attributepublic Option setSelected(boolean selected)
selected
- true or falsepublic Option setDisabled(boolean disabled)
disabled
- true or falsepublic Option addElement(java.lang.String hashcode, Element element)
hashcode
- name of element for hash tableelement
- Adds an Element to the element.public Option addElement(java.lang.String hashcode, java.lang.String element)
hashcode
- name of element for hash tableelement
- Adds an Element to the element.public Option addElement(Element element)
element
- Adds an Element to the element.public Option addElement(java.lang.String element)
element
- Adds an Element to the element.public Option[] addElement(java.lang.String[] element)
Creates
- a group of options.public Option removeElement(java.lang.String hashcode)
hashcode
- the name of the element to be removed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |