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

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

public class CollapseExecutable
extends org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractSelectionExecutable

Collapses or expands the selected macros or all the macros present in the edited document if no macros are selected.

Version:
$Id$

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
CollapseExecutable(MacroSelector selector, boolean collapse)
          Creates a new executable.
 
Method Summary
 boolean execute(String param)
          
 boolean isExecuted()
          
 
Methods inherited from class org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractSelectionExecutable
getParameter, 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

CollapseExecutable

public CollapseExecutable(MacroSelector selector,
                          boolean collapse)
Creates a new executable.

Parameters:
selector - selector
collapse - true to collapse all macros, false to expand all macros
Method Detail

execute

public boolean execute(String param)

See Also:
Executable.execute(String)

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-2012 XWiki. All Rights Reserved.