|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.AbstractListModel org.gjt.sp.jedit.gui.HistoryModel
A history list. One history list can be used by several history text fields. Note that the list model implementation is incomplete; no events are fired when the history model changes.
Field Summary |
Fields inherited from class javax.swing.AbstractListModel |
listenerList |
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. |
void |
clear()
Removes all entries from this history model. |
java.lang.Object |
getElementAt(int index)
Returns an item from the history list. |
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()
|
static void |
propertiesChanged()
|
static void |
saveHistory()
|
Methods inherited from class javax.swing.AbstractListModel |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener |
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 java.lang.Object getElementAt(int index)
getItem(int)
and only exists so that
HistoryModel
instances can be used as list models.
index
- The indexpublic void clear()
public int getSize()
public java.lang.String getName()
public static HistoryModel getModel(java.lang.String name)
name
- The model namepublic static void loadHistory()
public static void saveHistory()
public static void propertiesChanged()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |