|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jhotdraw.util.UndoableAdapter
org.jhotdraw.contrib.TextAreaTool.UndoActivity
public static class TextAreaTool.UndoActivity
Handles undo/redo for text areas
Constructor Summary | |
---|---|
TextAreaTool.UndoActivity(DrawingView newDrawingView,
java.lang.String newOriginalText)
Constructor for the UndoActivity object |
Method Summary | |
---|---|
java.lang.String |
getBackupText()
Gets the backupText attribute of the UndoActivity |
java.lang.String |
getOriginalText()
Gets the originalText attribute of the UndoActivity |
boolean |
redo()
Redo the activity |
void |
setBackupText(java.lang.String newBackupText)
Sets the backupText attribute of the UndoActivity |
void |
setOriginalText(java.lang.String newOriginalText)
Sets the originalText attribute of the UndoActivity |
boolean |
undo()
Undo the activity |
Methods inherited from class org.jhotdraw.util.UndoableAdapter |
---|
getAffectedFigures, getAffectedFiguresCount, getAffectedFiguresReversed, getDrawingView, isRedoable, isUndoable, release, setAffectedFigures, setRedoable, setUndoable |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextAreaTool.UndoActivity(DrawingView newDrawingView, java.lang.String newOriginalText)
newDrawingView
- Description of the ParameternewOriginalText
- Description of the ParameterMethod Detail |
---|
public boolean undo()
undo
in interface Undoable
undo
in class UndoableAdapter
public boolean redo()
redo
in interface Undoable
redo
in class UndoableAdapter
public void setBackupText(java.lang.String newBackupText)
newBackupText
- The new backupText valuepublic java.lang.String getBackupText()
public void setOriginalText(java.lang.String newOriginalText)
newOriginalText
- The new originalText valuepublic java.lang.String getOriginalText()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |