org.xwiki.gwt.wysiwyg.client.plugin.sync
Class SyncPlugin
java.lang.Object
org.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractPlugin
org.xwiki.gwt.wysiwyg.client.plugin.sync.SyncPlugin
- All Implemented Interfaces:
- com.google.gwt.event.dom.client.ClickHandler, com.google.gwt.event.shared.EventHandler, com.google.gwt.user.client.rpc.AsyncCallback<SyncResult>, TimerListener, Plugin
public class SyncPlugin
- extends org.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractPlugin
- implements com.google.gwt.event.dom.client.ClickHandler, TimerListener, com.google.gwt.user.client.rpc.AsyncCallback<SyncResult>
|
Constructor Summary |
SyncPlugin(SyncServiceAsync syncService)
Creates a new synchronization plug-in that uses the given service to synchronize multiple editors. |
| 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 |
DEFAULT_SYNC_DELAY
public static final int DEFAULT_SYNC_DELAY
- See Also:
- Constant Field Values
SyncPlugin
public SyncPlugin(SyncServiceAsync syncService)
- Creates a new synchronization plug-in that uses the given service to synchronize multiple editors.
- Parameters:
syncService - the synchronization service
init
public void init(RichTextArea textArea,
Config config)
-
- Specified by:
init in interface Plugin- Overrides:
init in class org.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractPlugin
- See Also:
AbstractPlugin.init(RichTextArea, Config)
destroy
public void destroy()
-
- Specified by:
destroy in interface Plugin- Overrides:
destroy in class org.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractPlugin
- See Also:
AbstractPlugin.destroy()
onClick
public void onClick(com.google.gwt.event.dom.client.ClickEvent event)
-
- Specified by:
onClick in interface com.google.gwt.event.dom.client.ClickHandler
- See Also:
ClickHandler.onClick(ClickEvent)
onElapsed
public void onElapsed(Timer sender)
-
- Specified by:
onElapsed in interface TimerListener
- See Also:
TimerListener.onElapsed(Timer)
onSync
public void onSync()
debugMessage
public void debugMessage(String text)
onFailure
public void onFailure(Throwable caught)
-
- Specified by:
onFailure in interface com.google.gwt.user.client.rpc.AsyncCallback<SyncResult>
- See Also:
AsyncCallback.onFailure(Throwable)
onSuccess
public void onSuccess(SyncResult result)
-
- Specified by:
onSuccess in interface com.google.gwt.user.client.rpc.AsyncCallback<SyncResult>
- See Also:
AsyncCallback.onSuccess(Object)
showDialog
public void showDialog(String title,
String message,
com.google.gwt.user.client.rpc.AsyncCallback cb)
- Parameters:
title - message -
showError
public void showError(Throwable caught,
com.google.gwt.user.client.rpc.AsyncCallback<?> cb)
showError
public void showError(String text,
com.google.gwt.user.client.rpc.AsyncCallback<?> cb)
showError
public void showError(String code,
String text,
com.google.gwt.user.client.rpc.AsyncCallback<?> cb)
Copyright © 2004-2012 XWiki. All Rights Reserved.