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

java.lang.Object
  extended by com.xpn.xwiki.wysiwyg.client.ui.cmd.internal.AbstractCommandManager
All Implemented Interfaces:
CommandManager, SourcesCommandEvents
Direct Known Subclasses:
DefaultCommandManager

public abstract class AbstractCommandManager
extends java.lang.Object
implements CommandManager


Field Summary
protected  CommandListenerCollection commandListeners
           
 
Constructor Summary
AbstractCommandManager()
           
 
Method Summary
 void addCommandListener(CommandListener listener)
          
 boolean execute(Command cmd)
          Executes a command on the current document, current selection, or the given range.
 boolean execute(Command cmd, boolean param)
          
 boolean execute(Command cmd, int param)
          
 java.lang.Boolean getBooleanValue(Command cmd)
          
 java.lang.Integer getIntegerValue(Command cmd)
          
 void removeCommandListener(CommandListener listener)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.xpn.xwiki.wysiwyg.client.ui.cmd.CommandManager
execute, getStringValue, isEnabled, isExecuted, isSupported
 

Field Detail

commandListeners

protected final CommandListenerCollection commandListeners
Constructor Detail

AbstractCommandManager

public AbstractCommandManager()
Method Detail

execute

public boolean execute(Command cmd,
                       int param)

Specified by:
execute in interface CommandManager
See Also:
CommandManager.execute(Command, int)

execute

public boolean execute(Command cmd,
                       boolean param)

Specified by:
execute in interface CommandManager
See Also:
CommandManager.execute(Command, boolean)

execute

public boolean execute(Command cmd)
Executes a command on the current document, current selection, or the given range.

Specified by:
execute in interface CommandManager
Parameters:
cmd - The command to execute.
Returns:
true if the command is successful.
See Also:
CommandManager.execute(Command)

getIntegerValue

public java.lang.Integer getIntegerValue(Command cmd)

Specified by:
getIntegerValue in interface CommandManager
See Also:
CommandManager.getIntegerValue(Command)

getBooleanValue

public java.lang.Boolean getBooleanValue(Command cmd)

Specified by:
getBooleanValue in interface CommandManager
See Also:
CommandManager.getBooleanValue(Command)

addCommandListener

public void addCommandListener(CommandListener listener)

Specified by:
addCommandListener in interface SourcesCommandEvents
See Also:
SourcesCommandEvents.addCommandListener(CommandListener)

removeCommandListener

public void removeCommandListener(CommandListener listener)

Specified by:
removeCommandListener in interface SourcesCommandEvents
See Also:
SourcesCommandEvents.removeCommandListener(CommandListener)


Copyright © 2004-2008 XWiki. All Rights Reserved.