scenebuilder icon indicating copy to clipboard operation
scenebuilder copied to clipboard

DRAFT: MigPane integration & support improved for custom components.

Open dokshinit opened this issue 6 years ago • 5 comments

Integration for MigPane layout is implemented:

  • MigPane component is added to the list of built-in containers.
  • Properties for layout and child constraints are added to the inspector panel.

Support for custom components is improved:

  • Correct interaction is provided for custom components that are context-oriented and not inherited from Control.
  • The propagation of the static property relevance is provided to the descendants of the target container class.

dokshinit avatar Apr 12 '19 11:04 dokshinit

@dokshinit would you retrofit this PR to work with SB16? Its quite a while pending and, I think it could be a good thing.

@abhinayagarwal What do you think?

Oliver-Loeffler avatar Sep 01 '21 16:09 Oliver-Loeffler

MigPane is not a core control of JavaFX which make me hesitant to bake it into Scene Builder.

abhinayagarwal avatar Sep 02 '21 07:09 abhinayagarwal

Okay, this is an important point to be mentioned in CONTRIBUTING.md.

I understand this, as when issues with such components occur, the place to start an issue is most likely not Scene Builder at Github. There are a few options I see.

  • not use external controls at all - with having a statement on that in contribution rules
  • provide external components under some restrictions and rules, such the handling of issues is clarified etc.
  • update MigPane so that it integrates well as an external control in scene builder, so that it can be use via existing SceneBuilder repositories - this would have the advantage, that also newer or older versions can be used.

Oliver-Loeffler avatar Sep 03 '21 08:09 Oliver-Loeffler

@AlmasB If the guideline is to not include external libraries in Scene Builder as of now, we should review this request to check if certain parts are beneficial for Scene Builder and close this. Nevertheless, this is a candidate for a potential plugins project.

As I was not able to find this here (Wiki), we possibly could add a wiki page describing, what is needed to make external controls work well with Scene Builder and FXML in terms of editing and preview. @abhinayagarwal has a nice blog post for that.

Oliver-Loeffler avatar Jan 11 '22 19:01 Oliver-Loeffler

As this is external to JavaFX core, it shouldn't go into app or kit. This is indeed a good candidate for the later plugins module, which is why this is left as DRAFT until then.

AlmasB avatar Jan 13 '22 10:01 AlmasB