org.tm4j.tmnav.app .History
Inheritance Hierarchy
- java.lang.Object
- History
Method Summary | |
---|---|
void |
addEntry(java.lang.Object entry)
adds the entry after the current item
all entries which are right from the current
item will be deleted.
|
void | clear() |
java.lang.Object |
getByPosition(int ix)
returns the Object at position ix
The item at position 0 is the item that was added earliest. |
java.lang.Object |
getCurrent()
Returns the current item.
|
java.lang.Object |
getNext()
Returns the next item in the history and moves the
pointer to the current item on item further.
|
java.lang.Object | getPrevious() |
void | hasNext() |
void | hasPrevious() |
void |
setCurrent(int ix)
sets the pointer to the current entry to ix
|
void |
size()
returns the size of the stack
|
Meta Data (2)
@author
:
Christoph Froehlich, cf@folge2.de
Generic class which implements a history function
The History may be constrained to a maximum count of entries.
Entries that are added to the history beyond this maximum causes
former added entries to be kicked out.
Related Topics
Is Contained By
Is Imported By