|
JComponentPack 1.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HistoryModel
| Method Summary | |
|---|---|
void |
add(Object o)
Adds a item to this model. |
void |
addChangeListener(ChangeListener l)
Adds the listener. |
Object |
current()
Returns current object. |
Object |
get(int index)
Returns the item at the specified index. |
int |
getIndex()
Returns the index of current item. |
boolean |
hasNext()
Determines the model has next item. |
boolean |
hasPrevious()
Determines the model has previous item. |
boolean |
isEmpty()
Determines the model is empty. |
void |
removeChangeListener(ChangeListener l)
Removes the listener. |
void |
setIndex(int index)
Sets the current index to the specifed index. |
int |
size()
Returns the size of this model. |
| Method Detail |
|---|
Object current()
throws NoSuchElementException
NoSuchElementExceptionboolean isEmpty()
boolean hasNext()
boolean hasPrevious()
int size()
Object get(int index)
throws IndexOutOfBoundsException
index - the index
IndexOutOfBoundsExceptionvoid add(Object o)
o will become current item.
add - a itemint getIndex()
setIndex(int)
void setIndex(int index)
throws IndexOutOfBoundsException
index - the index
IndexOutOfBoundsExceptiongetIndex()void addChangeListener(ChangeListener l)
l - the listenervoid removeChangeListener(ChangeListener l)
l - the listener
|
JComponentPack 1.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||