|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectau.id.jericho.lib.html.Segment
au.id.jericho.lib.html.FormControl
Method Summary | |
abstract boolean |
addValue(java.lang.CharSequence value)
|
void |
clearValues()
|
java.util.Map |
getAttributesMap()
|
java.lang.String |
getDebugInfo()
Returns a string representation of this object useful for debugging purposes. |
Element |
getElement()
|
FormControlType |
getFormControlType()
|
java.lang.String |
getName()
|
java.util.Iterator |
getOptionElementIterator()
|
FormControlOutputStyle |
getOutputStyle()
|
java.lang.String |
getPredefinedValue()
Returns the initial value of this control if it has a predefined value. |
java.util.Collection |
getPredefinedValues()
Returns a collection of all predefined values in this control. |
boolean |
isChecked()
|
boolean |
isDisabled()
|
void |
setDisabled(boolean disabled)
|
void |
setOutputStyle(FormControlOutputStyle outputStyle)
|
Methods inherited from class au.id.jericho.lib.html.Segment |
charAt, compareTo, encloses, encloses, equals, findAllCharacterReferences, findAllComments, findAllElements, findAllElements, findAllStartTags, findAllStartTags, findAllStartTags, findFormControls, findFormFields, findWords, getBegin, getEnd, getSourceText, getSourceTextNoWhitespace, hashCode, ignoreWhenParsing, isComment, isWhiteSpace, length, parseAttributes, subSequence, toString |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
public final FormControlType getFormControlType()
public final java.lang.String getName()
public final Element getElement()
public java.util.Iterator getOptionElementIterator()
public FormControlOutputStyle getOutputStyle()
public void setOutputStyle(FormControlOutputStyle outputStyle)
public final java.util.Map getAttributesMap()
public final boolean isDisabled()
public final void setDisabled(boolean disabled)
public boolean isChecked()
public java.lang.String getPredefinedValue()
This method throws a java.lang.UnsupportedOperationException
if called on a select
control
since they typically contain multiple predefined values rather than just one.
In this case the getPredefinedValues()
method should be used instead
to get a collection of all the predefined values.
null
if none.public java.util.Collection getPredefinedValues()
This method is most useful for select
controls since they typically contain multiple predefined values.
In other controls it will return a collection with zero or one item based on the output of the
getPredefinedValue()
method, so for better efficiency it is recommended to use the
getPredefinedValue()
method instead.
The multiple predefined values of a select
control are defined by the option
elements within it.
Each option
element has a
initial value
defined by the value of its value
attribute, or if this attribute is not present, by its
decoded content text
with collapsed white space.
The CharacterReference.decodeCollapseWhiteSpace(CharSequence)
method internally provides the necessary
conversion of the content text for this purpose.
null
.FormField.getPredefinedValues()
public final void clearValues()
public abstract boolean addValue(java.lang.CharSequence value)
public java.lang.String getDebugInfo()
Segment
getDebugInfo
in class Segment
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |