Commit eff578c0 authored by Thomas's avatar Thomas
Browse files

Merge branch 'int/v2' of https://gitlab.utc.fr/aducarne/ai12-othello into int/v2

parents e4bb8c7d aea5b28a
......@@ -59,7 +59,7 @@ public class DataToMainImpl implements IDataToMain {
@Override
public void updateUserList(UserLight user) {
this.getController().getFX().getModel().addUserInList(user);
}
@Override
......@@ -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