Skip to content

Commit

Permalink
MS: added bootstrap version to splashscreen (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fim-84 authored May 5, 2023
1 parent d9bac84 commit 626a5fa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions fx/src/main/java/org/unigrid/janus/view/SplashScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ of the License (see COPYING and COPYING.addendum).
import org.apache.commons.io.monitor.FileAlterationObserver;
import org.kordamp.ikonli.javafx.FontIcon;
import org.unigrid.janus.controller.SplashScreenController;
import org.unigrid.janus.model.BootstrapModel;
import org.unigrid.janus.model.DataDirectory;
import org.unigrid.janus.model.JanusModel;
import org.unigrid.janus.model.cdi.Eager;
Expand Down Expand Up @@ -80,6 +81,7 @@ public class SplashScreen implements Window {
private Label text;
private Label status;
private Label lbl;
private Label lblBootstrapVersion;
private FileAlterationMonitor monitor = new FileAlterationMonitor(2000);

@PostConstruct
Expand All @@ -93,6 +95,8 @@ private void init() {
public void show() {
lbl = (Label) stageSplash.getScene().lookup("#verLbl");
lbl.setText("version: ".concat(janusModel.getVersion()));
lblBootstrapVersion = (Label) stageSplash.getScene().lookup("#lblBootstrapVersion");
lblBootstrapVersion.setText("installer: ".concat(BootstrapModel.getBootstrapVer()));

try {
stageSplash.show();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<?import javafx.stage.Stage?>
<?import org.kordamp.ikonli.javafx.FontIcon?>

<Stage height="220.0" title="Unigrid Janus Splash Screen" xmlns="http://javafx.com/javafx/" xmlns:fx="http://javafx.com/fxml/1" fx:controller="org.unigrid.janus.controller.SplashScreenController">
<Stage height="220.0" title="Unigrid Janus Splash Screen" xmlns="http://javafx.com/javafx/18" xmlns:fx="http://javafx.com/fxml/1" fx:controller="org.unigrid.janus.controller.SplashScreenController">
<scene>
<Scene>
<root>
Expand Down Expand Up @@ -61,13 +61,18 @@
</Label>
</children>
</FlowPane>
<FlowPane alignment="CENTER" columnHalignment="CENTER" prefHeight="20.0" prefWidth="90.0" GridPane.columnIndex="2" GridPane.rowIndex="4">
<FlowPane alignment="CENTER" columnHalignment="CENTER" orientation="VERTICAL" prefHeight="20.0" prefWidth="90.0" GridPane.columnIndex="2" GridPane.rowIndex="4">
<children>
<Label fx:id="verLbl" text="version:" textAlignment="CENTER" textFill="#ababab">
<font>
<Font size="9.0" />
</font>
</Label>
<Label fx:id="lblBootstrapVersion" text="version:" textAlignment="CENTER" textFill="#ababab">
<font>
<Font size="9.0" />
</font>
</Label>
</children>
</FlowPane>
<TextArea fx:id="debugTxt" maxHeight="200.0" visible="false" GridPane.columnSpan="3" GridPane.rowIndex="6">
Expand Down

0 comments on commit 626a5fa

Please sign in to comment.