Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
ohj2
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
Package registry
Model registry
Operate
Environments
Terraform modules
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
niemimm
ohj2
Commits
30d73c9d
Commit
30d73c9d
authored
2 months ago
by
Lahtinen Konsta Aleksi
Browse files
Options
Downloads
Plain Diff
Merge branch 'main' of
https://gitlab.jyu.fi/niemimm/ohj2
parents
b8c79801
2771af0a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Ohj2HT/src/Luokat/Reissu.java
+3
-4
3 additions, 4 deletions
Ohj2HT/src/Luokat/Reissu.java
Ohj2HT/src/fxLisaaReissu/LisaaReissuGUIController.java
+6
-5
6 additions, 5 deletions
Ohj2HT/src/fxLisaaReissu/LisaaReissuGUIController.java
with
9 additions
and
9 deletions
Ohj2HT/src/Luokat/Reissu.java
+
3
−
4
View file @
30d73c9d
...
...
@@ -2,7 +2,7 @@ package Luokat;
public
class
Reissu
{
private
String
Pvm
;
p
rivate
int
reissunTag
=
0
;
p
ublic
int
reissunTag
;
private
String
sijainti
;
private
String
keli
;
...
...
@@ -14,7 +14,7 @@ private String keli;
}
public
int
get
Id
()
{
public
int
get
Tag
()
{
return
reissunTag
;
}
...
...
@@ -38,8 +38,7 @@ private String keli;
public
String
toString
()
{
String
tag
=
Integer
.
toString
(
reissunTag
);
return
tag
+
"|"
+
Pvm
+
"|"
+
sijainti
+
"|"
+
keli
;
return
tag
+
"|"
+
Pvm
+
"|"
+
sijainti
+
"|"
+
keli
;
}
...
...
This diff is collapsed.
Click to expand it.
Ohj2HT/src/fxLisaaReissu/LisaaReissuGUIController.java
+
6
−
5
View file @
30d73c9d
...
...
@@ -42,7 +42,7 @@ public class LisaaReissuGUIController implements ModalControllerInterface<String
@FXML
private
TextField
sijainti
;
private
KalojaGUIController
kalojaController
;
...
...
@@ -68,20 +68,21 @@ public class LisaaReissuGUIController implements ModalControllerInterface<String
public
void
liitaKaloja
(
String
tulos
)
{
//s.getLaji() + " " + s.getKoko() + " napattu : " + v.getTypyppi() + " " + v.getVari();
}
private
void
Poista
()
{
Dialogs
.
showMessageDialog
(
"poistutaan! Mutta ei toimi vielä"
);
}
p
rivate
void
Tallenna
()
{
p
ublic
void
Tallenna
()
{
Reissu
a
=
new
Reissu
(
1
,
Pvm
.
getText
(),
sijainti
.
getText
(),
keli
.
getText
());
System
.
out
.
println
(
Pvm
.
getText
()
+
' '
+
sijainti
.
getText
()
+
' '
+
keli
.
getText
());
System
.
out
.
println
(
a
);
}
@Override
public
String
getResult
()
{
return
""
;
...
...
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