org.xwiki.gwt.wysiwyg.client.plugin.text.exec
Class BoldExecutable

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.InlineStyleExecutable
              extended by org.xwiki.gwt.user.client.ui.rta.cmd.internal.ToggleInlineStyleExecutable
                  extended by org.xwiki.gwt.wysiwyg.client.plugin.text.exec.BoldExecutable
All Implemented Interfaces:
Executable

public class BoldExecutable
extends org.xwiki.gwt.user.client.ui.rta.cmd.internal.ToggleInlineStyleExecutable

If there is no selection, the insertion point will set bold for subsequently typed characters. If there is a selection and all of the characters are already bold, the bold will be removed. Otherwise, all selected characters will become bold.

Version:
$Id: dd0a6a0520f2764164a0b938aaa5a52815febff6 $

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
BoldExecutable(RichTextArea rta)
          Creates a new executable of this type.
 
Method Summary
protected  boolean matchesStyle(Element inputElement)
          
 
Methods inherited from class org.xwiki.gwt.user.client.ui.rta.cmd.internal.ToggleInlineStyleExecutable
addStyle, execute, execute, isExecuted, isExecuted, matchesInheritedStyle, matchesStyle, removeStyle
 
Methods inherited from class org.xwiki.gwt.user.client.ui.rta.cmd.internal.InlineStyleExecutable
addStyle, execute, getNonEmptyTextNodes, getParameter, getParameter, getParameter, getParameter, getProperty
 
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

BoldExecutable

public BoldExecutable(RichTextArea rta)
Creates a new executable of this type.

Parameters:
rta - the execution target
Method Detail

matchesStyle

protected boolean matchesStyle(Element inputElement)

Overrides:
matchesStyle in class org.xwiki.gwt.user.client.ui.rta.cmd.internal.ToggleInlineStyleExecutable
See Also:
ToggleInlineStyleExecutable.matchesStyle(Element)


Copyright © 2004-2013 XWiki. All Rights Reserved.