Proposal: Avoiding nested views with a merge tag

Yennick Trevels yennick.trevels at gmail.com
Mon Dec 17 14:27:57 PST 2012


Yes, but it would be even better if you can have this in your host.fxml
file:
<VBox>
 <TextField/>
 <ComboBox/>
 <mynamespace:MoreControls />
 <mynamespace:EvenMoreControls/>
</VBox>



On Mon, Dec 17, 2012 at 11:16 PM, Knut Arne Vedaa <
knut.arne.vedaa at broadpark.no> wrote:

> Ok, so more like:
>
> host.fxml:
>
> <VBox>
>  <TextField/>
>  <ComboBox/>
>  <fx:merge source="morecontrols.fxml"/>
>  <fx:merge source="evenmorecontrols.fxml"**/>
> </VBox>
>
> morecontrols.fxml:
>
> <fx:merge>
>  <Label/>
>  <TabPane/>
> </fx:merge>
>
> evenmorecontrols.fxml:
>
> <fx:merge>
>  <ListView/>
> </fx:merge>
>
> Ending up as:
>
> <VBox>
>  <TextField/>
>  <ComboBox/>
>  <Label/>
>  <TabPane/>
>  <ListView/>
> </VBox>
>
> (The fx-include tag could possibly be re-used for this, instead of
> fx-merge.)
>
>
> Knut Arne Vedaa
>


More information about the openjfx-dev mailing list