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

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.user.client.ui.rta.cmd.internal.InsertHTMLExecutable
              extended by org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractInsertElementExecutable<LinkConfig,com.google.gwt.dom.client.AnchorElement>
                  extended by org.xwiki.gwt.wysiwyg.client.plugin.link.exec.CreateLinkExecutable
All Implemented Interfaces:
Executable

public class CreateLinkExecutable
extends org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractInsertElementExecutable<LinkConfig,com.google.gwt.dom.client.AnchorElement>

Creates a link by inserting the link XHTML.

Version:
$Id: CreateLinkExecutable.java 28948 2010-05-20 17:09:43Z mflorea $

Nested Class Summary
 
Nested classes/interfaces inherited from class org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractInsertElementExecutable
org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractInsertElementExecutable.AbstractConfigJSONSerializer<C>, org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractInsertElementExecutable.ConfigDOMReader<C,E extends com.google.gwt.dom.client.Element>, org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractInsertElementExecutable.ConfigDOMWriter<C,E extends com.google.gwt.dom.client.Element>, org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractInsertElementExecutable.ConfigJSONParser<C>, org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractInsertElementExecutable.ConfigJSONSerializer<C>
 
Field Summary
 
Fields inherited from class org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractInsertElementExecutable
configDOMReader, configDOMWriter, configJSONParser, configJSONSerializer
 
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
CreateLinkExecutable(RichTextArea rta)
          Creates a new executable that can be used to insert links in the specified rich text area.
 
Method Summary
protected  java.lang.String getCacheKeyPrefix()
          
protected  com.google.gwt.dom.client.AnchorElement getSelectedElement()
          
 boolean isEnabled()
          
protected  com.google.gwt.dom.client.AnchorElement newElement()
          
 
Methods inherited from class org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractInsertElementExecutable
execute, getParameter, isExecuted, write
 
Methods inherited from class org.xwiki.gwt.user.client.ui.rta.cmd.internal.InsertHTMLExecutable
execute, insertNode
 
Methods inherited from class org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractSelectionExecutable
hasValidSelection
 
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

CreateLinkExecutable

public CreateLinkExecutable(RichTextArea rta)
Creates a new executable that can be used to insert links in the specified rich text area.

Parameters:
rta - the execution target
Method Detail

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

getCacheKeyPrefix

protected java.lang.String getCacheKeyPrefix()

Specified by:
getCacheKeyPrefix in class org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractInsertElementExecutable<LinkConfig,com.google.gwt.dom.client.AnchorElement>
See Also:
AbstractInsertElementExecutable.getCacheKeyPrefix()

getSelectedElement

protected com.google.gwt.dom.client.AnchorElement getSelectedElement()

Specified by:
getSelectedElement in class org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractInsertElementExecutable<LinkConfig,com.google.gwt.dom.client.AnchorElement>
See Also:
AbstractInsertElementExecutable.getSelectedElement()

newElement

protected com.google.gwt.dom.client.AnchorElement newElement()

Specified by:
newElement in class org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractInsertElementExecutable<LinkConfig,com.google.gwt.dom.client.AnchorElement>
See Also:
AbstractInsertElementExecutable.newElement()


Copyright © 2004-2010 XWiki. All Rights Reserved.