Skip to content

Instantly share code, notes, and snippets.

@lek-syde
Created May 27, 2018 16:43
Show Gist options
  • Save lek-syde/540307bceaf1f4018e2d531d3d62a72d to your computer and use it in GitHub Desktop.
Save lek-syde/540307bceaf1f4018e2d531d3d62a72d to your computer and use it in GitHub Desktop.
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package lekanfx;
import javafx.beans.property.IntegerProperty;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;
/**
*
* @author LEKAN
*/
public class Record {
private final IntegerProperty number;
private final StringProperty date;
private final StringProperty callid;
private final StringProperty callorigin;
private final StringProperty calldestination;
private final StringProperty calllength;
private final StringProperty calltype;
public Record(int id, String date, String callid, String callorigin, String calldestination, String calllength, String calltype) {
this.number= new SimpleIntegerProperty(id);
this.date = new SimpleStringProperty(date);
this.callid = new SimpleStringProperty(callid);
this.callorigin = new SimpleStringProperty(callorigin);
this.calldestination = new SimpleStringProperty(calldestination);
this.calllength = new SimpleStringProperty(calllength);
this.calltype = new SimpleStringProperty(calltype);
}
public StringProperty getDate() {
return date;
}
public StringProperty getCallid() {
return callid;
}
public StringProperty getCallorigin() {
return callorigin;
}
public StringProperty getCalldestination() {
return calldestination;
}
public StringProperty getCalllength() {
return calllength;
}
public StringProperty getCalltype() {
return calltype;
}
public IntegerProperty getNumber() {
return number;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment