title: How to add children component and new attribute to custom JavaFX control?
body: <p>I want to create a new JavaFX component and use it in FXML. How can I define the possibility of usage and types of children for this component? And is there a way to create my own atrributes for this component? As example, this is what I want to get:</p>
  
  <pre><code>&lt;MyNewComponent specificAttribute="..."&gt;
     &lt;children&gt;
        &lt;SpecificChildren&gt;&lt;/SpecificChildren&gt;
     &lt;/children&gt;
  &lt;/MyNewComponent&gt;
  </code></pre>