|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.artenum.rosetta.implementation.JSR270HistoryManager
public class JSR270HistoryManager
History Manager for JSR270 implementation
| Constructor Summary | |
|---|---|
JSR270HistoryManager()
|
|
| Method Summary | |
|---|---|
void |
addEntry(String newEntry)
Add a line or a block in history |
void |
display()
Display all history entries with line numbers |
String |
getEntry(int entryIndex)
Gets an entry in the history by giving its number |
String |
getNextEntry(String beg)
Gets next entry in the history by giving its beginning |
String |
getPreviousEntry(String beg)
Gets previous entry in the history by giving its beginning |
String |
getTmpEntry()
Gets the currently edited command line before erasing it |
boolean |
isInHistory()
Are we browsing history ? |
void |
load()
Load history from a file |
void |
reset()
Clears the history |
void |
save()
Save history to a file |
void |
setInHistory(boolean status)
Sets the flag indicating if we are browsing history |
void |
setMaxEntryNumber(int numberOfEntries)
Set the maximum number of entries (lines/blocks) allowed in the history |
void |
setTmpEntry(String currentCommandLine)
Saves the currently edited command line before erasing it |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JSR270HistoryManager()
| Method Detail |
|---|
public void addEntry(String newEntry)
HistoryManager
addEntry in interface HistoryManagernewEntry - the entry to be added at the end of the historypublic void display()
HistoryManager
display in interface HistoryManagerpublic String getEntry(int entryIndex)
HistoryManager
getEntry in interface HistoryManagerentryIndex - the index of the entry in the history
public String getNextEntry(String beg)
HistoryManager
getNextEntry in interface HistoryManagerbeg - the beginning of the entry (can be empty)
public String getPreviousEntry(String beg)
HistoryManager
getPreviousEntry in interface HistoryManagerbeg - the beginning of the entry (can be empty)
public String getTmpEntry()
HistoryManager
getTmpEntry in interface HistoryManagerpublic boolean isInHistory()
HistoryManager
isInHistory in interface HistoryManagerpublic void load()
HistoryManager
load in interface HistoryManagerpublic void reset()
HistoryManager
reset in interface HistoryManagerpublic void save()
HistoryManager
save in interface HistoryManagerpublic void setInHistory(boolean status)
HistoryManager
setInHistory in interface HistoryManagerstatus - is true if we begin to browse the history, false if we stop browsingpublic void setMaxEntryNumber(int numberOfEntries)
HistoryManager
setMaxEntryNumber in interface HistoryManagernumberOfEntries - the number of entries to setpublic void setTmpEntry(String currentCommandLine)
HistoryManager
setTmpEntry in interface HistoryManagercurrentCommandLine - the text currently edited by the user
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||