Agent System POND 1.2 (28.2.2002)

FIM.Util.WWW.Form
Class SubmitButtonElement

java.lang.Object
  |
  +--FIM.Util.WWW.Form.FormElement
        |
        +--FIM.Util.WWW.Form.ActionElement
              |
              +--FIM.Util.WWW.Form.ButtonElement
                    |
                    +--FIM.Util.WWW.Form.SubmitButtonElement
All Implemented Interfaces:
Element, Serializable

public class SubmitButtonElement
extends ButtonElement

A submit BUTTON.

Version:
1.0, 1.7.2000
Author:
Michael Sonntag
See Also:
Serialized Form

Fields inherited from class FIM.Util.WWW.Form.FormElement
attributes, children
 
Constructor Summary
SubmitButtonElement(HTMLDocument doc, Element parent, int startOffs, int endOffs, String name, String value)
          Creates a new submit BUTTON element.
 
Method Summary
 void doAction()
          Submits the form and stores the result.
 Object getResult()
          Fetch the result of submitting the form through this button.
 String toString()
          Returns a string representation of the submit button.
 
Methods inherited from class FIM.Util.WWW.Form.ButtonElement
getType
 
Methods inherited from class FIM.Util.WWW.Form.ActionElement
getEncoded, getValue, match, reset
 
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
 

Constructor Detail

SubmitButtonElement

public SubmitButtonElement(HTMLDocument doc,
                           Element parent,
                           int startOffs,
                           int endOffs,
                           String name,
                           String value)
Creates a new submit BUTTON element.
Parameters:
doc - the document this element belongs to
parent - the parent of this element
startOffs - start offset of the element in the document
endOffs - end offset of the element in the document
name - the name of the element
value - the value of the element or null if none exists
Method Detail

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 button.
Possible values:

toString

public String toString()
Returns a string representation of the submit button.
Overrides:
toString in class ButtonElement
Returns:
string representation of the form element

Agent System POND 1.2 (28.2.2002)

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.