(assoc-view onscreen-component view)
(get-view onscreen-component)
(on-set-value-at c ctx set-value-at-handler)
The set-value-at-handler has args [app-ref old-item new-value row col] where row and col are the row and column of the table where the user performed an edit on a the cell at row and column, old-item is the item represented at that row (this is in domain space and may be a map, vec, set, or any arbitrary data structure - maps are typical), and new-value is the value of the cell after the user completed the edit. The set-value-at-handler must determine where in the item data structure the new-value must be set and how to perform that set in app-ref. This is, in a sense the inverse of the row-fn in set-row-fn. See examples.todo for an example handler.
The set-value-at-handler has args [app-ref old-item new-value row col] where row and col are the row and column of the table where the user performed an edit on a the cell at row and column, old-item is the item represented at that row (this is in domain space and may be a map, vec, set, or any arbitrary data structure - maps are typical), and new-value is the value of the cell after the user completed the edit. The set-value-at-handler must determine where in the item data structure the new-value must be set and how to perform that set in app-ref. This is, in a sense the inverse of the row-fn in set-row-fn. See examples.todo for an example handler.
(redraw-onscreen-component c)
(reify-action-listener action-handler)
(reify-document-listener-to-text-change-listener text-change-handler)
(reify-list-selection-listener ctx selection-change-handler)
(reify-tree-list-selection-listener ctx table selection-change-handler)
(set-column-names c ctx column-names)
(set-data c ctx data)
Set the data for a JTable in the table model. The data is a vector of arbitrary objects, one per row. Use set-row-fn to define how to translate those objects into columns.
Set the data for a JTable in the table model. The data is a vector of arbitrary objects, one per row. Use set-row-fn to define how to translate those objects into columns.
(set-height c ctx height)
(set-row-editable-fn c ctx row-editable-fn)
Similar to set-row-fn but returns a vec of true or false representing whether each column in the row is editable. A value of true means the column for this row is editable. The row-editable-fn takes a single arg, which is the nth element of the table model data vector representing the nth row.
Similar to set-row-fn but returns a vec of true or false representing whether each column in the row is editable. A value of true means the column for this row is editable. The row-editable-fn takes a single arg, which is the nth element of the table model data vector representing the nth row.
(set-row-fn c ctx row-fn)
Set the row fn on the table model of a JTable. The row fn takes the nth element in the data vector and returns a vector representing the columns in that row.
Set the row fn on the table model of a JTable. The row fn takes the nth element in the data vector and returns a vector representing the columns in that row.
(set-width c ctx width)
(text-changed? old-text new-text)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close