|
UC Berkeley Group for User Interface Research Updated November 17, 2000 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--edu.berkeley.guir.lib.satin.command.CommandImpl
A simple implementation of Command.
This software is distributed under the Berkeley Software License.
Revisions: - SATIN-v1.0-1.0.0, Jun 22 1999, JH
Created class
- SATIN-v1.0-1.1.0, Dec 09 1999, JH
Updated CommandImpl for SATINv2.
Modified the enable/disable to be a counting semaphore.
Renamed doit() to run().
Made commands that can execute() themselves.
- SATIN-v2.1-1.0.0, Aug 11 2000, JH
Touched for SATIN release
| Inner classes inherited from class edu.berkeley.guir.lib.satin.SatinConstants |
SatinConstants.ObjectPoolAffineTransform, SatinConstants.ObjectPoolPoint2D, SatinConstants.ObjectPoolPolygon2D, SatinConstants.ObjectPoolRectangle2D, SatinConstants.ObjectPoolStringBuffer, SatinConstants.UniqueAffineTransform, SatinConstants.UniquePoint2D, SatinConstants.UniquePolygon2D, SatinConstants.UniqueRectangle2D |
| Constructor Summary | |
CommandImpl()
|
|
| Method Summary | |
boolean |
addEdit(UndoableEdit anEdit)
|
boolean |
canRedo()
Override this method in the subclass. |
boolean |
canUndo()
Override this method in the subclass. |
static String |
debug()
|
void |
die()
Override this method in the subclass. |
void |
disable()
This method is implemented for all subclasses in the superclass. |
void |
enable()
This method is implemented for all subclasses in the superclass. |
void |
execute()
Checks if the command is enabled or not, and executes the command if it is enabled, setting the execution time in the process. |
long |
getExecutionTime()
Get the system time this command was first executed. |
String |
getPresentationName()
Override this method in the subclass. |
String |
getRedoPresentationName()
You don't have to override this method in the subclass. |
String |
getUndoPresentationName()
You don't have to override this method in the subclass. |
boolean |
isDisabled()
This method is implemented for all subclasses in the superclass. |
boolean |
isEnabled()
This method is implemented for all subclasses in the superclass. |
boolean |
isSignificant()
Override this method in the subclass. |
void |
redo()
Override this method in the subclass. |
boolean |
replaceEdit(UndoableEdit anEdit)
|
protected abstract void |
run()
This method is called by execute() if the command is enabled. |
void |
setExecutionTime()
Set the time this command was executed to the current time. |
void |
setExecutionTime(long l)
Set the time this command was executed to the specified time. |
String |
toString()
|
void |
undo()
Override this method in the subclass. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CommandImpl()
| Method Detail |
public final boolean isEnabled()
isEnabled in interface Commandedu.berkeley.guir.lib.satin.command.Commandpublic final boolean isDisabled()
isDisabled in interface Commandedu.berkeley.guir.lib.satin.command.Commandpublic void enable()
enable in interface Commandpublic void disable()
disable in interface Commandpublic boolean addEdit(UndoableEdit anEdit)
addEdit in interface UndoableEditpublic boolean replaceEdit(UndoableEdit anEdit)
replaceEdit in interface UndoableEditpublic void setExecutionTime()
CommandsetExecutionTime in interface Commandpublic void setExecutionTime(long l)
CommandsetExecutionTime in interface Commandedu.berkeley.guir.lib.satin.command.Commandl - is the time to set the execution time to.public long getExecutionTime()
CommandgetExecutionTime in interface Commandedu.berkeley.guir.lib.satin.command.Commandpublic String getPresentationName()
getPresentationName in interface UndoableEditpublic String getRedoPresentationName()
getRedoPresentationName in interface UndoableEditpublic String getUndoPresentationName()
getUndoPresentationName in interface UndoableEditpublic boolean canRedo()
canRedo in interface UndoableEditpublic boolean canUndo()
canUndo in interface UndoableEditpublic boolean isSignificant()
isSignificant in interface UndoableEditpublic void redo()
redo in interface UndoableEditpublic void undo()
undo in interface UndoableEditpublic void die()
die in interface UndoableEditpublic final void execute()
execute in interface CommandCommand.execute()protected abstract void run()
public String toString()
toString in class Objectpublic static String debug()
|
Copyright Information | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||