com.xpn.xwiki.wysiwyg.client.ui.cmd.internal
Class StyleWithCssExecutable

java.lang.Object
  extended by com.xpn.xwiki.wysiwyg.client.ui.cmd.internal.AbstractExecutable
      extended by com.xpn.xwiki.wysiwyg.client.ui.cmd.internal.StyleWithCssExecutable
All Implemented Interfaces:
Executable

public class StyleWithCssExecutable
extends AbstractExecutable


Constructor Summary
StyleWithCssExecutable()
           
 
Method Summary
 boolean execute(com.google.gwt.user.client.Element target, java.lang.String parameter)
          Executes the associated Command on the specified target with the given parameter.
 java.lang.String getParameter(com.google.gwt.user.client.Element target)
           
 boolean isEnabled(com.google.gwt.user.client.Element target)
           
 boolean isExecuted(com.google.gwt.user.client.Element target)
           
 boolean isSupported(com.google.gwt.user.client.Element target)
           
 
Methods inherited from class com.xpn.xwiki.wysiwyg.client.ui.cmd.internal.AbstractExecutable
execute, getParameter, isEnabled, isExecuted, isSupported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StyleWithCssExecutable

public StyleWithCssExecutable()
Method Detail

execute

public boolean execute(com.google.gwt.user.client.Element target,
                       java.lang.String parameter)
Description copied from interface: Executable
Executes the associated Command on the specified target with the given parameter.

Parameters:
target - Execution target.
parameter - Execution parameter.
Returns:
true if execution succeeds.
See Also:
CommandManager.execute(Command, String)

getParameter

public java.lang.String getParameter(com.google.gwt.user.client.Element target)
Parameters:
target - Execution target.
Returns:
the previous execution parameter, if Executable.isExecuted(Element) returns true, null otherwise.

isEnabled

public boolean isEnabled(com.google.gwt.user.client.Element target)
Parameters:
target - Execution target.
Returns:
true if the associated Command can be executed on the current state of the given target.
See Also:
CommandManager.isEnabled(Command)

isExecuted

public boolean isExecuted(com.google.gwt.user.client.Element target)
Parameters:
target - Execution target.
Returns:
true if the associated Command has been executed on the current state of the given target.
See Also:
CommandManager.isExecuted(Command)

isSupported

public boolean isSupported(com.google.gwt.user.client.Element target)
Parameters:
target - Execution target.
Returns:
true if the associated Command is supported by the specified target.
See Also:
CommandManager.isSupported(Command)


Copyright © 2004-2008 XWiki. All Rights Reserved.