Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
course-material
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IT1901
course-material
Commits
4c42b010
Commit
4c42b010
authored
5 years ago
by
George Adrian Stoica
Browse files
Options
Downloads
Patches
Plain Diff
simplified setting of cellFactory using lambda
parent
5888890a
No related branches found
No related tags found
1 merge request
!6
Issue 11 allow user to enter and update metadata about the latlong points
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
simpleexample2/fxui/src/main/java/simpleex/ui/AbstractFxAppController.java
+1
-6
1 addition, 6 deletions
...ui/src/main/java/simpleex/ui/AbstractFxAppController.java
with
1 addition
and
6 deletions
simpleexample2/fxui/src/main/java/simpleex/ui/AbstractFxAppController.java
+
1
−
6
View file @
4c42b010
...
@@ -87,12 +87,7 @@ public abstract class AbstractFxAppController {
...
@@ -87,12 +87,7 @@ public abstract class AbstractFxAppController {
locationListView
.
getSelectionModel
().
selectedIndexProperty
()
locationListView
.
getSelectionModel
().
selectedIndexProperty
()
.
addListener
((
prop
,
oldValue
,
newValue
)
->
updateMapMarker
(
true
));
.
addListener
((
prop
,
oldValue
,
newValue
)
->
updateMapMarker
(
true
));
//connect the cell renderer to the list
//connect the cell renderer to the list
locationListView
.
setCellFactory
(
new
Callback
<
ListView
<
LatLong
>,
ListCell
<
LatLong
>>()
{
locationListView
.
setCellFactory
(
listView
->
new
LatLongCell
());
@Override
public
ListCell
<
LatLong
>
call
(
ListView
<
LatLong
>
listView
)
{
return
new
LatLongCell
();
}
});
}
}
private
void
handleMapDragged
(
final
Node
node
,
final
double
dx
,
final
double
dy
)
{
private
void
handleMapDragged
(
final
Node
node
,
final
double
dx
,
final
double
dy
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment