zensols.tabres.display-results

Display a graphical table of results using Swing.

*data-limit*

dynamic

The limit of data presented in the GUI, which defaults to Integer/MAX_VALUE.

display-results

(display-results data-or-fn & {:keys [title column-names new-frame?], :or {title "Results", new-frame? false}})

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.

Keys

  • :title the title set on the (maybe new) frame
  • :column-names seq of the names of the column headers

frame-config-fn

dynamic

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.

frame-factory-fn

dynamic

A function that takes no args used to create the results frame.

orphan-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.