|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public static interface IOPane.History
Minimum requirements for a command line history for the input field of an IOPane. You can navigate this history step by step using the next() and previous() methods.
| 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 this history can hold. |
| Method Detail |
|---|
ActionListener getAddListener()
add(java.lang.String) the value returned
by ActionEvent.getActionCommand().
void setLength(int maxitems)
maxitems - the maximum number of itemsgetLength()int getLength()
setLength(int)void add(String item)
null
the next call to next() must return item.
item - the item to addvoid clear()
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.
null at its endString previous()
void resetPointer()
|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||