Commit aea5b28a authored by William Sha's avatar William Sha
Browse files

Merge branch 'fix/v2/mock-replace' into 'int/v2'

Replace mocks for users

See merge request !49
parents d06fcf4f 1ddb8114
......@@ -67,5 +67,4 @@ public class DataToMainImpl implements IDataToMain {
this.getController().getFX().getModel().setUserLight(userLight);
}
;
}
......@@ -62,12 +62,11 @@ public class FXHome {
// TODO : remove mock when real data update is possible
System.out.println("updateUsersListWithMock");
// Add some sample data.
homeListViewUsersOnlineData.add(new UserLight(null, "PseudoMock", "LastNameMock", "FirstNameMock", new Date(), 0, 0, 0));
homeListViewUsersOnlineData.add(new UserLight(null, "PseudoMock2", "LastNameMock", "FirstNameMock", new Date(), 0, 0, 0));
homeListViewUsersOnlineData.add(new UserLight(null, "PseudoMock3", "LastNameMock", "FirstNameMock", new Date(), 0, 0, 0));
homeListViewUsersOnlineData.add(new UserLight(null, "PseudoMock4", "LastNameMock", "FirstNameMock", new Date(), 0, 0, 0));
homeListViewUsersOnlineData.clear();
for (int i = 0; i < this.model.getUsersList().size(); i++) {
homeListViewUsersOnlineData.add(this.model.getUsersList().get(i));
}
// Init ListView.
homeListViewUsersOnline.setItems(homeListViewUsersOnlineData);
homeListViewUsersOnline.setCellFactory((list) -> {
return new ListCell<UserLight>() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment