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 ;
import javafx.beans.property.SimpleStringProperty ;
import javafx.beans.property.StringProperty ;
public class streamUiData {
private IntegerProperty year = new SimpleIntegerProperty ( ) ;
private IntegerProperty season = new SimpleIntegerProperty ( ) ;
2016-10-10 16:55:26 +02:00
private IntegerProperty episode = new SimpleIntegerProperty ( ) ;
2016-09-09 20:41:20 +02:00
private DoubleProperty rating = new SimpleDoubleProperty ( ) ;
private StringProperty resolution = new SimpleStringProperty ( ) ;
private StringProperty titel = new SimpleStringProperty ( ) ;
private StringProperty streamUrl = new SimpleStringProperty ( ) ;
//uiData ist der Typ der Daten in der TreeTabelView
2016-10-10 16:55:26 +02:00
public streamUiData ( final int year , final int season , final int episode , final double rating , final String resolution , final String titel , final String streamUrl ) {
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 ) ;
}
public int getYear ( ) {
return year . get ( ) ;
}
public int getSeason ( ) {
return season . get ( ) ;
}
2016-10-10 16:55:26 +02:00
public int getEpisode ( ) {
return episode . get ( ) ;
}
2016-09-09 20:41:20 +02:00
public double getRating ( ) {
return rating . get ( ) ;
}
public String getResolution ( ) {
return resolution . get ( ) ;
}
public String getTitel ( ) {
return titel . get ( ) ;
}
public String getStreamUrl ( ) {
return streamUrl . get ( ) ;
}
public void setYear ( int year ) {
this . year . set ( year ) ;
}
public void setSeason ( int season ) {
this . season . set ( season ) ;
}
2016-10-10 16:55:26 +02:00
public void setEpisode ( int season ) {
this . episode . set ( season ) ;
}
2016-09-09 20:41:20 +02:00
public void setRating ( int rating ) {
this . rating . set ( rating ) ;
}
public void setResolution ( String resolution ) {
this . resolution . set ( resolution ) ;
}
public void setTitel ( String titel ) {
this . titel . set ( titel ) ;
}
public void setStreamUrl ( StringProperty streamUrl ) {
this . streamUrl = streamUrl ;
}
public IntegerProperty yearProperty ( ) {
return year ;
}
public IntegerProperty seasonProperty ( ) {
return season ;
}
2016-10-10 16:55:26 +02:00
public IntegerProperty episodeProperty ( ) {
return episode ;
}
2016-09-09 20:41:20 +02:00
public DoubleProperty ratingProperty ( ) {
return rating ;
}
public StringProperty resolutionProperty ( ) {
return resolution ;
}
public StringProperty titelProperty ( ) {
return titel ;
}
public StringProperty streamUrlProperty ( ) {
return streamUrl ;
}
}