question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Restructure Builders.kt and Nodes.kt into Controls.kt, ItemControls.kt and Layouts.kt

See original GitHub issue

For a while I’ve been bothered by the structure of Builders.kt vs Nodes.kt. We have stuff in Builders.kt that are not builders, but rather just extension functions that probably belong in Nodes.kt. (Example: TableView<S>.column - this does not change the hierarchy, and is not an extension of Pane).

Maybe it’s time to consider organising this differently. We could create one file for List/Table-like controls, and include both builders and extensions for these controls in that file. Similarly, all text based builders and extensions like TextField and TextArea could go into one file etc.

This will make it much easier to see what’s available (and what’s missing) for a certain control or group of controls.

I’m still very fond of keeping everything in the tornadofx package, so you still only need a single import to work with the whole framework.

This change would not affect usage of the framework in any way.

Thoughts or other suggestions?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:25 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
hastebrotcommented, Mar 29, 2016

Single package framework sounds good. I also think the files should be restructured a bit. Controls.kt and Layouts.kt seem plausible. There could be ItemControls instead of ListControls for all that have items (ComboBox, ListView, TableView, …). Unfortunately TreeView doesn’t fit into the item concept.

BTW: I started using asyncItems(), observable() and column(). Very useful additions. 👍

0reactions
edvincommented, May 4, 2016

Well, actually - as functionality grows, maybe a better way to structure this will present itself. There might become a need for a more fine grained structure. For now however, these three files are quite manageable. If anyone wants to group functions or add some comments that very welcome!

I’ll close this ticket as the main objective was achieved. @ronsmits will probably have some comments with regards to issue https://github.com/edvin/tornadofx/issues/100 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

AUTHORITY THIS PAGE IS UNCLASSIFIED - DTIC
This document describes an approach for achieving computer integrated manu- facturing in the 1995 aerospace enterprise using the concepts ...
Read more >
US6185683B1 - Trusted and secure techniques, systems and ...
Documents and other items can be delivered electronically from sender to recipient with a level of trustedness approaching or exceeding that provided by...
Read more >
Untitled
Smart words to use in a conversation, Lagos de masuria, ... Plex on apple tv 2, Kt-909f, Normas de protocolo y etiqueta, Fiber...
Read more >
https://huggingface.co/jeniya/BERTOverflow/commit/...
... +Rec +confused +Node +keyboard +white +##ssentially +twice +##eg +templates ... +Org +futures +Dimension +##hl +startDate +avd +207 +heatmap +##kt +reck ...
Read more >
Full text of "magazine :: Mini-Micro Systems :: 198410"
Switch-selectable XON/XOFF and CTS flow control and built-in diagnostics. ... Kimtron KT-7 Wyse 50 Qume 102 TeleVideo 925/925E Yes No No No Yes...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found