Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
HelloWorldController.java
Go to the documentation of this file.
1
package
hello.ctrl;
2
import
javafx.fxml.FXML;
3
import
javafx.scene.control.Label;
4
5
/**
6
* Käsittelijäluokka HelloWorld-sovellukselle
7
* @author vesal
8
* @version 4.3.2016
9
*/
10
public
class
HelloWorldController
{
11
12
@FXML
private
Label
label
;
13
14
@FXML
private
void
handlePressed
() {
15
label
.setText(
viesti
);
16
}
17
18
private
String
viesti
=
"Well Done!"
;
19
20
/**
21
* @param msg mikä viesti tulee painikkeen painamisesta
22
*/
23
public
void
setViesti
(String msg) {
24
viesti
= msg;
25
}
26
}
trunk
Examples
src
hello
ctrl
HelloWorldController.java
Generated on Sat Feb 4 2017 23:18:37 by
1.8.3