public class HistoryModel
extends java.lang.Object
Constructor and Description |
---|
HistoryModel(java.lang.String name)
Creates a new history list.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public HistoryModel(java.lang.String name)
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 nameSubmit a bug : syd@jpicedt.org