org.xwiki.gwt.wysiwyg.client.plugin.separator.exec
Class InsertHRExecutable
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.user.client.ui.rta.cmd.internal.InsertHTMLExecutable
org.xwiki.gwt.user.client.ui.rta.cmd.internal.InsertBlockHTMLExecutable
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 $
|
Constructor Summary |
InsertHRExecutable(RichTextArea rta)
Creates a new executable that can be used to insert a horizontal rule in the specified rich text area. |
| 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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-2013 XWiki. All Rights Reserved.