Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
twi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Maria Barbatei
twi
Commits
eeb7c45e
Commit
eeb7c45e
authored
May 28, 2016
by
Maria Barbatei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Erscheinen von Dialog mit den mehrdeutigen Diagnosen
parent
464ed23d
Pipeline
#2891
skipped
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
7 deletions
+35
-7
Sandbox/TWI.gruppe2/src/main/java/uebung7/fin/gui/Uebung7GUI1.java
...WI.gruppe2/src/main/java/uebung7/fin/gui/Uebung7GUI1.java
+35
-7
No files found.
Sandbox/TWI.gruppe2/src/main/java/uebung7/fin/gui/Uebung7GUI1.java
View file @
eeb7c45e
...
...
@@ -3,6 +3,9 @@ package uebung7.fin.gui;
import
java.io.File
;
import
java.io.FileWriter
;
import
java.io.IOException
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Optional
;
import
java.util.logging.Level
;
import
java.util.logging.Logger
;
...
...
@@ -14,6 +17,7 @@ import javafx.event.EventHandler;
import
javafx.geometry.Insets
;
import
javafx.scene.Scene
;
import
javafx.scene.control.Button
;
import
javafx.scene.control.ChoiceDialog
;
import
javafx.scene.control.ComboBox
;
import
javafx.scene.control.Label
;
import
javafx.scene.control.TreeItem
;
...
...
@@ -23,6 +27,7 @@ import javafx.scene.layout.HBox;
import
javafx.scene.layout.VBox
;
import
javafx.stage.FileChooser
;
import
javafx.stage.Stage
;
import
uebung7.fin.medReader.AlphaID
;
import
uebung7.fin.medReader.DBSearch
;
import
uebung7.fin.medReader.MedReportSplitter
;
...
...
@@ -103,8 +108,7 @@ public class Uebung7GUI1 extends Application {
System
.
out
.
println
(
"ERROR: startGUI.java - Bitte Datei auswählen!"
);
}
else
{
try
{
// create new MedReportSplitter
// DEBUG:
MedReportSplitter
reportSplit
=
new
MedReportSplitter
(
"Arztbrief1.txt"
);
// For FINAL VER
...
...
@@ -112,15 +116,39 @@ public class Uebung7GUI1 extends Application {
// MedReportSplitter(arztbrief);
DBSearch
search
=
new
DBSearch
(
reportSplit
.
getDiagnosen
());
// Get Diags found from Backend
System
.
out
.
println
(
"DBG: startGUI.java Diagnosen Return: "
);
// ToDO: GUI: Selection of Diag etc...
for
(
String
diagnose
:
reportSplit
.
getDiagnosen
())
{
List
<
AlphaID
>
diagnoseList
=
search
.
getDiagnose
(
diagnose
);
System
.
out
.
println
(
"Lungime per diagnose: "
+
diagnoseList
.
size
());
int
nrOfDiagnoses
=
diagnoseList
.
size
();
if
(
nrOfDiagnoses
>
1
)
{
List
<
String
>
diagnosenNamen
=
new
ArrayList
<
String
>();
for
(
int
i
=
0
;
i
<
diagnoseList
.
size
();
i
++)
{
diagnosenNamen
.
add
(
diagnoseList
.
get
(
i
).
getText
());
}
ChoiceDialog
<
String
>
dialog
=
new
ChoiceDialog
<>(
diagnosenNamen
.
get
(
0
),
diagnosenNamen
);
dialog
.
setTitle
(
"Diagnosenauswahl"
);
dialog
.
setHeaderText
(
"Es wurden mehrere Diagnosen gefunden!"
);
dialog
.
setContentText
(
"Wählen Sie eine Diagnose aus:"
);
// Traditional way to get the response value.
Optional
<
String
>
result
=
dialog
.
showAndWait
();
if
(
result
.
isPresent
()){
System
.
out
.
println
(
"Ausgewählte Diagnose: "
+
result
.
get
());
}
}
else
{
//put the diagnose in the tree structure
}
}
}
catch
(
IOException
e1
)
{
// Error reading the file:
System
.
out
.
println
(
"ERROR: startGUI.java - Datei konnte nicht geöffnet werden!"
);
}
catch
(
InterruptedException
e1
)
{
// TODO Auto-generated catch block
e1
.
printStackTrace
();
}
}
}
...
...
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