ICommand

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.ms.System.IDisposable, java.io.Closeable

public abstract class ICommand implements System.IDisposable, Closeable

Defines a command.

Constructors

Constructor Description
ICommand()

Methods

Method Description
canExecute() Defines the operator that determines whether the command can execute in its current state.
execute() Defines the method to be called when the command is invoked.
close()

ICommand()

public ICommand()

canExecute()

public abstract boolean canExecute()

Defines the operator that determines whether the command can execute in its current state.

Returns: boolean

execute()

public abstract ICommand execute()

Defines the method to be called when the command is invoked.

Returns: ICommand - Returns next command to execute. By default returns itself.

close()

public void close()