smmdbapi part 3
begun work on ui frontend *courses are displayed and selectable
This commit is contained in:
23
src/datatypes/courseTableDataType.java
Normal file
23
src/datatypes/courseTableDataType.java
Normal file
@ -0,0 +1,23 @@
|
||||
package datatypes;
|
||||
|
||||
import com.jfoenix.controls.datamodels.treetable.RecursiveTreeObject;
|
||||
|
||||
import javafx.beans.property.IntegerProperty;
|
||||
import javafx.beans.property.SimpleIntegerProperty;
|
||||
import javafx.beans.property.SimpleStringProperty;
|
||||
import javafx.beans.property.StringProperty;
|
||||
|
||||
public class courseTableDataType extends RecursiveTreeObject<courseTableDataType> {
|
||||
|
||||
public final StringProperty title;
|
||||
public final IntegerProperty downloads;
|
||||
public final IntegerProperty stars;
|
||||
public final IntegerProperty id;
|
||||
|
||||
public courseTableDataType(String title, int downloads, int stars, int id) {
|
||||
this.title = new SimpleStringProperty(title);
|
||||
this.downloads = new SimpleIntegerProperty(downloads);
|
||||
this.stars = new SimpleIntegerProperty(stars);
|
||||
this.id = new SimpleIntegerProperty(id);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user