This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-04-11
Channels
- # announcements (3)
- # asami (4)
- # babashka (79)
- # babashka-sci-dev (47)
- # beginners (97)
- # biff (12)
- # calva (7)
- # clj-commons (3)
- # clj-kondo (22)
- # clj-on-windows (13)
- # cljdoc (31)
- # cljfx (2)
- # cljs-dev (1)
- # clojure (85)
- # clojure-austin (4)
- # clojure-dev (12)
- # clojure-europe (15)
- # clojure-italy (8)
- # clojure-nl (4)
- # clojure-uk (4)
- # community-development (19)
- # conjure (3)
- # core-typed (40)
- # cursive (9)
- # datahike (21)
- # datomic (1)
- # emacs (7)
- # exercism (2)
- # graalvm (20)
- # graphql (1)
- # honeysql (16)
- # jobs (1)
- # malli (2)
- # off-topic (3)
- # pathom (28)
- # pedestal (3)
- # polylith (7)
- # reitit (14)
- # releases (1)
- # remote-jobs (1)
- # rewrite-clj (4)
- # shadow-cljs (21)
- # sql (21)
- # testing (8)
- # tools-deps (23)
- # vscode (8)
- # xtdb (38)
I'm going to be manipulating (appending some text within) a control "behind the scenes" and I'm trying to figure out the nicest way to do this. For more detail, it will be an indirect chain where a user clicks on something, I read a file, and some text appears within a component the user was not directly interacting with.
The answer in issue 41 here gives some hints: https://github.com/cljfx/cljfx/issues/41#issuecomment-640097217
Basically, I can snag a reference to the control using :on-created
. Maybe I could try to (somehow) get a reference to the sibling component that is being clicked, and make the reference snagged in :on-created
a listener...I'm not sure if that's feasible in cljfx or not. Tempted to just shove that snagged reference in an atom, but wondering if there is a cleaner way.
FYI, this would be a text area (basically, it's actually a wrapped third-party https://javadoc.io/static/org.fxmisc.richtext/richtextfx/0.10.9/org/fxmisc/richtext/CodeArea.html) wanting to listen to the selection changes of a tree view, whereupon specific methods of this third party text area would be called.