(create-handler-context ctx onscreen-component)
(get-scrollable-view c)
For views that are added to a JScrollPane by default, this will get the original view from the scroll pane if c is a scroll pane. Else, return c.
For views that are added to a JScrollPane by default, this will get the original view from the scroll pane if c is a scroll pane. Else, return c.
(on-change c ctx change-handler)
(on-click c ctx click-handler)
(on-component-hidden c ctx handler)
(on-component-resize c ctx component-resize-handler)
(on-mouse-wheel-moved c ctx wheel-moved-handler)
(on-property-change c ctx property-change-handler)
(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.
(on-text-change c ctx text-change-handler)
(redraw-onscreen-component c)
(retroact-initiated?)
This only works sometimes in some cases. It needs to be refined. See comments for retroact-initiated var.
This only works sometimes in some cases. It needs to be refined. See comments for retroact-initiated var.
(run-on-toolkit-thread f & args)
(set-column-names c ctx column-names)
(set-columns c ctx num-columns)
(set-combo-box-data c ctx data)
(set-editable c ctx editable)
(set-foreground c ctx color)
(set-height c ctx height)
(set-on-close c ctx action)
(set-opaque c ctx opaque)
(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-row-selection-interval c ctx [start end])
(set-table-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-text text-component ctx text)
(show-card c ctx card-name)
Shows card of container c when CardLayout is being used.
Shows card of container c when CardLayout is being used.
(text-changed? old-text new-text)
(update-client-properties c ctx properties)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close