Method Summary |
|
public void | add(String item) Adds an item to the history and moves the cursor to point to the place after it.
Note: Items are not inserted if they are empty. |
public void | clear() |
public void | forwardSearch(String currentInteraction) Forward-searches the history for the next matching string. |
public String | getCurrent() Returns item in history at current position; returns "" if no current item exists. |
public String | getHistoryAsString() Returns the history as a string by concatenating each string in the vector separated by the delimiting
character. |
public String | getHistoryAsStringWithSemicolons() Returns the history as a string by concatenating each string in the vector separated by the delimiting
character. |
public OptionListener<Integer> | getHistoryOptionListener() |
public boolean | hasNext() Returns whether moveNext() would succeed right now. |
public boolean | hasPrevious() Returns whether movePrevious() would succeed right now. |
public String | lastEntry() Returns the last entry from the history. |
public void | moveEnd() Move the cursor to just past the end. |
public void | moveNext(String entry) Moves cursor forward 1, or throws exception if there is none. |
public void | movePrevious(String entry) Moves cursor back 1, or throws exception if there is none. |
public String | removeLast() Returns the last element and removes it, or returns null if the history is empty. |
public void | reverseSearch(String currentInteraction) Reverse-searches the history for the previous matching string. |
public void | setEditedEntry(String entry) Sets the edited entry to the given value. |
public void | setMaxSize(int newSize) Changes the maximum number of interactions remembered by this History. |
public int | size() Returns the number of items in this History. |
public void | writeToFile(FileSaveSelector selector) Writes this (unedited) History to the file selected in the FileSaveSelector. |
public static void | writeToFile(FileSaveSelector selector, String editedVersion) Writes this History to the file selected in the FileSaveSelector. |