org.xwiki.gwt.wysiwyg.client.plugin.macro.exec
Class InsertExecutable

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.wysiwyg.client.plugin.macro.exec.InsertExecutable
All Implemented Interfaces:
Executable

public class InsertExecutable
extends org.xwiki.gwt.user.client.ui.rta.cmd.internal.InsertHTMLExecutable

Inserts a new macro in the edited document or replaces an existing one.

Version:
$Id: 92b380e2bb5929a035dd090de7b626d3b934bb78 $

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
InsertExecutable(MacroSelector selector, MacroServiceAsync macroService, Config config)
          Creates a new executable.
 
Method Summary
 boolean execute(String param)
          
 String getParameter()
          
 boolean isExecuted()
          
 
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, isEnabled
 
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

InsertExecutable

public InsertExecutable(MacroSelector selector,
                        MacroServiceAsync macroService,
                        Config config)
Creates a new executable.

Parameters:
selector - selector
macroService - macroService
config - config
Method Detail

execute

public boolean execute(String param)

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

getParameter

public String getParameter()

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

isExecuted

public boolean isExecuted()

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


Copyright © 2004-2013 XWiki. All Rights Reserved.