org.xwiki.gwt.wysiwyg.client.plugin.link
Class EmptyLinkFilter

java.lang.Object
  extended by org.xwiki.gwt.wysiwyg.client.plugin.link.EmptyLinkFilter
All Implemented Interfaces:
CommandListener

public class EmptyLinkFilter
extends java.lang.Object
implements CommandListener

Client side empty link cleaner, to delete all links without content before the content is submitted. This is to prevent the links which are not visible in the wysiwyg to get submitted as wysiwyg content.

Version:
$Id: EmptyLinkFilter.java 31935 2010-10-18 15:13:16Z mflorea $

Constructor Summary
EmptyLinkFilter(RichTextArea rta)
          Creates an empty link filter to handle links on the passed rich text area.
 
Method Summary
 boolean onBeforeCommand(CommandManager sender, Command command, java.lang.String param)
          
 void onCommand(CommandManager sender, Command command, java.lang.String param)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyLinkFilter

public EmptyLinkFilter(RichTextArea rta)
Creates an empty link filter to handle links on the passed rich text area.

Parameters:
rta - the RichTextArea to handle empty links for
Method Detail

onBeforeCommand

public boolean onBeforeCommand(CommandManager sender,
                               Command command,
                               java.lang.String param)

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

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)


Copyright © 2004-2011 XWiki. All Rights Reserved.