|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.gjt.sp.jedit.gui.HistoryModel
A history list. One history list can be used by several history text fields.
Constructor Summary | |
HistoryModel(java.lang.String name)
Creates a new history list. |
Method Summary | |
void |
addItem(java.lang.String text)
Adds an item to the end of this history list, trimming the list to the maximum number of items if necessary. |
java.lang.String |
getItem(int index)
Returns an item from the history list. |
static HistoryModel |
getModel(java.lang.String name)
Returns a named model. |
java.lang.String |
getName()
Returns the name of this history list. |
int |
getSize()
Returns the number of elements in this history list. |
static void |
loadHistory(java.io.File file)
Loads the history from the specified file. |
static void |
saveHistory(java.io.File file)
Saves the history to the specified file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HistoryModel(java.lang.String name)
Method Detail |
public void addItem(java.lang.String text)
text
- The itempublic java.lang.String getItem(int index)
index
- The indexpublic int getSize()
public java.lang.String getName()
public static HistoryModel getModel(java.lang.String name)
name
- The model namepublic static void loadHistory(java.io.File file)
public static void saveHistory(java.io.File file)
file
- The file
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |