Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
the hurlers
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Herman Andersen Dyrkorn
the hurlers
Merge requests
!19
Resolve "appending textview to thoughts"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "appending textview to thoughts"
15-appending-textview-to-thoughts
into
master
Overview
0
Commits
1
Pipelines
0
Changes
2
Merged
Herman Andersen Dyrkorn
requested to merge
15-appending-textview-to-thoughts
into
master
4 years ago
Overview
0
Commits
1
Pipelines
0
Changes
2
Expand
Closes
#15 (closed)
Edited
4 years ago
by
Andrea Magnussen
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
a856e233
1 commit,
4 years ago
2 files
+
11
−
11
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
src/sample/Controller.java
+
9
−
11
Options
@@ -2,6 +2,8 @@ package sample;
import
javafx.event.ActionEvent
;
import
javafx.fxml.FXML
;
import
javafx.scene.control.ListView
;
import
javafx.scene.control.SelectionMode
;
import
javafx.scene.control.TextArea
;
public
class
Controller
{
@@ -9,6 +11,9 @@ public class Controller {
@FXML
private
TextArea
textArea
;
@FXML
private
ListView
<
String
>
listView
;
@FXML
private
void
handleSubmit
()
{
@@ -18,21 +23,14 @@ public class Controller {
//clear textArea
textArea
.
clear
();
//get the thought manager and add the thought to the manager
ThoughtManager
tm
=
ThoughtManager
.
getInstance
();
tm
.
add
(
t
);
tm
.
displayList
();
//add the thoughts to the lists
listView
.
getItems
().
addAll
(
t
.
getThought
());
listView
.
getSelectionModel
().
setSelectionMode
(
SelectionMode
.
MULTIPLE
);
}
public
void
handleHurlAll
()
{
//get the thought manager
ThoughtManager
tm
=
ThoughtManager
.
getInstance
();
//delete all thoughts and display the list
tm
.
hurl
();
tm
.
displayList
();
listView
.
getItems
().
clear
();
}
}
Loading