added tableDataPositionen

This commit is contained in:
hendrik 2018-04-04 18:05:01 +02:00
parent 26e474a486
commit 2167ac60cc
1 changed files with 86 additions and 0 deletions

View File

@ -0,0 +1,86 @@
package application;
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();
private final StringProperty color = new SimpleStringProperty();
public tableDataPositionen(final int id, final String name, final String value, final String color)
{
this.id.set(id);
this.name.set(name);
this.value.set(value);
this.color.set(color);
}
public IntegerProperty idProperty()
{
return id;
}
public StringProperty nameProperty()
{
return name;
}
public StringProperty valueProperty()
{
return value;
}
public StringProperty colorProperty()
{
return color;
}
public int getID()
{
return idProperty().get();
}
public String getName()
{
return nameProperty().get();
}
public String getValue()
{
return valueProperty().get();
}
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);
}
public final void setColor(String color)
{
colorProperty().set(color);
}
}