com.xpn.xwiki.wysiwyg.client.ui
Class XWysiwygEditor

java.lang.Object
  extended by com.xpn.xwiki.wysiwyg.client.ui.XWysiwygEditor
All Implemented Interfaces:
com.google.gwt.user.client.ui.ChangeListener, com.google.gwt.user.client.ui.ClickListener, com.google.gwt.user.client.ui.KeyboardListener, com.google.gwt.user.client.ui.LoadListener, CommandListener, DeferredUpdate, java.util.EventListener

public class XWysiwygEditor
extends java.lang.Object
implements DeferredUpdate, com.google.gwt.user.client.ui.ClickListener, com.google.gwt.user.client.ui.KeyboardListener, CommandListener, com.google.gwt.user.client.ui.ChangeListener, com.google.gwt.user.client.ui.LoadListener


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.xpn.xwiki.wysiwyg.client.util.DeferredUpdate
DeferredUpdate.UpdateCommand
 
Field Summary
 
Fields inherited from interface com.google.gwt.user.client.ui.KeyboardListener
KEY_ALT, KEY_BACKSPACE, KEY_CTRL, KEY_DELETE, KEY_DOWN, KEY_END, KEY_ENTER, KEY_ESCAPE, KEY_HOME, KEY_LEFT, KEY_PAGEDOWN, KEY_PAGEUP, KEY_RIGHT, KEY_SHIFT, KEY_TAB, KEY_UP, MODIFIER_ALT, MODIFIER_CTRL, MODIFIER_META, MODIFIER_SHIFT
 
Constructor Summary
XWysiwygEditor(Wysiwyg wysiwyg, Config config, SyntaxValidatorManager svm, PluginFactoryManager pfm)
           
 
Method Summary
 java.lang.String getSyntax()
           
 XRichTextEditor getUI()
           
 long getUpdateIndex()
          
 long incUpdateIndex()
          
 void onChange(com.google.gwt.user.client.ui.Widget sender)
          
 void onClick(com.google.gwt.user.client.ui.Widget sender)
          
 void onCommand(CommandManager sender, Command command, java.lang.String param)
          
 void onError(com.google.gwt.user.client.ui.Widget sender)
          
 void onKeyDown(com.google.gwt.user.client.ui.Widget sender, char keyCode, int modifier)
          
 void onKeyPress(com.google.gwt.user.client.ui.Widget sender, char keyCode, int modifier)
          
 void onKeyUp(com.google.gwt.user.client.ui.Widget sender, char keyCode, int modifier)
          
 void onLoad(com.google.gwt.user.client.ui.Widget sender)
          
 void onUpdate()
          Executes the most recent update.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XWysiwygEditor

public XWysiwygEditor(Wysiwyg wysiwyg,
                      Config config,
                      SyntaxValidatorManager svm,
                      PluginFactoryManager pfm)
Method Detail

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)

onKeyDown

public void onKeyDown(com.google.gwt.user.client.ui.Widget sender,
                      char keyCode,
                      int modifier)

Specified by:
onKeyDown in interface com.google.gwt.user.client.ui.KeyboardListener
See Also:
KeyboardListener.onKeyDown(Widget, char, int)

onKeyPress

public void onKeyPress(com.google.gwt.user.client.ui.Widget sender,
                       char keyCode,
                       int modifier)

Specified by:
onKeyPress in interface com.google.gwt.user.client.ui.KeyboardListener
See Also:
KeyboardListener.onKeyPress(Widget, char, int)

onKeyUp

public void onKeyUp(com.google.gwt.user.client.ui.Widget sender,
                    char keyCode,
                    int modifier)

Specified by:
onKeyUp in interface com.google.gwt.user.client.ui.KeyboardListener
See Also:
KeyboardListener.onKeyUp(Widget, char, int)

onCommand

public void onCommand(CommandManager sender,
                      Command command,
                      java.lang.String param)

Specified by:
onCommand in interface CommandListener
See Also:
CommandListener.onCommand(CommandManager, Command, String)

onChange

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

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

onError

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

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

onLoad

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

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

getUpdateIndex

public long getUpdateIndex()

Specified by:
getUpdateIndex in interface DeferredUpdate
Returns:
The index of the last update.
See Also:
DeferredUpdate.getUpdateIndex()

incUpdateIndex

public long incUpdateIndex()

Specified by:
incUpdateIndex in interface DeferredUpdate
Returns:
The update index after it was incremented.
See Also:
DeferredUpdate.incUpdateIndex()

onUpdate

public void onUpdate()
Executes the most recent update.

Specified by:
onUpdate in interface DeferredUpdate
See Also:
DeferredUpdate.onUpdate()

getUI

public XRichTextEditor getUI()

getSyntax

public java.lang.String getSyntax()


Copyright © 2004-2008 XWiki. All Rights Reserved.