org.xwiki.gwt.wysiwyg.client.plugin.symbol
Class SymbolPlugin

java.lang.Object
  extended by org.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractPlugin
      extended by org.xwiki.gwt.wysiwyg.client.plugin.symbol.SymbolPlugin
All Implemented Interfaces:
com.google.gwt.event.dom.client.ClickHandler, com.google.gwt.event.logical.shared.CloseHandler<CompositeDialogBox>, com.google.gwt.event.shared.EventHandler, Plugin

public class SymbolPlugin
extends org.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractPlugin
implements com.google.gwt.event.dom.client.ClickHandler, com.google.gwt.event.logical.shared.CloseHandler<CompositeDialogBox>

Allows the user to insert a special symbol chosen with a symbol picker in place of the current selection.

Version:
$Id: 8786dca3677153849252a2846530d6783ffa9ca2 $

Constructor Summary
SymbolPlugin()
           
 
Method Summary
 void destroy()
          
 void init(RichTextArea textArea, Config config)
          
 void onClick(com.google.gwt.event.dom.client.ClickEvent event)
          
 void onClose(com.google.gwt.event.logical.shared.CloseEvent<CompositeDialogBox> event)
          
 void onSymbols(boolean show)
          Either shows the symbol picker dialog or inserts the chosen symbol depending in the given flag.
 
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

SymbolPlugin

public SymbolPlugin()
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.AbstractPlugin
See Also:
AbstractPlugin.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)

onClose

public void onClose(com.google.gwt.event.logical.shared.CloseEvent<CompositeDialogBox> event)

Specified by:
onClose in interface com.google.gwt.event.logical.shared.CloseHandler<CompositeDialogBox>
See Also:
CloseHandler.onClose(CloseEvent)

onSymbols

public void onSymbols(boolean show)
Either shows the symbol picker dialog or inserts the chosen symbol depending in the given flag.

Parameters:
show - whether to show the symbol picker or insert the chosen symbol.


Copyright © 2004-2013 XWiki. All Rights Reserved.