Commits

shemnon committed 1eb177e

Add Slide to unlock control via extrenal library
Change hello to "Prepare for takeoff"
TIL "Prepare for takeoff" is one word in German.

  • Participants
  • Parent commits 55f1a9d

Comments (0)

Files changed (3)

File samples/FullyExpressed/build.gradle

 apply from: 'https://repository-javafx-gradle-plugin.forge.cloudbees.com/snapshot/javafx.plugin'
 apply plugin: 'idea'
 
+repositories {
+    mavenCentral()
+}
+
+dependencies {
+    compile 'org.jfxtras:jfxtras-labs:2.2-r4'
+}
+
 javafx {
 
     debugKey {

File samples/FullyExpressed/src/main/java/com/bitbucket/shemnon/jfx/sample/fullyexpressed/TheMain.java

 import javafx.fxml.FXMLLoader;
 import javafx.scene.Scene;
 import javafx.scene.layout.StackPane;
+import javafx.scene.layout.VBox;
 import javafx.stage.Stage;
+import jfxtras.labs.scene.control.SlideLockBuilder;
 
 import java.util.ResourceBundle;
 
         fxmlLoader.setResources(ResourceBundle.getBundle("com.bitbucket.shemnon.jfx.sample.fullyexpressed.TheResources"));
         StackPane pane = (StackPane) fxmlLoader.load(this.getClass().getResource("theScene.fxml").openStream());
 
+        ((VBox) fxmlLoader.getNamespace().get("VBox")).getChildren().add(
+            SlideLockBuilder.create().build()
+        );
+
         Scene scene = new Scene(pane);
         scene.getStylesheets().setAll(
                 getClass().getResource("theStyles.css").toExternalForm());

File samples/FullyExpressed/src/main/resources/com/bitbucket/shemnon/jfx/sample/fullyexpressed/theScene.fxml

 <?import javafx.scene.shape.*?>
 <?import javafx.scene.text.*?>
 
-<StackPane id="StackPane" prefHeight="400.0" prefWidth="400.0" xmlns:fx="http://javafx.com/fxml" fx:controller="com.bitbucket.shemnon.jfx.sample.fullyexpressed.TheController">
+<StackPane id="StackPane" prefHeight="600.0" prefWidth="600.0" xmlns:fx="http://javafx.com/fxml" fx:controller="com.bitbucket.shemnon.jfx.sample.fullyexpressed.TheController">
   <children>
-    <VBox id="VBox" alignment="CENTER" spacing="5.0">
+    <VBox id="VBox" fx:id="VBox" alignment="CENTER" spacing="5.0">
       <children>
         <Text id="" strokeType="OUTSIDE" strokeWidth="0.0" styleClass="funnytext" text="Gradle" />
         <Arc fx:id="pie" fill="#fff500" length="270.0" onRotate="#onRotate" onRotationFinished="#onRotateFinished" onRotationStarted="#onRotateStarted" onSwipeDown="#onSwipeDown" onSwipeLeft="#onSwipeLeft" onSwipeRight="#onSwipeRight" onSwipeUp="#onSwipeUp" onTouchMoved="#onTouchMoved" onTouchPressed="#onTouchPressed" onTouchReleased="#onTouchReleased" onTouchStationary="#onTouchStationary" onZoom="#onZoom" onZoomFinished="#onZoomFinished" onZoomStarted="#onZoomStarted" radiusX="100.0" radiusY="100.0" startAngle="45.0" stroke="BLACK" strokeType="INSIDE" type="ROUND" />