;;; -*- mode: Lisp; Syntax: Common-Lisp; -*- ;;; ;;; Copyright (c) 2009 by the authors. ;;; ;;; See LICENCE for details. (in-package :hu.dwim.presentation) ;;;;;; ;;; treeble/widget (def (component e) treeble/widget (tree/component standard/widget root-nodes/mixin columns/mixin collapsible/mixin selection/mixin) (;; TODO expander-column-index should be marked by a special column type, or something similar. this way it's very fragile... (expander-column-index 0 :type integer) (expand-nodes-by-default #t :type boolean))) (def (macro e) treeble/widget ((&rest args &key &allow-other-keys) &body root-nodes) `(make-instance 'treeble/widget ,@args :root-nodes (list ,@root-nodes))) (def method component-style-class ((self treeble/widget)) (string+ "content-border " (call-next-method))) (def render-xhtml treeble/widget (bind (((:read-only-slots root-nodes) -self-)) (with-render-style/component (-self-)