問題タブ [tornadofx]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
kotlin - JavaFX プロパティを公開しないバッキング オブジェクトが変更された場合の TornadoFX ItemViewModel の更新
次のコードがあります
ボタンをクリックすると変更されますmodel.itemProperty
が、変更されmodel.status
ません。呼び出しはうまくいきますが、バッキングプロパティが変更された後に更新model.rollback()
を取得するのは適切な方法ではないと思います。に新しいオブジェクトを割り当てずに更新 (および結果として対応するビュー) するItemViewModel
TornadoFX の方法はありますか? UserModel
User
model.item
javafx - TornadoFX: ラベル テキストが更新されない
私が現在経験している問題の 1 つは、動的にロードされた に実装されている Label のテキストを変更できないように見えることですAnchorPane
。これは、コントローラーと JavaFX/TornadoFX の動作に関連している可能性があると思いますが、自分が間違っていることを見つけることができないようです。
問題自体はこのクラスで発生し、showSystemDetails()
メソッドで発生します。サイドバーの「システムの詳細」ボタンを押すと、ラベルが必要な値に更新されると予想されますが、これは何らかの理由で発生しません。
私が間違っていることを指摘したり、建設的な批判を提供したりしてください。プロジェクトはまだ完全に開発中であるため、多くのことがまだごちゃごちゃ/壊れています。
kotlin - Launching a TornadoFX App from (an existing) Kotlin program
This is what I do right now. Is there a better? more succinct way?
Is it safe to run multiple different TornadoFX apps from within the same kotlin program this way? I read something somewhere about a global variable so I'm wondering if only 1 is allowed/recommended.