org.xwiki.gwt.wysiwyg.client.plugin.link.exec
Class UnlinkExecutable
java.lang.Object
org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractRichTextAreaExecutable
org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractSelectionExecutable
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 $
|
Constructor Summary |
UnlinkExecutable(RichTextArea rta)
Creates a new executable that can be used to remove links from the specified rich text area. |
| Methods inherited from class org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractSelectionExecutable |
getParameter, hasValidSelection, isExecuted |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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-2013 XWiki. All Rights Reserved.