public class FormPanelImpl extends Object
FormPanel
.Constructor and Description |
---|
FormPanelImpl() |
Modifier and Type | Method and Description |
---|---|
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.
|
public String getContents(Element iframe)
iframe
- the iframe from which the response html is to be extractedpublic String getEncoding(Element form)
form
- the form whose encoding is to be retrievedpublic void hookEvents(Element iframe, Element form, FormPanelImplHost listener)
iframe
- the iframe whose onLoad event is to be hookedform
- the form whose onSubmit event is to be hookedlistener
- the listener to receive notificationpublic void reset(Element form)
form
- the form to be resetpublic void setEncoding(Element form, String encoding)
form
- the form whose encoding is to be setencoding
- the new encoding typepublic void submit(Element form, Element iframe)
form
- the form to be submittediframe
- the iframe that is targetted, or null
Copyright © 2016. All rights reserved.