title: How to pass variable from controller code to fxml view?
body: <p>I have custom component with few labels and few textFields. I need to instantiate it 3 times, but each version must have all labels prefixed with different String.</p>
  
  <p>Fragment of my component fxml:</p>
  
  <pre><code>&lt;Label text="inclusions type:"/&gt;
  &lt;Label text="inclusions size:" GridPane.rowIndex="1"/&gt;
  &lt;Label text="inclusions number:" GridPane.rowIndex="2"/&gt;
  </code></pre>
  
  <p>I would like to achieve some kind of code placeholder like:</p>
  
  <pre><code>&lt;Label text="$variable inclusions type:"/&gt;
  &lt;Label text="$variable size:" GridPane.rowIndex="1"/&gt;
  &lt;Label text="$variable number:" GridPane.rowIndex="2"/&gt;
  </code></pre>
  
  <p>I try to avoid injecting all labels one by one, as I know there is no possibility to inject all labels at once to controller like ex. <code>Collection&lt;Label&gt; allLabels;</code></p>
  
  <p>Question: How to pass String from controller code to fxml view, avoiding duplication and unnecessary work?</p>