FIM.Util.WWW.Form
Class InputSubmitElement
java.lang.Object
|
+--FIM.Util.WWW.Form.FormElement
|
+--FIM.Util.WWW.Form.ActionElement
|
+--FIM.Util.WWW.Form.InputSubmitElement
- All Implemented Interfaces:
- Element, Serializable
- Direct Known Subclasses:
- InputImageElement
- public class InputSubmitElement
- extends ActionElement
Class for the HTML element INPUT with subtype SUBMIT.
If invoked, the form is submitted. The resulting page and any errors are stored.
Invoking it again clears this previous data.
- Version:
- 1.0, 1.7.2000
- Author:
- Michael Sonntag
- See Also:
- Serialized Form
Method Summary |
void |
doAction()
Submits the form and stores the result. |
Object |
getResult()
Fetch the result of submitting the form through this element.
|
String |
toString()
Returns a string representation of the input submit element. |
Methods inherited from class FIM.Util.WWW.Form.FormElement |
getAttributes, getDocument, getElement, getElementCount, getElementIndex, getEndOffset, getLabel, getName, getParentElement, getStartOffset, isLeaf, setLabel |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
InputSubmitElement
public InputSubmitElement(HTMLDocument doc,
Element parent,
int startOffs,
int endOffs,
String name,
String value)
- Creates a new INPUT/SUBMIT element.
- Parameters:
doc
- the document this element belongs toparent
- the parent of this elementstartOffs
- start offset of the element in the documentendOffs
- end offset of the element in the documentname
- the name of the elementvalue
- the value of the element or null
if none exists
doAction
public void doAction()
- Submits the form and stores the result.
- Overrides:
doAction
in class ActionElement
getResult
public Object getResult()
- Fetch the result of submitting the form through this element.
Possible values:
null
: The page was not (yet) submitted through this element
String
: The page returned from submitting
- Subclass of
IOException
: if an error occured during submitting
toString
public String toString()
- Returns a string representation of the input submit element.
- Overrides:
toString
in class ActionElement
- Returns:
- string representation of the form element
Submit a bug
Copyright 2001,2002 Michael Sonntag & Institute for Information Processing and Microprocessor Technology (FIM), Johannes-Kepler-University Linz, Altenbergerstr. 69, A-4040 Linz, Austria.