org.xwiki.gwt.wysiwyg.client.plugin.link.exec
Class UnlinkExecutable

java.lang.Object
  extended by org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractRichTextAreaExecutable
      extended by org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractSelectionExecutable
          extended by org.xwiki.gwt.wysiwyg.client.plugin.link.exec.UnlinkExecutable
All Implemented Interfaces:
Executable

public class UnlinkExecutable
extends org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractSelectionExecutable

Executable for the unlink command, to remove a link in the wiki document. The command will be enabled whenever a link is selected, according to the algorithm described by {@link LinkExecutableUtils#getSelectedAnchor(RichTextArea).

Version:
$Id: 515ebc491e68f20d510021d1dd9904d0346dafa0 $

Field Summary
 
Fields inherited from class org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractSelectionExecutable
cache, domUtils
 
Fields inherited from class org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractRichTextAreaExecutable
rta
 
Constructor Summary
UnlinkExecutable(RichTextArea rta)
          Creates a new executable that can be used to remove links from the specified rich text area.
 
Method Summary
 boolean execute(String param)
          
 boolean isEnabled()
          
 
Methods inherited from class org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractSelectionExecutable
getParameter, hasValidSelection, isExecuted
 
Methods inherited from class org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractRichTextAreaExecutable
isSupported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnlinkExecutable

public UnlinkExecutable(RichTextArea rta)
Creates a new executable that can be used to remove links from the specified rich text area.

Parameters:
rta - the execution target
Method Detail

execute

public boolean execute(String param)

See Also:
Executable.execute(String)

isEnabled

public boolean isEnabled()

Specified by:
isEnabled in interface Executable
Overrides:
isEnabled in class org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractSelectionExecutable
See Also:
AbstractSelectionExecutable.isEnabled()


Copyright © 2004–2014 XWiki. All rights reserved.