Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Alexandre Ducarne
ai12-othello
Commits
eff578c0
Commit
eff578c0
authored
Nov 29, 2019
by
Thomas
Browse files
Merge branch 'int/v2' of
https://gitlab.utc.fr/aducarne/ai12-othello
into int/v2
parents
e4bb8c7d
aea5b28a
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/client/main/DataToMainImpl.java
View file @
eff578c0
...
...
@@ -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
);
}
;
}
src/main/java/client/main/controller/FXHome.java
View file @
eff578c0
...
...
@@ -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
UserLi
ght
(
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
.
get
User
s
Li
st
().
size
();
i
++)
{
homeListViewUsersOnlineData
.
add
(
this
.
model
.
getUsersList
().
get
(
i
));
}
// Init ListView.
homeListViewUsersOnline
.
setItems
(
homeListViewUsersOnlineData
);
homeListViewUsersOnline
.
setCellFactory
((
list
)
->
{
return
new
ListCell
<
UserLight
>()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment