com.xpn.xwiki.wysiwyg.client.plugin.font
Class FontPlugin

java.lang.Object
  extended by com.xpn.xwiki.wysiwyg.client.plugin.internal.AbstractPlugin
      extended by com.xpn.xwiki.wysiwyg.client.plugin.internal.AbstractStatefulPlugin
          extended by com.xpn.xwiki.wysiwyg.client.plugin.font.FontPlugin
All Implemented Interfaces:
com.google.gwt.event.dom.client.ChangeHandler, 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 FontPlugin
extends com.xpn.xwiki.wysiwyg.client.plugin.internal.AbstractStatefulPlugin
implements com.google.gwt.event.dom.client.ChangeHandler

Plug-in for manipulating the font size and font family used while editing.

Version:
$Id: FontPlugin.java 26300 2010-01-22 12:25:22Z mflorea $

Constructor Summary
FontPlugin()
           
 
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 onChange(com.google.gwt.event.dom.client.ChangeEvent 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
 

Constructor Detail

FontPlugin

public FontPlugin()
Method Detail

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 editor
config - 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()

onChange

public void onChange(com.google.gwt.event.dom.client.ChangeEvent event)

Specified by:
onChange in interface com.google.gwt.event.dom.client.ChangeHandler
See Also:
ChangeHandler.onChange(ChangeEvent)

update

public void update()

Specified by:
update in interface Updatable
See Also:
Updatable.update()


Copyright © 2004-2010 XWiki. All Rights Reserved.