An action list box stores a list of actions the user can made. Each action runs within its own thread.
To create an action list:
TerminalSize size = new TerminalSize(14, 10);
ActionListBox actionListBox = new ActionListBox(size);
To add an action to the ActionListBox:
actionListBox.addItem(itemText, new Runnable() {
@Override
public void run() {
// Code to run when action activated
}
});

Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |