2016-09-09 20:41:20 +02:00
package application ;
import javafx.beans.property.DoubleProperty ;
import javafx.beans.property.IntegerProperty ;
import javafx.beans.property.SimpleDoubleProperty ;
import javafx.beans.property.SimpleIntegerProperty ;
2017-02-02 20:41:38 +01:00
import javafx.beans.property.SimpleObjectProperty ;
2016-09-09 20:41:20 +02:00
import javafx.beans.property.SimpleStringProperty ;
import javafx.beans.property.StringProperty ;
2017-02-02 20:41:38 +01:00
import javafx.scene.image.ImageView ;
2016-09-09 20:41:20 +02:00
public class streamUiData {
2017-02-02 20:41:38 +01:00
private final IntegerProperty year = new SimpleIntegerProperty ( ) ;
private final IntegerProperty season = new SimpleIntegerProperty ( ) ;
private final IntegerProperty episode = new SimpleIntegerProperty ( ) ;
private final DoubleProperty rating = new SimpleDoubleProperty ( ) ;
private final StringProperty resolution = new SimpleStringProperty ( ) ;
2017-03-05 18:29:24 +01:00
private final StringProperty titel = new SimpleStringProperty ( ) ;
2017-02-02 20:41:38 +01:00
private final StringProperty streamUrl = new SimpleStringProperty ( ) ;
private final SimpleObjectProperty < ImageView > image = new SimpleObjectProperty < > ( ) ;
2016-09-09 20:41:20 +02:00
//uiData ist der Typ der Daten in der TreeTabelView
2017-02-02 20:41:38 +01:00
public streamUiData ( final int year , final int season , final int episode , final double rating , final String resolution , final String titel , final String streamUrl , final ImageView image ) {
2016-09-09 20:41:20 +02:00
this . year . set ( year ) ;
this . season . set ( season ) ;
2016-10-10 16:55:26 +02:00
this . episode . set ( episode ) ;
2016-09-09 20:41:20 +02:00
this . rating . set ( rating ) ;
this . resolution . set ( resolution ) ;
this . titel . set ( titel ) ;
this . streamUrl . set ( streamUrl ) ;
2017-02-02 20:41:38 +01:00
this . image . set ( image ) ;
2016-09-09 20:41:20 +02:00
}
2017-02-02 20:41:38 +01:00
public IntegerProperty yearProperty ( ) {
return year ;
2016-09-09 20:41:20 +02:00
}
2017-02-02 20:41:38 +01:00
public IntegerProperty seasonProperty ( ) {
return season ;
2016-09-09 20:41:20 +02:00
}
2017-02-02 20:41:38 +01:00
public IntegerProperty episodeProperty ( ) {
return episode ;
2016-10-10 16:55:26 +02:00
}
2017-02-02 20:41:38 +01:00
public DoubleProperty ratingProperty ( ) {
return rating ;
2016-09-09 20:41:20 +02:00
}
2017-02-02 20:41:38 +01:00
public StringProperty resolutionProperty ( ) {
return resolution ;
2016-09-09 20:41:20 +02:00
}
2017-02-02 20:41:38 +01:00
public StringProperty titelProperty ( ) {
return titel ;
2016-09-09 20:41:20 +02:00
}
2017-02-02 20:41:38 +01:00
public StringProperty streamUrlProperty ( ) {
return streamUrl ;
2016-09-09 20:41:20 +02:00
}
2017-02-02 20:41:38 +01:00
public SimpleObjectProperty < ImageView > imageProperty ( ) {
return image ;
}
public final int getYear ( ) {
return yearProperty ( ) . get ( ) ;
2016-09-09 20:41:20 +02:00
}
2017-02-02 20:41:38 +01:00
public final int getSeason ( ) {
return seasonProperty ( ) . get ( ) ;
2016-09-09 20:41:20 +02:00
}
2017-02-02 20:41:38 +01:00
public final int getEpisode ( ) {
return episodeProperty ( ) . get ( ) ;
2016-10-10 16:55:26 +02:00
}
2017-02-02 20:41:38 +01:00
public final double getRating ( ) {
return ratingProperty ( ) . get ( ) ;
}
public final String getResolution ( ) {
return resolutionProperty ( ) . get ( ) ;
2016-09-09 20:41:20 +02:00
}
2017-02-02 20:41:38 +01:00
public final String getTitel ( ) {
return titelProperty ( ) . get ( ) ;
2016-09-09 20:41:20 +02:00
}
2017-02-02 20:41:38 +01:00
public final String getStreamUrl ( ) {
return streamUrlProperty ( ) . get ( ) ;
2016-09-09 20:41:20 +02:00
}
2017-02-02 20:41:38 +01:00
public final ImageView getImage ( ) {
return imageProperty ( ) . get ( ) ;
}
2016-09-09 20:41:20 +02:00
2017-02-02 20:41:38 +01:00
public final void setYear ( int year ) {
yearProperty ( ) . set ( year ) ;
2016-09-09 20:41:20 +02:00
}
2017-02-02 20:41:38 +01:00
public final void setSeason ( int season ) {
seasonProperty ( ) . set ( season ) ;
2016-09-09 20:41:20 +02:00
}
2017-02-02 20:41:38 +01:00
public final void setEpisode ( int season ) {
episodeProperty ( ) . set ( season ) ;
2016-09-09 20:41:20 +02:00
}
2017-02-02 20:41:38 +01:00
public final void setRating ( int rating ) {
ratingProperty ( ) . set ( rating ) ;
2016-10-10 16:55:26 +02:00
}
2017-02-02 20:41:38 +01:00
public final void setResolution ( String resolution ) {
resolutionProperty ( ) . set ( resolution ) ;
2016-09-09 20:41:20 +02:00
}
2017-02-02 20:41:38 +01:00
public final void setTitel ( String titel ) {
titelProperty ( ) . set ( titel ) ;
2016-09-09 20:41:20 +02:00
}
2017-02-02 20:41:38 +01:00
public final void setStreamUrl ( String streamUrl ) {
streamUrlProperty ( ) . set ( streamUrl ) ;
2016-09-09 20:41:20 +02:00
}
2017-02-02 20:41:38 +01:00
public final void setImage ( ImageView image ) {
imageProperty ( ) . set ( image ) ;
2016-09-09 20:41:20 +02:00
}
}