com.xpn.xwiki.wysiwyg.client.plugin.valign
Class VerticalAlignPlugin
java.lang.Object
com.xpn.xwiki.wysiwyg.client.plugin.internal.AbstractPlugin
com.xpn.xwiki.wysiwyg.client.plugin.internal.AbstractStatefulPlugin
com.xpn.xwiki.wysiwyg.client.plugin.valign.VerticalAlignPlugin
- All Implemented Interfaces:
- com.google.gwt.event.dom.client.ClickHandler, com.google.gwt.event.dom.client.KeyUpHandler, com.google.gwt.event.dom.client.MouseUpHandler, com.google.gwt.event.shared.EventHandler, Plugin, CommandListener, Updatable
public class VerticalAlignPlugin
- extends com.xpn.xwiki.wysiwyg.client.plugin.internal.AbstractStatefulPlugin
- implements com.google.gwt.event.dom.client.ClickHandler
Plug-in for making text superscript or subscript. It installs two toggle buttons on the tool bar and updates their
status depending on the current cursor position and the direction of the navigation using the arrow keys. For
instance, if you navigate from a subscript region to a superscript one and you type a character it will be subscript.
Known issues: When you navigate backwards, from right to left, using the arrow keys, the status of the toggle
buttons is not synchronized with the text area. The text area behaves properly though.
- Version:
- $Id: VerticalAlignPlugin.java 25425 2009-12-03 14:00:25Z mflorea $
|
Method Summary |
void |
destroy()
Notifies the plug-in to release its resources before being unloaded from the WYSIWYG editor. |
void |
init(RichTextArea textArea,
Config config)
Initialize the plug-in. |
void |
onClick(com.google.gwt.event.dom.client.ClickEvent event)
|
void |
update()
|
| Methods inherited from class com.xpn.xwiki.wysiwyg.client.plugin.internal.AbstractStatefulPlugin |
canUpdate, onBeforeCommand, onCommand, onKeyUp, onMouseUp, registerTextAreaHandlers |
| Methods inherited from class com.xpn.xwiki.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 |
VerticalAlignPlugin
public VerticalAlignPlugin()
init
public void init(RichTextArea 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 com.xpn.xwiki.wysiwyg.client.plugin.internal.AbstractPlugin
- Parameters:
textArea - the text area of the editorconfig - the configuration object- See Also:
AbstractPlugin.init(RichTextArea, 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 com.xpn.xwiki.wysiwyg.client.plugin.internal.AbstractStatefulPlugin
- See Also:
AbstractStatefulPlugin.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)
update
public void update()
-
- Specified by:
update in interface Updatable
- See Also:
Updatable.update()
Copyright © 2004-2010 XWiki. All Rights Reserved.