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
f28112b1
Commit
f28112b1
authored
2 weeks ago
by
Lahtinen Konsta Aleksi
Browse files
Options
Downloads
Patches
Plain Diff
refaktor
parent
5047b73c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Ohj2HT/src/fxKalenteri/KalenteriGUIController.java
+5
-5
5 additions, 5 deletions
Ohj2HT/src/fxKalenteri/KalenteriGUIController.java
with
5 additions
and
5 deletions
Ohj2HT/src/fxKalenteri/KalenteriGUIController.java
+
5
−
5
View file @
f28112b1
...
...
@@ -74,7 +74,7 @@ public class KalenteriGUIController implements Initializable {
ModalController
.
showModal
(
KalenteriMain
.
class
.
getResource
(
"/fxLisaaReissu/LisaaReissuGUIView.fxml"
),
"Lisää reissu"
,
null
,
kalenteri
);
kalenteri
.
paivitaTulkit
();
kirjoita
Lisaa
Reissu
();
kirjoitaReissu
t
();
tekstienPaivitys
();
}
...
...
@@ -82,7 +82,7 @@ public class KalenteriGUIController implements Initializable {
/**
* kirjoittaa reissut näkyville.
*/
public
void
kirjoita
Lisaa
Reissu
()
{
public
void
kirjoitaReissu
t
()
{
Reissut
s
=
kalenteri
.
getReissut
();
s
.
sort
();
if
(
s
!=
null
)
{
...
...
@@ -112,7 +112,7 @@ public class KalenteriGUIController implements Initializable {
}
private
void
tallenna
()
{
kirjoita
Lisaa
Reissu
();
kirjoitaReissu
t
();
kalenteri
.
getReissut
().
sort
();
if
(
onkoPoistettu
){
if
(
kalenteri
.
tallennaTietyt
()){
...
...
@@ -181,7 +181,7 @@ public class KalenteriGUIController implements Initializable {
if
(
r
!=
null
)
{
reissutLista
.
getItems
().
clear
();
this
.
Saaliisi
.
getItems
().
clear
();
kirjoita
Lisaa
Reissu
();
kirjoitaReissu
t
();
tekstienPaivitys
();
}
...
...
@@ -203,7 +203,7 @@ public class KalenteriGUIController implements Initializable {
List
<
Reissu
>
r
=
kalenteri
.
getReissut
().
getReissut
();
aluksi
=
r
.
size
();
reissutLista
.
getItems
().
clear
();
kirjoita
Lisaa
Reissu
();
kirjoitaReissu
t
();
this
.
reissuLkm
.
textProperty
().
bind
(
reissumaara
.
asString
());
this
.
saalisLkm
.
textProperty
().
bind
(
saalismaara
.
asString
());
this
.
lempiViehe
.
textProperty
().
bind
(
parasViehe
);
...
...
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