com.xpn.xwiki.wysiwyg.client.plugin.sync
Class SyncPlugin

java.lang.Object
  extended by com.xpn.xwiki.wysiwyg.client.plugin.internal.AbstractPlugin
      extended by com.xpn.xwiki.wysiwyg.client.plugin.sync.SyncPlugin
All Implemented Interfaces:
com.google.gwt.user.client.rpc.AsyncCallback<SyncResult>, com.google.gwt.user.client.ui.ClickListener, Plugin, TimerListener, java.util.EventListener

public class SyncPlugin
extends AbstractPlugin
implements com.google.gwt.user.client.ui.ClickListener, TimerListener, com.google.gwt.user.client.rpc.AsyncCallback<SyncResult>


Constructor Summary
SyncPlugin()
           
 
Method Summary
 void destroy()
          Notifies the plug-in to release its resources before being unloaded from the WYSIWYG editor.
 void init(Wysiwyg wysiwyg, XRichTextArea textArea, Config config)
          Initialize the plug-in.
 void onClick(com.google.gwt.user.client.ui.Widget sender)
          
 void onElapsed(Timer sender)
          Called whenever the delay period of the timer elapses.
 void onFailure(java.lang.Throwable caught)
          
 void onSuccess(SyncResult result)
          
 void onSync()
           
 
Methods inherited from class com.xpn.xwiki.wysiwyg.client.plugin.internal.AbstractPlugin
getConfig, getTextArea, getUIExtensionList, getUIExtensions, getWysiwyg
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyncPlugin

public SyncPlugin()
Method Detail

init

public void init(Wysiwyg wysiwyg,
                 XRichTextArea textArea,
                 Config config)
Initialize the plug-in. Plug-ins need to know the text area in order to provide only those feature that are supported.

Specified by:
init in interface Plugin
Overrides:
init in class AbstractPlugin
Parameters:
wysiwyg - The WYSIWYG application context.
textArea - The text area of the editor.
config - The configuration.
See Also:
AbstractPlugin.init(Wysiwyg, XRichTextArea, Config)

destroy

public void destroy()
Notifies the plug-in to release its resources before being unloaded from the WYSIWYG editor.

Specified by:
destroy in interface Plugin
Overrides:
destroy in class AbstractPlugin
See Also:
AbstractPlugin.destroy()

onClick

public void onClick(com.google.gwt.user.client.ui.Widget sender)

Specified by:
onClick in interface com.google.gwt.user.client.ui.ClickListener
See Also:
ClickListener.onClick(Widget)

onElapsed

public void onElapsed(Timer sender)
Called whenever the delay period of the timer elapses.

Specified by:
onElapsed in interface TimerListener
Parameters:
sender - The timer whose delay period elapsed. The listener should be registered to this timer.
See Also:
TimerListener.onElapsed(Timer)

onSync

public void onSync()

onFailure

public void onFailure(java.lang.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)


Copyright © 2004-2008 XWiki. All Rights Reserved.