org.xwiki.gwt.wysiwyg.client.plugin.justify
Class JustifyPlugin

java.lang.Object
  extended by org.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractPlugin
      extended by org.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractStatefulPlugin
          extended by org.xwiki.gwt.wysiwyg.client.plugin.justify.JustifyPlugin
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, CommandListener, Updatable, Plugin

public class JustifyPlugin
extends org.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractStatefulPlugin
implements com.google.gwt.event.dom.client.ClickHandler

Plug-in for justifying text. It can be used to align text to the left, to the right, in center or to make it expand to fill the entire line. It installs four toggle buttons on the tool bar and updates their status depending on the current cursor position.

Version:
$Id: d59edb9e0e89ce2689699d41033ae32a334ee4dd $

Constructor Summary
JustifyPlugin()
           
 
Method Summary
 void destroy()
          
 void init(RichTextArea textArea, Config config)
          
 void onClick(com.google.gwt.event.dom.client.ClickEvent event)
          
 void update()
          
 
Methods inherited from class org.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractStatefulPlugin
canUpdate, onBeforeCommand, onCommand, onKeyUp, onMouseUp, registerTextAreaHandlers
 
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
 

Constructor Detail

JustifyPlugin

public JustifyPlugin()
Method Detail

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.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–2014 XWiki. All rights reserved.