Liking cljdoc? Tell your friends :D

seesaw.widgets.log-window


log-windowclj

(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)
sourceraw docstring

logfclj

(logf this fmt & args)

Log a formatted message to the given log-window.

Log a formatted message to the given log-window.
sourceraw docstring

LogWindowcljprotocol

clearclj

(clear this)

Clear the contents of the log-window

Clear the contents of the log-window

logclj

(log this message)

Log a message to the given log-window

Log a message to the given log-window
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close