org.xwiki.gwt.wysiwyg.client.plugin.separator.exec
Class InsertHRExecutable

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.InsertBlockHTMLExecutable
                  extended by org.xwiki.gwt.wysiwyg.client.plugin.separator.exec.InsertHRExecutable
All Implemented Interfaces:
Executable

public class InsertHRExecutable
extends org.xwiki.gwt.user.client.ui.rta.cmd.internal.InsertBlockHTMLExecutable

Inserts a horizontal rule in place of the current selection. It should be noted that hr, being a block level element, must be added under a flow container. Because of this, we split the DOM tree up to the nearest flow container and insert the hr element between the two parts.

Version:
$Id: 65c21138e1ad15782746a173bb8f43ffedfa0f5b $

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
InsertHRExecutable(RichTextArea rta)
          Creates a new executable that can be used to insert a horizontal rule in the specified rich text area.
 
Method Summary
 boolean execute(String param)
          
 
Methods inherited from class org.xwiki.gwt.user.client.ui.rta.cmd.internal.InsertBlockHTMLExecutable
insertNode
 
Methods inherited from class org.xwiki.gwt.user.client.ui.rta.cmd.internal.InsertHTMLExecutable
execute
 
Methods inherited from class org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractSelectionExecutable
getParameter, hasValidSelection, isEnabled, 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

InsertHRExecutable

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

Parameters:
rta - the execution target
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)


Copyright © 2004–2014 XWiki. All rights reserved.