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