|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.washington.cs.supple.customization.state.History
The history maintains a list of HistoryRecords. It is a log of all modifications that were applied to the currently loaded part of the UI. Each HistoryRecord represents an action.
| Constructor Summary | |
History()
Creates a new History object which is initialized to an empty list of HistoryRecords. |
|
| Method Summary | |
void |
addHistoryRecord(HistoryRecord r)
Adds a new history record to the end of the list. |
java.util.List |
getHistoryRecords(Command command)
Returns a list of all history records that were created by a defined customization command. |
int |
getNumberOfHistoryRecords()
Returns the number of history records contained in this history. |
HistoryRecord |
popLastHistoryRecord()
Pops the last (most recent) history record from the list and returns it. |
void |
printHistory()
Prints the history to the screen. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public History()
| Method Detail |
public void addHistoryRecord(HistoryRecord r)
r - new history recordpublic java.util.List getHistoryRecords(Command command)
command - a customization command
public HistoryRecord popLastHistoryRecord()
public int getNumberOfHistoryRecords()
public void printHistory()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||