forked from kennytilton/qooxlisp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
group-box.lisp
32 lines (24 loc) · 928 Bytes
/
group-box.lisp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
(in-package :qooxlisp)
;;; --- group boxes ------------------
(defmd qx-group-box (qooxlisp-layouter)
(qx-class "qx.ui.groupbox.GroupBox" :allocation :class :cell nil)
legend)
(defmethod qx-configurations append ((self qx-group-box))
(nconc
(cfg legend)))
;;;(defmethod qx-configurations append ((self qx-group-box))
;;; )
(defmd qx-check-group-box (qx-group-box)
(qx-class "qx.ui.groupbox.CheckGroupBox" :allocation :class :cell nil)
value
(onchangevalue (lambda (self req)
(print :onchangevalue-fires)
(let ((nv (req-val req "value")))
(setf (^value) (cvtjs nv))))))
(defmethod qx-configurations append ((self qx-check-group-box))
(nconc
(cfg value)))
(defobserver value ((self qx-check-group-box))
(with-integrity (:client `(:post-make-qx ,self))
(qxfmt "clDict[~a].setValue(~a);"
(oid self) (if new-value "true" "false"))))