java - Is <children> tag useful in fxml? Should it be removed? -


intellij checkstyle indicates tag should removed, not required, in instead of

<vbox>   <children>     <hbox>         ...     </hbox>     <hbox>         ...     </hbox>   </children> </vbox> 

you can have

<vbox>   <hbox>     ...   </hbox>   <hbox>     ...   </hbox> </vbox> 

this indeed helps not having bloated code @ times, failed find reference on convention here.

this link mentions tag optional "the loader automatically add sub-elements of vbox container's "children" collection". doesn't make clear if it ok adopt removing tag code or not convention?

also, scene builder seems add these tags newly created controls, doesn't mind if remove them. not re-add them while editing such modified file.

@defaultproperty property child elements added or set when explicit property not given. see this

pane class , it's subclasses have @defaultproperty children see this ,

is children tag useful in fxml?

i think no , not

should removed?

it's depend on preference


Comments

Popular posts from this blog

javascript - Create a stacked percentage column -

Optimising Firebase database by automatically overwriting data -

javascript - Angular UI-Grid customTemplate directive causing rows to load slowly/? -