|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractList
java.util.Vector
de.mospace.swing.IOPane.VectorHistory
public static final class IOPane.VectorHistory
Default implementation of the IOPane.History interface.
| Field Summary |
|---|
| Fields inherited from class java.util.Vector |
|---|
capacityIncrement, elementCount, elementData |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
IOPane.VectorHistory()
Creates a new VectorHistory object. |
|
| Method Summary | |
|---|---|
void |
add(String item)
Adds the specified item to this history. |
void |
clear()
Removes all items from this history. |
ActionListener |
getAddListener()
Returns the ActionListener that adds items to this history. |
int |
getLength()
Returns the maximum number of items this history can hold. |
String |
next()
If there was no call to next() after the last add(java.lang.String)
this method will return the last item added to this history. |
String |
previous()
Returns the item added after the item returned by the last call to next() or previous(). |
void |
resetPointer()
Resets the current position in this history such that the next item returned by next() will be the item last added or null if no such item exists. |
void |
setLength(int maxitems)
Sets the maximum number of items in the history. |
| Methods inherited from class java.util.Vector |
|---|
add, add, addAll, addAll, addElement, capacity, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IOPane.VectorHistory()
| Method Detail |
|---|
public ActionListener getAddListener()
add(java.lang.String) the value returned
by ActionEvent.getActionCommand().
getAddListener in interface IOPane.Historypublic void setLength(int maxitems)
setLength in interface IOPane.Historymaxitems - the maximum number of itemsgetLength()public int getLength()
getLength in interface IOPane.HistorysetLength(int)public void add(String item)
add in interface IOPane.Historyitem - the item to add
NullPointerException - if item is nullpublic void clear()
clear in interface IOPane.Historyclear in interface Collectionclear in interface Listclear in class Vectorpublic String next()
add(java.lang.String)
this method will return the last item added to this history. Otherwise, it returns
the item added before the item returned by the last call to next() or
previous(). It returns null if no such item exists.
next in interface IOPane.Historynull at its endpublic String previous()
previous in interface IOPane.Historypublic void resetPointer()
resetPointer in interface IOPane.History
|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||