public class Category { private final StringProperty categoryName = new SimpleStringProperty(); private final IntegerProperty categoryId = new SimpleIntegerProperty(); private final ListProperty<Topic> children = new SimpleListProperty<Topic>(); public String getName() { return categoryName.get(); } public void setName( String value ) { categoryName.set( value ); } public StringProperty nameProperty() { return categoryName; } public int getId() { return categoryId.get(); } public void setId( int value ) { categoryId.set( value ); } public IntegerProperty idProperty() { return categoryId; } public List<Topic> childrenProperty() { return children; } @Override public String toString() { return categoryName.get(); } }
children
List
Topic
public Category() { ObservableList<Topic> oList = FXCollections.observableArrayList( children ); this.children = new SimpleListProperty<Topic>( oList ); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)