Java Reference
In-Depth Information
<Label fx:id="category" text="[Category]"/>
<Label text="Name:">
<font>
<Font name="System Bold" size="12.0"/>
</font>
</Label>
<Label fx:id="name" text="[Name]"/>
<Label text="Description:">
<font>
<Font name="System Bold" size="12.0"/>
</font>
</Label>
<TextArea fx:id="description"
prefHeight="200.0"
prefWidth="200.0"
VBox.vgrow="ALWAYS"/>
</children>
<padding>
<Insets bottom="10.0" left="20.0" right="10.0" top="30.0"/>
</padding>
</VBox>
Listing 3-22. IncludeExampleTreeController.java
import javafx.beans.property.ReadOnlyStringWrapper;
import javafx.fxml.FXML;
import javafx.scene.control.TreeItem;
import javafx.scene.control.TreeTableColumn;
import javafx.scene.control.TreeTableView;
import javafx.scene.layout.VBox;
public class IncludeExampleTreeController {
@FXML
private TreeTableView<Product> treeTableView;
@FXML
private TreeTableColumn<Product, String> category;
@FXML
private TreeTableColumn<Product, String> name;
@FXML
private VBox details;
@FXML
private IncludeExampleDetailController detailsController;
@FXML
public void initialize() {
Product[] products = new Product[101];
for (int i = 0; i <= 100; i++) {
products[i] = new Product();
products[i].setCategory("Category" + (i / 10));
Search WWH ::




Custom Search