com.google.gwt.user.client.ui.impl
Class FormPanelImpl

java.lang.Object
  extended by com.google.gwt.user.client.ui.impl.FormPanelImpl
Direct Known Subclasses:
FormPanelImplIE6

public class FormPanelImpl
extends java.lang.Object

Implementation class used by FormPanel.


Constructor Summary
FormPanelImpl()
           
 
Method Summary
 java.lang.String getContents(Element iframe)
          Gets the response html from the loaded iframe.
 java.lang.String getEncoding(Element form)
          Gets the form element's encoding.
 void hookEvents(Element iframe, Element form, FormPanelImplHost listener)
          Hooks the iframe's onLoad event and the form's onSubmit event.
 void reset(Element form)
          Resets a form.
 void setEncoding(Element form, java.lang.String encoding)
          Sets the form element's encoding.
 void submit(Element form, Element iframe)
          Submits a form.
 void unhookEvents(Element iframe, Element form)
          Unhooks the iframe's onLoad event.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormPanelImpl

public FormPanelImpl()
Method Detail

getContents

public java.lang.String getContents(Element iframe)
Gets the response html from the loaded iframe.

Parameters:
iframe - the iframe from which the response html is to be extracted
Returns:
the response html

getEncoding

public java.lang.String getEncoding(Element form)
Gets the form element's encoding.

Parameters:
form - the form whose encoding is to be retrieved
Returns:
the form's encoding type

hookEvents

public void hookEvents(Element iframe,
                       Element form,
                       FormPanelImplHost listener)
Hooks the iframe's onLoad event and the form's onSubmit event.

Parameters:
iframe - the iframe whose onLoad event is to be hooked
form - the form whose onSubmit event is to be hooked
listener - the listener to receive notification

reset

public void reset(Element form)
Resets a form.

Parameters:
form - the form to be reset

setEncoding

public void setEncoding(Element form,
                        java.lang.String encoding)
Sets the form element's encoding.

Parameters:
form - the form whose encoding is to be set
encoding - the new encoding type

submit

public void submit(Element form,
                   Element iframe)
Submits a form.

Parameters:
form - the form to be submitted
iframe - the iframe that is targetted, or null

unhookEvents

public void unhookEvents(Element iframe,
                         Element form)
Unhooks the iframe's onLoad event.

Parameters:
iframe - the iframe whose onLoad event is to be unhooked
form - the form whose onSubmit event is to be unhooked