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
1ddb8114
Commit
1ddb8114
authored
Nov 29, 2019
by
William Sha
Browse files
Replace mocks for users
parent
0c256650
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/client/main/DataToMainImpl.java
View file @
1ddb8114
...
...
@@ -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 @
1ddb8114
...
...
@@ -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