(log-window & opts)An auto-scrolling log window.
The returned widget implements the LogWindow protocol with which you can clear it, or append messages. It is thread-safe, i.e. messages logged from multiple threads won't be interleaved.
It must be wrapped in (seesaw.core/scrollable) for scrolling.
Includes a context menu with options for clearing the window and scroll lock.
Returns a sub-class of javax.swing.JTextArea so any of the options that apply to multi-line (seesaw.core/text) apply. Also supports the following additional options:
:limit Maximum number of chars to keep in the log. When this limit is reached, chars will be removed from the beginning.
:auto-scroll? Whether the window should auto-scroll. This is the programmatic hook for the context menu entry.
See: (seesaw.core/text)
An auto-scrolling log window.
The returned widget implements the LogWindow protocol with
which you can clear it, or append messages. It is thread-safe,
i.e. messages logged from multiple threads won't be interleaved.
It must be wrapped in (seesaw.core/scrollable) for scrolling.
Includes a context menu with options for clearing the window
and scroll lock.
Returns a sub-class of javax.swing.JTextArea so any of the options
that apply to multi-line (seesaw.core/text) apply. Also supports
the following additional options:
:limit Maximum number of chars to keep in the log. When this limit
is reached, chars will be removed from the beginning.
:auto-scroll? Whether the window should auto-scroll. This is the
programmatic hook for the context menu entry.
See:
(seesaw.core/text)
(logf this fmt & args)Log a formatted message to the given log-window.
Log a formatted message to the given log-window.
(clear this)Clear the contents of the log-window
Clear the contents of the log-window
(log this message)Log a message to the given log-window
Log a message to the given log-window
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 |