Display a graphical table of results using Swing.
Display a graphical table of results using Swing.
The limit of data presented in the GUI, which defaults to [[Integer/MAX_VALUE]].
The limit of data presented in the GUI, which defaults to [[Integer/MAX_VALUE]].
(display-results
data-or-fn
&
{:keys [title column-names new-frame? add-height add-width]
:or {title "Results" new-frame? false add-height 0 add-width 0}})
Display the results of data-or-fn.
data-or-fn is a two dimension seq or a function. If the former the first dimension are the rows and the second the respective colum data. If it is a function, it takes the frame input and what it returns is returned from this function.
The function allows extra fudge pixels to add given every OS approximates the window real estate slightly differently.
true
then destroy any old frame and recreate.Display the results of **data-or-fn**. **data-or-fn** is a two dimension seq or a function. If the former the first dimension are the rows and the second the respective colum data. If it is a function, it takes the frame input and what it returns is returned from this function. The function allows extra *fudge* pixels to add given every OS approximates the window real estate slightly differently. Keys ---- * **:title** the title set on the (maybe new) frame. * **:column-names** seq of the names of the column headers. * **:new-frame?** if `true` then destroy any old frame and recreate. * **:add-height** the height in pixels to add to the window. * **:add-width** the width in pixels to add to the window.
A function that configures a frame either after being created or orphaned. It takes three arguments: the frame, the title to set if not nil, and a boolean if it is being orphaned.
A function that configures a frame either after being created or orphaned. It takes three arguments: the frame, the title to set if not nil, and a boolean if it is being orphaned.
A function that takes no args used to create the results frame.
A function that takes no args used to create the results frame.
(orphan-frame)
(orphan-frame title)
Making a results frame orphaned means it will detach from any new result
sets on any subsquent calls to display-results
and dispose all resources
next time the frame is closed.
Making a results frame orphaned means it will detach from any new result sets on any subsquent calls to [[display-results]] and dispose all resources next time the frame is closed.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close