(create-jtable {:keys [view]})(get-table-header c ctx)(safe-table-model-set table f attribute)(safe-table-set table f attribute)(set-column-selection-allowed c ctx column-selection-allowed)(set-editing-cell c ctx editing-cell)Set the editing cell for a JTable. Accepts [row col] or nil to stop editing. This will call editCellAt on the JTable to start editing the specified cell.
Set the editing cell for a JTable. Accepts [row col] or nil to stop editing. This will call editCellAt on the JTable to start editing the specified cell.
(set-row-selection-allowed c ctx row-selection-allowed)(set-table-auto-resize-mode c ctx mode)Set JTable auto-resize mode. Accepts JTable/AUTO_RESIZE_ constants.
Set JTable auto-resize mode. Accepts JTable/AUTO_RESIZE_ constants.
(set-table-columns c ctx columns)(set-table-get-item-at-fn c ctx table-get-item-at-fn)(set-table-header c ctx table-header)This is a "component" setter. It takes an actual JTableHeader.
This is a "component" setter. It takes an actual JTableHeader.
(set-table-intercell-spacing c ctx spacing)Set JTable intercell spacing. Accepts one or two integers:
Set JTable intercell spacing. Accepts one or two integers: - single integer N: applies to both horizontal and vertical spacing - two integers [h v]: horizontal then vertical spacing
(set-table-render-fn c ctx table-render-fn)Set the render function for a JTable. This function customizes how cells are rendered. Analogous to :tree-render-fn for JTree.
Set the render function for a JTable. This function customizes how cells are rendered. Analogous to :tree-render-fn for JTree.
(set-table-selection-fn c ctx table-selection-fn)Set the selection function for a JTable. This function will be called when table selection changes. Analogous to :tree-selection-fn for JTree.
Set the selection function for a JTable. This function will be called when table selection changes. Analogous to :tree-selection-fn for JTree.
(set-table-set-value-at-fn c ctx set-value-at-fn)Set the function that handles cell value changes when cells are edited. This provides a way to handle cell editing events.
Set the function that handles cell value changes when cells are edited. This provides a way to handle cell editing events.
(set-table-sort c ctx sort-spec)Configure sorting on a JTable using TableRowSorter.
Accepts either a single pair [col order] or a sequence of such pairs.
order may be a javax.swing.SortOrder or a keyword one of
:asc/:ascending, :desc/:descending, or :unsorted.
Examples: {:table-sort [0 SortOrder/ASCENDING]} {:table-sort [[2 :desc] [0 :asc]]} ;; secondary sort Passing nil clears sorting.
Configure sorting on a JTable using TableRowSorter.
Accepts either a single pair [col order] or a sequence of such pairs.
`order` may be a javax.swing.SortOrder or a keyword one of
:asc/:ascending, :desc/:descending, or :unsorted.
Examples:
{:table-sort [0 SortOrder/ASCENDING]}
{:table-sort [[2 :desc] [0 :asc]]} ;; secondary sort
Passing nil clears sorting.cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |