2018-12-03 21:12:00 +01:00
package com.jFxKasse.datatypes ;
2018-04-04 18:05:01 +02:00
import javafx.beans.property.IntegerProperty ;
import javafx.beans.property.SimpleIntegerProperty ;
import javafx.beans.property.SimpleStringProperty ;
import javafx.beans.property.StringProperty ;
public class tableDataPositionen
{ // data-object with id, name, value, color
private final IntegerProperty id = new SimpleIntegerProperty ( ) ;
private final StringProperty name = new SimpleStringProperty ( ) ;
private final StringProperty value = new SimpleStringProperty ( ) ;
2018-10-01 11:31:05 +02:00
private final StringProperty cat = new SimpleStringProperty ( ) ;
2018-04-04 18:05:01 +02:00
private final StringProperty color = new SimpleStringProperty ( ) ;
2018-10-01 11:31:05 +02:00
public tableDataPositionen ( final int id , final String name , final String value , final String cat , final String color )
2018-04-04 18:05:01 +02:00
{
this . id . set ( id ) ;
this . name . set ( name ) ;
this . value . set ( value ) ;
2018-10-01 11:31:05 +02:00
this . cat . set ( cat ) ;
2018-04-04 18:05:01 +02:00
this . color . set ( color ) ;
}
public IntegerProperty idProperty ( )
{
return id ;
}
public StringProperty nameProperty ( )
{
return name ;
}
public StringProperty valueProperty ( )
{
return value ;
}
2018-10-01 11:31:05 +02:00
public StringProperty catProperty ( ) {
return cat ;
}
2018-04-04 18:05:01 +02:00
public StringProperty colorProperty ( )
{
return color ;
}
public int getID ( )
{
return idProperty ( ) . get ( ) ;
}
public String getName ( )
{
return nameProperty ( ) . get ( ) ;
}
public String getValue ( )
{
return valueProperty ( ) . get ( ) ;
}
2018-10-01 11:31:05 +02:00
public String getCat ( ) {
return catProperty ( ) . get ( ) ;
}
2018-04-04 18:05:01 +02:00
public String getColor ( )
{
return colorProperty ( ) . get ( ) ;
}
public final void setID ( int id )
{
idProperty ( ) . set ( id ) ;
}
public final void setName ( String name )
{
nameProperty ( ) . set ( name ) ;
}
public final void setValue ( String value )
{
valueProperty ( ) . set ( value ) ;
}
2018-10-01 11:31:05 +02:00
public final void setCat ( String cat ) {
catProperty ( ) . set ( cat ) ;
}
2018-04-04 18:05:01 +02:00
public final void setColor ( String color )
{
colorProperty ( ) . set ( color ) ;
}
}