API for seesaw.widgets.log-window
-
Full namespace name:
seesaw.widgets.log-window
Overview
Public Variables and Functions
function
Usage: (clear this)
Clear the contents of the log-window
function
Usage: (log this message)
Log a message to the given log-window
function
Usage: (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)
function
Usage: (logf this fmt & args)
Log a formatted message to the given log-window.