Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
k2024
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
tie
ohj2
esimerkit
k2024
Commits
2f20561e
Commit
2f20561e
authored
1 year ago
by
Vesa Lappalainen
Browse files
Options
Downloads
Patches
Plain Diff
nayttaa nimen
parent
d4f3a521
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
luennot/live21/src/fxKerho/JasenDialogController.java
+16
-2
16 additions, 2 deletions
luennot/live21/src/fxKerho/JasenDialogController.java
luennot/live21/src/fxKerho/JasenDialogView.fxml
+1
-1
1 addition, 1 deletion
luennot/live21/src/fxKerho/JasenDialogView.fxml
with
17 additions
and
3 deletions
luennot/live21/src/fxKerho/JasenDialogController.java
+
16
−
2
View file @
2f20561e
...
...
@@ -9,10 +9,14 @@ import javafx.fxml.FXML;
import
javafx.fxml.Initializable
;
import
javafx.stage.Stage
;
import
kerho.Jasen
;
import
javafx.scene.control.TextField
;
@SuppressWarnings
(
"javadoc"
)
public
class
JasenDialogController
implements
ModalControllerInterface
<
Jasen
>,
Initializable
{
@FXML
private
TextField
editNimi
;
@Override
public
void
initialize
(
URL
arg0
,
ResourceBundle
arg1
)
{
// TODO Auto-generated method stub
...
...
@@ -31,6 +35,7 @@ public class JasenDialogController implements ModalControllerInterface<Jasen>, I
// ==========================================================
@Override
public
Jasen
getResult
()
{
// TODO Auto-generated method stub
...
...
@@ -39,10 +44,11 @@ public class JasenDialogController implements ModalControllerInterface<Jasen>, I
@Override
public
void
setDefault
(
Jasen
oletus
)
{
// TODO Auto-generated method stub
jasenKohdalla
=
oletus
;
naytaJasen
(
jasenKohdalla
);
}
@Override
public
void
handleShown
()
{
// TODO Auto-generated method stub
...
...
@@ -50,6 +56,14 @@ public class JasenDialogController implements ModalControllerInterface<Jasen>, I
}
private
Jasen
jasenKohdalla
;
private
void
naytaJasen
(
Jasen
jasen
)
{
if
(
jasen
==
null
)
return
;
editNimi
.
setText
(
jasen
.
getNimi
());
}
public
static
Jasen
kysyJasen
(
Stage
modalityStage
,
Jasen
oletus
)
{
return
ModalController
.
showModal
(
KerhoGUIController
.
class
.
getResource
(
"JasenDialogView.fxml"
),
"Jäsen"
,
modalityStage
,
oletus
);
}
...
...
This diff is collapsed.
Click to expand it.
luennot/live21/src/fxKerho/JasenDialogView.fxml
+
1
−
1
View file @
2f20561e
...
...
@@ -60,7 +60,7 @@
<Label
text=
"jäsenmaksu"
GridPane.rowIndex=
"9"
/>
<Label
text=
"maksettu maksu"
GridPane.rowIndex=
"10"
/>
<Label
text=
"lisätietoja"
GridPane.rowIndex=
"11"
/>
<TextField
text=
"Ankka Aku"
GridPane.columnIndex=
"1"
GridPane.hgrow=
"ALWAYS"
/>
<TextField
fx:id=
"editNimi"
text=
"Ankka Aku"
GridPane.columnIndex=
"1"
GridPane.hgrow=
"ALWAYS"
/>
<TextField
text=
"010245-123U"
GridPane.columnIndex=
"1"
GridPane.hgrow=
"ALWAYS"
GridPane.rowIndex=
"1"
/>
<TextField
text=
"Paratiisitie 13"
GridPane.columnIndex=
"1"
GridPane.hgrow=
"ALWAYS"
GridPane.rowIndex=
"2"
/>
<TextField
text=
"12345"
GridPane.columnIndex=
"1"
GridPane.hgrow=
"ALWAYS"
GridPane.rowIndex=
"3"
/>
...
...
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