|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.utexas.its.eis.tools.qwicap.servlet.FormControlInfo
public final class FormControlInfo
FormControlInfo associates a form control's name and value with the markup element that supplied them,
and the label(s) in the markup that apply to the control.
| Method Summary | |
|---|---|
Match |
getEnclosingElement()
Returns the "form" element which encloses the element described by this object, or, when the form is itself enclosed in a "fieldset" element, this method returns that "fieldset" element. |
String |
getFirstLabel(boolean Tidy)
Returns the text of the label that is most immediately associated with this form control. |
Form |
getForm()
Returns the Form object representing the "form" element in which this form control is
located. |
Results |
getLabels()
Returns a Results object containing references to all markup elements that supply label information
related to this control. |
String |
getLabelText(boolean Tidy)
Returns the text of all the labels that apply to this control, with each individual label separated by a "/" character. |
Match |
getMatch()
Returns the Match object that uniquely identifies the form control element represented by this
FormControlInfo object. |
String |
getName()
Returns the name of this control, as it was supplied to the constructor. |
String |
getValue()
Returns the value of this control. |
String[] |
getValues()
Returns the values of this control. |
boolean |
hasLabelText()
Returns true if label information was found for this control, false otherwise. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public String toString()
toString in class Objectpublic Form getForm()
Form object representing the "form" element in which this form control is
located.
Form object representing the "form" element in which this form control is
located.public String getName()
public String getValue()
public String[] getValues()
public Match getMatch()
Match object that uniquely identifies the form control element represented by this
FormControlInfo object.
Match object that uniquely identifies the form control element represented by
this FormControlInfo object.public Match getEnclosingElement()
public boolean hasLabelText()
true if label information was found for this control, false otherwise.
true if label information was found for this control, false otherwise.public String getLabelText(boolean Tidy)
Tidy - true if steps should be taken to tidy-up the label text, false if the text
should be used exactly as it was found in the markup. Tidying is performed by
LabelElementInfo.getLabelTextTidy and currently consists of removing trailing colons
(':') from labels.
public Results getLabels()
Results object containing references to all markup elements that supply label information
related to this control.
Results object containing references to all markup elements that supply label
information related to this control.public String getFirstLabel(boolean Tidy)
Tidy - true if steps should be taken to tidy-up the label text, false if the text
should be used exactly as it was found in the markup. Tidying is performed by
LabelElementInfo.getLabelTextTidy and currently consists of removing trailing colons
(':') from labels.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||