Skip to content
This repository was archived by the owner on Jun 11, 2023. It is now read-only.

Commit 98f4f51

Browse files
committed
#86 [test] Create basic demo application structure.
1 parent 3568f80 commit 98f4f51

15 files changed

+409
-9
lines changed

pom.xml

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,21 @@ Lib-I18N is written in JavaFX, [Maven] and [NetBeans].</description>
5555

5656
<build>
5757
<plugins>
58+
<plugin>
59+
<groupId>org.apache.maven.plugins</groupId>
60+
<artifactId>maven-jar-plugin</artifactId>
61+
<version>3.1.1</version>
62+
<configuration>
63+
<excludes>
64+
<exclude>**/com/github/naoghuman/lib/i18n/*.java</exclude>
65+
<exclude>**/com/github/naoghuman/lib/i18n/*.fxml</exclude>
66+
<exclude>**/com/github/naoghuman/lib/i18n/*.css</exclude>
67+
<exclude>**/com/github/naoghuman/lib/i18n/*.properties</exclude>
68+
<exclude>**/com/github/naoghuman/lib/i18n/*.png</exclude>
69+
<exclude>**/com/github/naoghuman/lib/i18n/*.txt</exclude>
70+
</excludes>
71+
</configuration>
72+
</plugin>
5873
<plugin>
5974
<groupId>org.apache.maven.plugins</groupId>
6075
<artifactId>maven-compiler-plugin</artifactId>
@@ -118,17 +133,15 @@ Lib-I18N is written in JavaFX, [Maven] and [NetBeans].</description>
118133
- Add here the suffixes from the files with should be included
119134
into the jar file.
120135
-->
121-
<resource>
122-
<directory>src/main/java</directory>
123-
<includes>
124-
<include>**/*.properties</include>
125-
</includes>
126-
</resource>
127-
<resource>
128-
<directory>src/main/resources</directory>
129-
<filtering>true</filtering>
136+
<resource>
137+
<directory>src/test/resources</directory>
130138
<includes>
139+
<include>**/*.fxml</include>
140+
<include>**/*.css</include>
141+
<include>**/*.png</include>
131142
<include>**/*.properties</include>
143+
<include>**/*.txt</include>
144+
<include>**/*.xml</include>
132145
</includes>
133146
</resource>
134147
</resources>
@@ -142,6 +155,14 @@ Lib-I18N is written in JavaFX, [Maven] and [NetBeans].</description>
142155
<type>jar</type>
143156
</dependency>
144157

158+
<dependency>
159+
<groupId>com.github.naoghuman</groupId>
160+
<artifactId>lib-fxml</artifactId>
161+
<version>0.3.0-PRERELEASE</version>
162+
<scope>test</scope>
163+
<type>jar</type>
164+
</dependency>
165+
145166
<dependency>
146167
<groupId>junit</groupId>
147168
<artifactId>junit</artifactId>

release/Release_v0.8.0_2019-04-dd_HH-mm.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Lib-I18N is written in JavaFX, [Maven] and [NetBeans].
1818

1919

2020
#### Feature
21+
#86 [test] Create basic demo application structure.
2122

2223

2324

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
/*
2+
* Copyright (C) 2018 Naoghuman's dream
3+
*
4+
* This program is free software: you can redistribute it and/or modify
5+
* it under the terms of the GNU General Public License as published by
6+
* the Free Software Foundation, either version 3 of the License, or
7+
* (at your option) any later version.
8+
*
9+
* This program is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
* GNU General Public License for more details.
13+
*
14+
* You should have received a copy of the GNU General Public License
15+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16+
*/
17+
package com.github.naoghuman.lib.i18n;
18+
19+
import com.github.naoghuman.lib.fxml.core.FXMLController;
20+
import com.github.naoghuman.lib.fxml.core.FXMLRegisterable;
21+
import com.github.naoghuman.lib.logger.core.LoggerFacade;
22+
import java.net.URL;
23+
import java.util.ResourceBundle;
24+
import javafx.fxml.FXML;
25+
import javafx.fxml.Initializable;
26+
import javafx.scene.control.Button;
27+
import javafx.scene.text.Text;
28+
29+
/**
30+
*
31+
* @since 0.8.0
32+
* @version 0.8.0
33+
* @author Naoghuman
34+
*/
35+
public final class DemoI18NController extends FXMLController implements FXMLRegisterable, Initializable {
36+
37+
@FXML private Button bFrance;
38+
@FXML private Button bGermany;
39+
@FXML private Button bItaly;
40+
@FXML private Button bUnitedKingdom;
41+
@FXML private Text tFrom;
42+
@FXML private Text tHello;
43+
@FXML private Text tLand;
44+
45+
@Override
46+
public void initialize(final URL location, final ResourceBundle resources) {
47+
LoggerFacade.getDefault().info(this.getClass(), "DemoI18NController#initialize(URL, ResourceBundle)"); // NOI18N
48+
49+
}
50+
51+
@Override
52+
public void configure() {
53+
LoggerFacade.getDefault().debug(this.getClass(), "DemoI18NController#configure()"); // NOI18N
54+
// ?
55+
}
56+
57+
@Override
58+
public void register() {
59+
LoggerFacade.getDefault().info(this.getClass(), "DemoI18NController.register()"); // NOI18N
60+
61+
}
62+
63+
}
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
/*
2+
* Copyright (C) 2018 Naoghuman's dream
3+
*
4+
* This program is free software: you can redistribute it and/or modify
5+
* it under the terms of the GNU General Public License as published by
6+
* the Free Software Foundation, either version 3 of the License, or
7+
* (at your option) any later version.
8+
*
9+
* This program is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
* GNU General Public License for more details.
13+
*
14+
* You should have received a copy of the GNU General Public License
15+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16+
*/
17+
package com.github.naoghuman.lib.i18n;
18+
19+
import com.github.naoghuman.lib.fxml.core.FXMLRegisterable;
20+
import com.github.naoghuman.lib.fxml.core.FXMLView;
21+
import com.github.naoghuman.lib.logger.core.LoggerFacade;
22+
import javafx.application.Application;
23+
import javafx.scene.Scene;
24+
import javafx.scene.layout.AnchorPane;
25+
import javafx.stage.Stage;
26+
27+
/**
28+
*
29+
* @since 0.8.0
30+
* @version 0.8.0
31+
* @author Naoghuman
32+
*/
33+
public final class DemoI18NStart extends Application implements FXMLRegisterable {
34+
35+
/**
36+
*
37+
* @param args
38+
* @since 0.3.0-PRERELEASE
39+
* @version 0.3.0-PRERELEASE
40+
* @author Naoghuman
41+
*/
42+
public static void main(String[] args) {
43+
launch(args);
44+
}
45+
46+
@Override
47+
public void init() throws Exception {
48+
super.init();
49+
50+
LoggerFacade.getDefault().info(this.getClass(), "DemoI18NStart#init()"); // NOI18N
51+
52+
this.register();
53+
}
54+
55+
@Override
56+
public void start(final Stage primaryStage) throws Exception {
57+
LoggerFacade.getDefault().debug(this.getClass(), "DemoI18NStart#start(Stage)"); // NOI18N
58+
59+
primaryStage.setTitle("Lib-I18N Demo: v0.8.0"); // NOI18N
60+
61+
final FXMLView view = FXMLView.create(DemoI18NController.class);
62+
final Scene scene = new Scene(view.getRoot().orElse(new AnchorPane()), 960, 540);
63+
primaryStage.setScene(scene);
64+
65+
primaryStage.show();
66+
}
67+
68+
@Override
69+
public void register() {
70+
LoggerFacade.getDefault().info(this.getClass(), "DemoI18NStart#register()"); // NOI18N
71+
72+
73+
}
74+
75+
}
Loading
Loading
Loading
Loading
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Copyright (C) 2018 Naoghuman's dream
2+
#
3+
# This program is free software: you can redistribute it and/or modify
4+
# it under the terms of the GNU General Public License as published by
5+
# the Free Software Foundation, either version 3 of the License, or
6+
# (at your option) any later version.
7+
#
8+
# This program is distributed in the hope that it will be useful,
9+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
# GNU General Public License for more details.
12+
#
13+
# You should have received a copy of the GNU General Public License
14+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
15+
16+
demo.i18n.greetings=Hallo
17+
demo.i18n.from=von
18+
demo.i18n.land=Deutschland
19+
demo.i18n.language.german=Deutsch
20+
demo.i18n.language.english=Englisch
21+
demo.i18n.language.italian=Italienisch
22+
demo.i18n.language.french=Franz\u00f6sisch
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Copyright (C) 2018 Naoghuman's dream
2+
#
3+
# This program is free software: you can redistribute it and/or modify
4+
# it under the terms of the GNU General Public License as published by
5+
# the Free Software Foundation, either version 3 of the License, or
6+
# (at your option) any later version.
7+
#
8+
# This program is distributed in the hope that it will be useful,
9+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
# GNU General Public License for more details.
12+
#
13+
# You should have received a copy of the GNU General Public License
14+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
15+
16+
demo.i18n.greetings=Hi
17+
demo.i18n.from=from
18+
demo.i18n.land=United Kingdom
19+
demo.i18n.language.german=German
20+
demo.i18n.language.english=English
21+
demo.i18n.language.italian=Italian
22+
demo.i18n.language.french=French
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Copyright (C) 2018 Naoghuman's dream
2+
#
3+
# This program is free software: you can redistribute it and/or modify
4+
# it under the terms of the GNU General Public License as published by
5+
# the Free Software Foundation, either version 3 of the License, or
6+
# (at your option) any later version.
7+
#
8+
# This program is distributed in the hope that it will be useful,
9+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
# GNU General Public License for more details.
12+
#
13+
# You should have received a copy of the GNU General Public License
14+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
15+
16+
demo.i18n.greetings=Bonjour
17+
demo.i18n.from=de
18+
demo.i18n.land=France
19+
demo.i18n.language.german=Allemand
20+
demo.i18n.language.english=Anglais
21+
demo.i18n.language.italian=Italien
22+
demo.i18n.language.french=Fran\u00e7ais
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Copyright (C) 2018 Naoghuman's dream
2+
#
3+
# This program is free software: you can redistribute it and/or modify
4+
# it under the terms of the GNU General Public License as published by
5+
# the Free Software Foundation, either version 3 of the License, or
6+
# (at your option) any later version.
7+
#
8+
# This program is distributed in the hope that it will be useful,
9+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
# GNU General Public License for more details.
12+
#
13+
# You should have received a copy of the GNU General Public License
14+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
15+
16+
demo.i18n.greetings=Ciao
17+
demo.i18n.from=di
18+
demo.i18n.land=Italy
19+
demo.i18n.language.german=Tedesco
20+
demo.i18n.language.english=Inglese
21+
demo.i18n.language.italian=Italiano
22+
demo.i18n.language.french=Francese
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
/*
2+
Copyright (C) 2018 Naoghuman's dream
3+
4+
This program is free software: you can redistribute it and/or modify
5+
it under the terms of the GNU General Public License as published by
6+
the Free Software Foundation, either version 3 of the License, or
7+
(at your option) any later version.
8+
9+
This program is distributed in the hope that it will be useful,
10+
but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
GNU General Public License for more details.
13+
14+
You should have received a copy of the GNU General Public License
15+
along with this program. If not, see <http://www.gnu.org/licenses/>.
16+
*/
17+
/*
18+
Created on : 25.04.2019, 10:59:43
19+
Since : 0.8.0
20+
Version : 0.8.0
21+
Author : Naoghuman
22+
*/
23+
/* AnchorPane */
24+
.anchor-pane {
25+
-fx-background-color:#A7FFEB;
26+
}
27+
28+
.button {
29+
-fx-background-color:derive(#A7FFEB, -5%);
30+
-fx-background-radius:0;
31+
}
32+
.button:hover {
33+
-fx-background-color:derive(#A7FFEB, 17.5%);
34+
}
35+
.button:pressed {
36+
-fx-background-color:derive(#A7FFEB, 35%);
37+
}
38+
39+
.image-view {
40+
-fx-effect: dropshadow(three-pass-box, rgba(0,0,0,0.6), 10, 0, 0, 0);
41+
}
42+
43+
.vbox-navigation {
44+
-fx-background-color:#1DE9B6;
45+
}
46+

0 commit comments

Comments
 (0)