You're viewing version 1.2.0 of list-model. The latest stable version of Clojure Core is 1.3.0.
1.2.0 Arrow_down_16x16



  • (list-model provider)

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/inspector.clj:125 top

(defn list-model [provider]
  (let [{:keys [nrows get-value get-label]} provider]
    (proxy [AbstractTableModel] []
      (getColumnCount [] 2)
      (getRowCount [] nrows)
      (getValueAt [rowIndex columnIndex]
         (= 0 columnIndex) (get-label rowIndex)
         (= 1 columnIndex) (print-str (get-value rowIndex)))))))
Vars in clojure.inspector/list-model: = cond defn let print-str proxy
Used in 0 other vars

Comments top

No comments for list-model. Log in to add a comment.