|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractPlugin
org.xwiki.gwt.wysiwyg.client.plugin.submit.SubmitPlugin
public class SubmitPlugin
Binds a RichTextArea to a form field.
| Constructor Summary | |
|---|---|
SubmitPlugin()
|
|
| Method Summary | |
|---|---|
void |
destroy()
Notifies the plug-in to release its resources before being unloaded from the WYSIWYG editor. |
protected JavaScriptObject |
getSubmitHandler()
|
protected void |
hookSubmitEvent(Element form)
Registers getSubmitHandler() as a listener for submit events generated by the given HTML form element. |
void |
init(RichTextArea textArea,
Config config)
Initialize the plug-in. |
boolean |
onBeforeCommand(CommandManager sender,
Command command,
java.lang.String param)
|
void |
onBlur(com.google.gwt.event.dom.client.BlurEvent event)
|
void |
onCommand(CommandManager sender,
Command command,
java.lang.String param)
|
protected void |
onSubmit()
Called when the HTML form hosting the rich text area is submitted. |
void |
onWindowClosing(com.google.gwt.user.client.Window.ClosingEvent event)
|
protected void |
unhookSubmitEvent(Element form)
Unregisters getSubmitHandler() as a listener for submit events generated by the given HTML form element. |
| Methods inherited from class org.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractPlugin |
|---|
getConfig, getTextArea, getUIExtensionList, getUIExtensions, saveRegistration, saveRegistrations |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SubmitPlugin()
| Method Detail |
|---|
public void init(RichTextArea textArea,
Config config)
init in interface Plugininit in class org.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractPlugintextArea - the text area of the editorconfig - the configuration objectAbstractPlugin.init(RichTextArea, Config)public void destroy()
destroy in interface Plugindestroy in class org.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractPluginAbstractPlugin.destroy()protected JavaScriptObject getSubmitHandler()
onSubmit()protected void hookSubmitEvent(Element form)
getSubmitHandler() as a listener for submit events generated by the given HTML form element.
form - the HTML form element whose submit event should be listenedprotected void unhookSubmitEvent(Element form)
getSubmitHandler() as a listener for submit events generated by the given HTML form element.
form - the HTML form element whose submit event shouldn't be listened anymorepublic void onBlur(com.google.gwt.event.dom.client.BlurEvent event)
onBlur in interface com.google.gwt.event.dom.client.BlurHandlerBlurHandler.onBlur(BlurEvent)protected void onSubmit()
public boolean onBeforeCommand(CommandManager sender,
Command command,
java.lang.String param)
onBeforeCommand in interface CommandListenerCommandListener.onBeforeCommand(CommandManager, Command, String)
public void onCommand(CommandManager sender,
Command command,
java.lang.String param)
onCommand in interface CommandListenerCommandListener.onCommand(CommandManager, Command, String)public void onWindowClosing(com.google.gwt.user.client.Window.ClosingEvent event)
onWindowClosing in interface com.google.gwt.user.client.Window.ClosingHandlerClosingHandler#onWindowClosing(ClosingEvent)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||