|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.jxta.impl.shell.bin.history.HistoryQueue
Field Summary | |
protected static int |
MAX_HISTORY
The maximum number of commands |
Constructor Summary | |
HistoryQueue()
Create a new history queue |
|
HistoryQueue(java.lang.String[] exclude)
Create a new history queue |
Method Summary | |
void |
addCommand(java.lang.String cmd)
Adds a new command to the queue. If the queue has already reached MAX_HISTORY, the element at index 0 is discarded. |
java.lang.String |
getCommand(int index)
Gets the command at index, if there is an element at index. |
java.lang.String |
getNextCommand()
Returns the command immediately preceeding the previous command |
java.lang.String |
getPreviousCommand()
Returns the command immediately succedding the previous command THIS needs help !! |
java.lang.String |
printHistory()
Prints the available commands to a String. |
void |
removeLastCommand()
Removes the last command added to the queue |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected static final int MAX_HISTORY
Constructor Detail |
public HistoryQueue()
public HistoryQueue(java.lang.String[] exclude)
exclude
- the commands to not add to the queue (that are the
usually Cursor up and down events )Method Detail |
public void addCommand(java.lang.String cmd)
cmd
- the command to addpublic void removeLastCommand()
public java.lang.String getNextCommand()
public java.lang.String getPreviousCommand()
public java.lang.String getCommand(int index)
public java.lang.String printHistory()
public java.lang.String toString()
|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |