public class SubmitPlugin extends org.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractPlugin implements com.google.gwt.event.dom.client.BlurHandler, CommandListener, com.google.gwt.user.client.Window.ClosingHandler
RichTextArea to a form field.| Constructor and Description |
|---|
SubmitPlugin() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
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) |
boolean |
onBeforeCommand(CommandManager sender,
Command command,
String param) |
void |
onBlur(com.google.gwt.event.dom.client.BlurEvent event) |
void |
onCommand(CommandManager sender,
Command command,
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. |
getConfig, getTextArea, getUIExtensionList, getUIExtensions, saveRegistration, saveRegistrationspublic void init(RichTextArea textArea, Config config)
init in interface Plugininit in class org.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractPluginpublic void destroy()
destroy in interface Plugindestroy in class org.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractPluginprotected 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.BlurHandlerprotected void onSubmit()
public boolean onBeforeCommand(CommandManager sender, Command command, String param)
onBeforeCommand in interface CommandListenerpublic void onCommand(CommandManager sender, Command command, String param)
onCommand in interface CommandListenerpublic void onWindowClosing(com.google.gwt.user.client.Window.ClosingEvent event)
onWindowClosing in interface com.google.gwt.user.client.Window.ClosingHandlerCopyright © 2004–2015 XWiki. All rights reserved.