public class

FormPanelImpl

extends Object
java.lang.Object
   ↳ com.google.gwt.user.client.ui.impl.FormPanelImpl
Known Direct Subclasses

Class Overview

Implementation class used by FormPanel.

Summary

Public Constructors
FormPanelImpl()
Public Methods
String getContents(Element iframe)
Gets the response html from the loaded iframe.
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, 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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public FormPanelImpl ()

Public Methods

public 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

public 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

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

public void reset (Element form)

Resets a form.

Parameters
form the form to be reset

public void setEncoding (Element form, String encoding)

Sets the form element's encoding.

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

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

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