|
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 | +--edu.berkeley.guir.lib.satin.command.SaveCommand
Save a Sheet to file.
This software is distributed under the Berkeley Software License.
Revisions: - SATIN-v1.0-1.0.0, Aug 24 1999, JH Created class - 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 | |
SaveCommand(Sheet s,
File f)
|
|
SaveCommand(Sheet s,
String strFileName)
Save a Sheet. |
Method Summary | |
boolean |
canRedo()
Override this method in the subclass. |
boolean |
canUndo()
Override this method in the subclass. |
String |
getPresentationName()
Override this method in the subclass. |
boolean |
isSignificant()
Although it should return true, returns false, allowing us to skip over it when trying to undo. |
void |
redo()
Override this method in the subclass. |
void |
run()
Throws a runtime exception on failure. |
void |
undo()
Override this method in the subclass. |
Methods inherited from class edu.berkeley.guir.lib.satin.command.CommandImpl |
addEdit, debug, die, disable, enable, execute, getExecutionTime, getRedoPresentationName, getUndoPresentationName, isDisabled, isEnabled, replaceEdit, setExecutionTime, setExecutionTime, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SaveCommand(Sheet s, String strFileName)
public SaveCommand(Sheet s, File f)
Method Detail |
public String getPresentationName()
CommandImpl
getPresentationName
in class CommandImpl
public boolean canRedo()
CommandImpl
canRedo
in class CommandImpl
public boolean canUndo()
CommandImpl
canUndo
in class CommandImpl
public boolean isSignificant()
isSignificant
in class CommandImpl
public void run()
run
in class CommandImpl
public void redo()
CommandImpl
redo
in class CommandImpl
public void undo()
CommandImpl
undo
in class CommandImpl
|
Copyright Information | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |