Proposal: Avoiding nested views with a merge tag

Knut Arne Vedaa knut.arne.vedaa at broadpark.no
Mon Dec 17 10:57:43 PST 2012


Wild suggestion:

host.fxml:

<VBox fx:include="morecontrols.fxml">
  <TextField/>
  <ComboBox/>
</VBox>

morecontrols.fxml:

<fx:root type="VBox">
   <Label/>
</fx:root>

I.e. a kind of "mixin" or "partial nodes" syntax. Parser should ensure 
that the root type (or "self type") of morecontrols.fxml is (in this 
case) VBox.

So what you end up with is:

<VBox>
  <TextField/>
  <ComboBox/>
  <Label/>
</VBox>


Knut Arne Vedaa


More information about the openjfx-dev mailing list