Added: cfg4j, log4j, doxygen, Presentation-Model, passende Helper
This commit is contained in:
		@@ -1,4 +0,0 @@
 | 
			
		||||
package tourplaner;
 | 
			
		||||
 | 
			
		||||
public class Controller {
 | 
			
		||||
}
 | 
			
		||||
@@ -5,15 +5,14 @@ import javafx.fxml.FXMLLoader;
 | 
			
		||||
import javafx.scene.Parent;
 | 
			
		||||
import javafx.scene.Scene;
 | 
			
		||||
import javafx.stage.Stage;
 | 
			
		||||
import tourplaner.business.LogHelper;
 | 
			
		||||
import tourplaner.business.TourPlaner;
 | 
			
		||||
 | 
			
		||||
public class Main extends Application {
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
    public void start(Stage primaryStage) throws Exception{
 | 
			
		||||
        Parent root = FXMLLoader.load(getClass().getResource("tourplaner.fxml"));
 | 
			
		||||
        primaryStage.setTitle("Hello World");
 | 
			
		||||
        primaryStage.setScene(new Scene(root, 300, 275));
 | 
			
		||||
        primaryStage.show();
 | 
			
		||||
        TourPlaner tourplaner = new TourPlaner(primaryStage);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										8
									
								
								src/tourplaner/business/ConfigHelper.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								src/tourplaner/business/ConfigHelper.java
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
			
		||||
package tourplaner.business;
 | 
			
		||||
 | 
			
		||||
import org.springframework.beans.factory.annotation.Value;
 | 
			
		||||
 | 
			
		||||
public class ConfigHelper {
 | 
			
		||||
    @Value("${configFilesPath:./config}")
 | 
			
		||||
    private String filesPath; // Run with -DconfigFilesPath=<configFilesPath> parameter to override
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										31
									
								
								src/tourplaner/business/LogHelper.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								src/tourplaner/business/LogHelper.java
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,31 @@
 | 
			
		||||
package tourplaner.business;
 | 
			
		||||
import org.apache.log4j.*;
 | 
			
		||||
import org.apache.log4j.xml.DOMConfigurator;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Hilft beim Logging mit log4j
 | 
			
		||||
 */
 | 
			
		||||
public class LogHelper{
 | 
			
		||||
    private static Logger logger = Logger.getRootLogger();
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Holt den passenden logger für die Anwendung
 | 
			
		||||
     * @return Der Aktuelle passende Logger, null bei error
 | 
			
		||||
     */
 | 
			
		||||
    public static Logger getLogger() {
 | 
			
		||||
        try {
 | 
			
		||||
            SimpleLayout layout = new SimpleLayout();
 | 
			
		||||
            ConsoleAppender consoleAppender = new ConsoleAppender(layout);
 | 
			
		||||
            logger.addAppender(consoleAppender);
 | 
			
		||||
            FileAppender fileAppender = new FileAppender(layout, "../../../logs/tourplaner.log", true);
 | 
			
		||||
            logger.addAppender(fileAppender);
 | 
			
		||||
            // ALL | DEBUG | INFO | WARN | ERROR | FATAL | OFF:
 | 
			
		||||
            logger.setLevel(Level.DEBUG);
 | 
			
		||||
            return logger;
 | 
			
		||||
        } catch (Exception ex) {
 | 
			
		||||
            System.err.println(ex.getMessage());
 | 
			
		||||
            return null;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										24
									
								
								src/tourplaner/business/TourPlaner.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								src/tourplaner/business/TourPlaner.java
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,24 @@
 | 
			
		||||
package tourplaner.business;
 | 
			
		||||
 | 
			
		||||
import javafx.stage.Stage;
 | 
			
		||||
import org.apache.log4j.Logger;
 | 
			
		||||
import tourplaner.ui.PresenterMain;
 | 
			
		||||
 | 
			
		||||
import java.io.IOException;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Haupt Logik des Tourplaners
 | 
			
		||||
 */
 | 
			
		||||
public class TourPlaner{
 | 
			
		||||
    private Logger logger;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Startet alle bennötigten Komponenten
 | 
			
		||||
     * @param primaryStage Stage für den Presenter
 | 
			
		||||
     */
 | 
			
		||||
    public TourPlaner(Stage primaryStage){
 | 
			
		||||
        logger = LogHelper.getLogger(); // Initialiesiert das Logging
 | 
			
		||||
        logger.info("Tour planer Startet!");
 | 
			
		||||
        PresenterMain presenterMain = new PresenterMain(primaryStage, logger);  // Start Presenter/GUI
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										7
									
								
								src/tourplaner/data/DbConnect.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								src/tourplaner/data/DbConnect.java
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,7 @@
 | 
			
		||||
package tourplaner.data;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Verwaltet die Datenbankverbindung zu dem Postgres Server
 | 
			
		||||
 */
 | 
			
		||||
public class DbConnect {
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										7
									
								
								src/tourplaner/model/Tour.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								src/tourplaner/model/Tour.java
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,7 @@
 | 
			
		||||
package tourplaner.model;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Model einer Tour
 | 
			
		||||
 */
 | 
			
		||||
public class Tour {
 | 
			
		||||
}
 | 
			
		||||
@@ -1,156 +0,0 @@
 | 
			
		||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
			
		||||
 | 
			
		||||
<!--
 | 
			
		||||
  Copyright (c) 2015, 2019, Gluon and/or its affiliates.
 | 
			
		||||
  All rights reserved. Use is subject to license terms.
 | 
			
		||||
 | 
			
		||||
  This file is available and licensed under the following license:
 | 
			
		||||
 | 
			
		||||
  Redistribution and use in source and binary forms, with or without
 | 
			
		||||
  modification, are permitted provided that the following conditions
 | 
			
		||||
  are met:
 | 
			
		||||
 | 
			
		||||
  - Redistributions of source code must retain the above copyright
 | 
			
		||||
    notice, this list of conditions and the following disclaimer.
 | 
			
		||||
  - Redistributions in binary form must reproduce the above copyright
 | 
			
		||||
    notice, this list of conditions and the following disclaimer in
 | 
			
		||||
    the documentation and/or other materials provided with the distribution.
 | 
			
		||||
  - Neither the name of Oracle Corporation nor the names of its
 | 
			
		||||
    contributors may be used to endorse or promote products derived
 | 
			
		||||
    from this software without specific prior written permission.
 | 
			
		||||
 | 
			
		||||
  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 | 
			
		||||
  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 | 
			
		||||
  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 | 
			
		||||
  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
 | 
			
		||||
  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 | 
			
		||||
  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 | 
			
		||||
  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 | 
			
		||||
  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 | 
			
		||||
  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 | 
			
		||||
  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 | 
			
		||||
  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 | 
			
		||||
-->
 | 
			
		||||
 | 
			
		||||
<?import javafx.geometry.Insets?>
 | 
			
		||||
<?import javafx.scene.control.Button?>
 | 
			
		||||
<?import javafx.scene.control.Label?>
 | 
			
		||||
<?import javafx.scene.control.Menu?>
 | 
			
		||||
<?import javafx.scene.control.MenuBar?>
 | 
			
		||||
<?import javafx.scene.control.MenuItem?>
 | 
			
		||||
<?import javafx.scene.control.SeparatorMenuItem?>
 | 
			
		||||
<?import javafx.scene.control.SplitPane?>
 | 
			
		||||
<?import javafx.scene.control.TextField?>
 | 
			
		||||
<?import javafx.scene.layout.HBox?>
 | 
			
		||||
<?import javafx.scene.layout.Pane?>
 | 
			
		||||
<?import javafx.scene.layout.VBox?>
 | 
			
		||||
<?import javafx.scene.paint.Color?>
 | 
			
		||||
<?import javafx.scene.text.Font?>
 | 
			
		||||
 | 
			
		||||
<VBox prefHeight="600.0" prefWidth="900.0" xmlns="http://javafx.com/javafx/11.0.2" xmlns:fx="http://javafx.com/fxml/1">
 | 
			
		||||
  <children>
 | 
			
		||||
    <MenuBar VBox.vgrow="NEVER">
 | 
			
		||||
      <menus>
 | 
			
		||||
        <Menu mnemonicParsing="false" text="File">
 | 
			
		||||
          <items>
 | 
			
		||||
            <MenuItem mnemonicParsing="false" text="New" />
 | 
			
		||||
            <MenuItem mnemonicParsing="false" text="Open…" />
 | 
			
		||||
            <Menu mnemonicParsing="false" text="Open Recent" />
 | 
			
		||||
            <SeparatorMenuItem mnemonicParsing="false" />
 | 
			
		||||
            <MenuItem mnemonicParsing="false" text="Close" />
 | 
			
		||||
            <MenuItem mnemonicParsing="false" text="Save" />
 | 
			
		||||
            <MenuItem mnemonicParsing="false" text="Save As…" />
 | 
			
		||||
            <MenuItem mnemonicParsing="false" text="Revert" />
 | 
			
		||||
            <SeparatorMenuItem mnemonicParsing="false" />
 | 
			
		||||
            <MenuItem mnemonicParsing="false" text="Preferences…" />
 | 
			
		||||
            <SeparatorMenuItem mnemonicParsing="false" />
 | 
			
		||||
            <MenuItem mnemonicParsing="false" text="Quit" />
 | 
			
		||||
          </items>
 | 
			
		||||
        </Menu>
 | 
			
		||||
        <Menu mnemonicParsing="false" text="Edit">
 | 
			
		||||
          <items>
 | 
			
		||||
            <MenuItem mnemonicParsing="false" text="Undo" />
 | 
			
		||||
            <MenuItem mnemonicParsing="false" text="Redo" />
 | 
			
		||||
            <SeparatorMenuItem mnemonicParsing="false" />
 | 
			
		||||
            <MenuItem mnemonicParsing="false" text="Cut" />
 | 
			
		||||
            <MenuItem mnemonicParsing="false" text="Copy" />
 | 
			
		||||
            <MenuItem mnemonicParsing="false" text="Paste" />
 | 
			
		||||
            <MenuItem mnemonicParsing="false" text="Delete" />
 | 
			
		||||
            <SeparatorMenuItem mnemonicParsing="false" />
 | 
			
		||||
            <MenuItem mnemonicParsing="false" text="Select All" />
 | 
			
		||||
            <MenuItem mnemonicParsing="false" text="Unselect All" />
 | 
			
		||||
          </items>
 | 
			
		||||
        </Menu>
 | 
			
		||||
            <Menu mnemonicParsing="false" text="Options">
 | 
			
		||||
               <items>
 | 
			
		||||
                  <MenuItem mnemonicParsing="false" text="Undo" />
 | 
			
		||||
                  <MenuItem mnemonicParsing="false" text="Redo" />
 | 
			
		||||
                  <SeparatorMenuItem mnemonicParsing="false" />
 | 
			
		||||
                  <MenuItem mnemonicParsing="false" text="Cut" />
 | 
			
		||||
                  <MenuItem mnemonicParsing="false" text="Copy" />
 | 
			
		||||
                  <MenuItem mnemonicParsing="false" text="Paste" />
 | 
			
		||||
                  <MenuItem mnemonicParsing="false" text="Delete" />
 | 
			
		||||
                  <SeparatorMenuItem mnemonicParsing="false" />
 | 
			
		||||
                  <MenuItem mnemonicParsing="false" text="Select All" />
 | 
			
		||||
                  <MenuItem mnemonicParsing="false" text="Unselect All" />
 | 
			
		||||
               </items>
 | 
			
		||||
            </Menu>
 | 
			
		||||
        <Menu mnemonicParsing="false" text="Help">
 | 
			
		||||
          <items>
 | 
			
		||||
            <MenuItem mnemonicParsing="false" text="About MyHelloApp" />
 | 
			
		||||
          </items>
 | 
			
		||||
        </Menu>
 | 
			
		||||
      </menus>
 | 
			
		||||
    </MenuBar>
 | 
			
		||||
      <HBox id="HBox" alignment="CENTER_LEFT" layoutX="10.0" layoutY="588.0" spacing="5.0">
 | 
			
		||||
         <children>
 | 
			
		||||
            <Pane prefHeight="-1.0" prefWidth="-1.0" HBox.hgrow="ALWAYS" />
 | 
			
		||||
            <TextField text="Suche...." />
 | 
			
		||||
            <Button mnemonicParsing="false" text="Suchen" />
 | 
			
		||||
         </children>
 | 
			
		||||
         <padding>
 | 
			
		||||
            <Insets bottom="3.0" left="3.0" right="3.0" top="3.0" />
 | 
			
		||||
         </padding>
 | 
			
		||||
      </HBox>
 | 
			
		||||
    <SplitPane dividerPositions="0.5" focusTraversable="true" prefHeight="-1.0" prefWidth="-1.0" VBox.vgrow="ALWAYS">
 | 
			
		||||
      <items>
 | 
			
		||||
            <Pane prefHeight="200.0" prefWidth="200.0">
 | 
			
		||||
               <children>
 | 
			
		||||
                  <Label layoutX="79.0" layoutY="57.0" text="Inhalt" />
 | 
			
		||||
               </children>
 | 
			
		||||
            </Pane>
 | 
			
		||||
            <SplitPane dividerPositions="0.5" orientation="VERTICAL" prefHeight="200.0" prefWidth="160.0">
 | 
			
		||||
               <items>
 | 
			
		||||
                  <Pane prefHeight="200.0" prefWidth="200.0">
 | 
			
		||||
                     <children>
 | 
			
		||||
                        <Label text="Inhalt" />
 | 
			
		||||
                     </children>
 | 
			
		||||
                  </Pane>
 | 
			
		||||
                  <Pane prefHeight="200.0" prefWidth="200.0">
 | 
			
		||||
                     <children>
 | 
			
		||||
                        <Label text="Inhalt" />
 | 
			
		||||
                     </children>
 | 
			
		||||
                  </Pane>
 | 
			
		||||
               </items>
 | 
			
		||||
            </SplitPane>
 | 
			
		||||
      </items>
 | 
			
		||||
    </SplitPane>
 | 
			
		||||
    <HBox id="HBox" alignment="CENTER_LEFT" spacing="5.0" VBox.vgrow="NEVER">
 | 
			
		||||
      <children>
 | 
			
		||||
        <Label maxHeight="1.7976931348623157E308" maxWidth="-1.0" text="Left status" HBox.hgrow="ALWAYS">
 | 
			
		||||
          <font>
 | 
			
		||||
            <Font size="11.0" fx:id="x3" />
 | 
			
		||||
          </font>
 | 
			
		||||
          <textFill>
 | 
			
		||||
            <Color red="0.625" green="0.625" blue="0.625" fx:id="x4" />
 | 
			
		||||
          </textFill>
 | 
			
		||||
        </Label>
 | 
			
		||||
        <Pane prefHeight="-1.0" prefWidth="-1.0" HBox.hgrow="ALWAYS" />
 | 
			
		||||
        <Label font="$x3" maxWidth="-1.0" text="Right status" textFill="$x4" HBox.hgrow="NEVER" />
 | 
			
		||||
      </children>
 | 
			
		||||
      <padding>
 | 
			
		||||
        <Insets bottom="3.0" left="3.0" right="3.0" top="3.0" />
 | 
			
		||||
      </padding>
 | 
			
		||||
    </HBox>
 | 
			
		||||
  </children>
 | 
			
		||||
</VBox>
 | 
			
		||||
							
								
								
									
										33
									
								
								src/tourplaner/ui/PresenterMain.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								src/tourplaner/ui/PresenterMain.java
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,33 @@
 | 
			
		||||
package tourplaner.ui;
 | 
			
		||||
 | 
			
		||||
import javafx.fxml.FXMLLoader;
 | 
			
		||||
import javafx.scene.Parent;
 | 
			
		||||
import javafx.scene.Scene;
 | 
			
		||||
import javafx.stage.Stage;
 | 
			
		||||
import org.apache.log4j.Logger;
 | 
			
		||||
 | 
			
		||||
import java.io.IOException;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Presenter des Tourplaners
 | 
			
		||||
 */
 | 
			
		||||
public class PresenterMain {
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Startet die Gui
 | 
			
		||||
     * @param primaryStage Stage der GUI
 | 
			
		||||
     * @param logger Aktueller Logger
 | 
			
		||||
     */
 | 
			
		||||
    public PresenterMain(Stage primaryStage, Logger logger){
 | 
			
		||||
        Parent root = null;
 | 
			
		||||
        try {
 | 
			
		||||
            root = FXMLLoader.load(getClass().getResource("../ui/tourplaner.fxml"));
 | 
			
		||||
            primaryStage.setTitle("DerGeorg Touren Planer");
 | 
			
		||||
            primaryStage.setScene(new Scene(root, 600, 600));
 | 
			
		||||
            primaryStage.show();
 | 
			
		||||
        } catch (IOException e) {
 | 
			
		||||
            logger.error(e.getMessage());
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										237
									
								
								src/tourplaner/ui/tourplaner.fxml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										237
									
								
								src/tourplaner/ui/tourplaner.fxml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,237 @@
 | 
			
		||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
			
		||||
 | 
			
		||||
<!--
 | 
			
		||||
  Copyright (c) 2015, 2019, Gluon and/or its affiliates.
 | 
			
		||||
  All rights reserved. Use is subject to license terms.
 | 
			
		||||
 | 
			
		||||
  This file is available and licensed under the following license:
 | 
			
		||||
 | 
			
		||||
  Redistribution and use in source and binary forms, with or without
 | 
			
		||||
  modification, are permitted provided that the following conditions
 | 
			
		||||
  are met:
 | 
			
		||||
 | 
			
		||||
  - Redistributions of source code must retain the above copyright
 | 
			
		||||
    notice, this list of conditions and the following disclaimer.
 | 
			
		||||
  - Redistributions in binary form must reproduce the above copyright
 | 
			
		||||
    notice, this list of conditions and the following disclaimer in
 | 
			
		||||
    the documentation and/or other materials provided with the distribution.
 | 
			
		||||
  - Neither the name of Oracle Corporation nor the names of its
 | 
			
		||||
    contributors may be used to endorse or promote products derived
 | 
			
		||||
    from this software without specific prior written permission.
 | 
			
		||||
 | 
			
		||||
  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 | 
			
		||||
  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 | 
			
		||||
  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 | 
			
		||||
  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
 | 
			
		||||
  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 | 
			
		||||
  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 | 
			
		||||
  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 | 
			
		||||
  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 | 
			
		||||
  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 | 
			
		||||
  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 | 
			
		||||
  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 | 
			
		||||
-->
 | 
			
		||||
 | 
			
		||||
<?import javafx.geometry.Insets?>
 | 
			
		||||
<?import javafx.scene.control.Button?>
 | 
			
		||||
<?import javafx.scene.control.Label?>
 | 
			
		||||
<?import javafx.scene.control.ListView?>
 | 
			
		||||
<?import javafx.scene.control.Menu?>
 | 
			
		||||
<?import javafx.scene.control.MenuBar?>
 | 
			
		||||
<?import javafx.scene.control.MenuItem?>
 | 
			
		||||
<?import javafx.scene.control.SeparatorMenuItem?>
 | 
			
		||||
<?import javafx.scene.control.SplitPane?>
 | 
			
		||||
<?import javafx.scene.control.Tab?>
 | 
			
		||||
<?import javafx.scene.control.TabPane?>
 | 
			
		||||
<?import javafx.scene.control.TableColumn?>
 | 
			
		||||
<?import javafx.scene.control.TableView?>
 | 
			
		||||
<?import javafx.scene.control.TextField?>
 | 
			
		||||
<?import javafx.scene.layout.AnchorPane?>
 | 
			
		||||
<?import javafx.scene.layout.HBox?>
 | 
			
		||||
<?import javafx.scene.layout.VBox?>
 | 
			
		||||
<?import javafx.scene.paint.Color?>
 | 
			
		||||
<?import javafx.scene.text.Font?>
 | 
			
		||||
 | 
			
		||||
<VBox prefHeight="600.0" prefWidth="900.0" xmlns="http://javafx.com/javafx/15.0.1" xmlns:fx="http://javafx.com/fxml/1">
 | 
			
		||||
  <children>
 | 
			
		||||
    <MenuBar VBox.vgrow="NEVER">
 | 
			
		||||
      <menus>
 | 
			
		||||
        <Menu mnemonicParsing="false" text="File">
 | 
			
		||||
          <items>
 | 
			
		||||
            <MenuItem mnemonicParsing="false" text="New" />
 | 
			
		||||
            <MenuItem mnemonicParsing="false" text="Open…" />
 | 
			
		||||
            <Menu mnemonicParsing="false" text="Open Recent" />
 | 
			
		||||
            <SeparatorMenuItem mnemonicParsing="false" />
 | 
			
		||||
            <MenuItem mnemonicParsing="false" text="Close" />
 | 
			
		||||
            <MenuItem mnemonicParsing="false" text="Save" />
 | 
			
		||||
            <MenuItem mnemonicParsing="false" text="Save As…" />
 | 
			
		||||
            <MenuItem mnemonicParsing="false" text="Revert" />
 | 
			
		||||
            <SeparatorMenuItem mnemonicParsing="false" />
 | 
			
		||||
            <MenuItem mnemonicParsing="false" text="Preferences…" />
 | 
			
		||||
            <SeparatorMenuItem mnemonicParsing="false" />
 | 
			
		||||
            <MenuItem mnemonicParsing="false" text="Quit" />
 | 
			
		||||
          </items>
 | 
			
		||||
        </Menu>
 | 
			
		||||
        <Menu mnemonicParsing="false" text="Edit">
 | 
			
		||||
          <items>
 | 
			
		||||
            <MenuItem mnemonicParsing="false" text="Undo" />
 | 
			
		||||
            <MenuItem mnemonicParsing="false" text="Redo" />
 | 
			
		||||
            <SeparatorMenuItem mnemonicParsing="false" />
 | 
			
		||||
            <MenuItem mnemonicParsing="false" text="Cut" />
 | 
			
		||||
            <MenuItem mnemonicParsing="false" text="Copy" />
 | 
			
		||||
            <MenuItem mnemonicParsing="false" text="Paste" />
 | 
			
		||||
            <MenuItem mnemonicParsing="false" text="Delete" />
 | 
			
		||||
            <SeparatorMenuItem mnemonicParsing="false" />
 | 
			
		||||
            <MenuItem mnemonicParsing="false" text="Select All" />
 | 
			
		||||
            <MenuItem mnemonicParsing="false" text="Unselect All" />
 | 
			
		||||
          </items>
 | 
			
		||||
        </Menu>
 | 
			
		||||
            <Menu mnemonicParsing="false" text="Options">
 | 
			
		||||
               <items>
 | 
			
		||||
                  <MenuItem mnemonicParsing="false" text="Undo" />
 | 
			
		||||
                  <MenuItem mnemonicParsing="false" text="Redo" />
 | 
			
		||||
                  <SeparatorMenuItem mnemonicParsing="false" />
 | 
			
		||||
                  <MenuItem mnemonicParsing="false" text="Cut" />
 | 
			
		||||
                  <MenuItem mnemonicParsing="false" text="Copy" />
 | 
			
		||||
                  <MenuItem mnemonicParsing="false" text="Paste" />
 | 
			
		||||
                  <MenuItem mnemonicParsing="false" text="Delete" />
 | 
			
		||||
                  <SeparatorMenuItem mnemonicParsing="false" />
 | 
			
		||||
                  <MenuItem mnemonicParsing="false" text="Select All" />
 | 
			
		||||
                  <MenuItem mnemonicParsing="false" text="Unselect All" />
 | 
			
		||||
               </items>
 | 
			
		||||
            </Menu>
 | 
			
		||||
        <Menu mnemonicParsing="false" text="Help">
 | 
			
		||||
          <items>
 | 
			
		||||
            <MenuItem mnemonicParsing="false" text="About MyHelloApp" />
 | 
			
		||||
          </items>
 | 
			
		||||
        </Menu>
 | 
			
		||||
      </menus>
 | 
			
		||||
    </MenuBar>
 | 
			
		||||
      <HBox id="HBox" alignment="CENTER_LEFT" layoutX="10.0" layoutY="588.0" spacing="5.0">
 | 
			
		||||
         <children>
 | 
			
		||||
            <AnchorPane prefHeight="-1.0" prefWidth="-1.0" HBox.hgrow="ALWAYS">
 | 
			
		||||
               <children>
 | 
			
		||||
                  <Button layoutX="58.0" mnemonicParsing="false" text="+" />
 | 
			
		||||
                  <Label layoutX="14.0" layoutY="4.0" text="Tours" />
 | 
			
		||||
                  <Button layoutX="89.0" mnemonicParsing="false" text="-" />
 | 
			
		||||
               </children></AnchorPane>
 | 
			
		||||
            <TextField text="Suche...." />
 | 
			
		||||
            <Button mnemonicParsing="false" text="Suchen" />
 | 
			
		||||
         </children>
 | 
			
		||||
         <padding>
 | 
			
		||||
            <Insets bottom="3.0" left="3.0" right="3.0" top="3.0" />
 | 
			
		||||
         </padding>
 | 
			
		||||
      </HBox>
 | 
			
		||||
    <SplitPane dividerPositions="0.21492204899777284" focusTraversable="true" prefHeight="522.0" prefWidth="900.0" VBox.vgrow="ALWAYS">
 | 
			
		||||
      <items>
 | 
			
		||||
            <AnchorPane prefHeight="520.0" prefWidth="239.0">
 | 
			
		||||
               <children>
 | 
			
		||||
                  <ListView layoutX="-1.0" prefHeight="520.0" prefWidth="190.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
 | 
			
		||||
                     <padding>
 | 
			
		||||
                        <Insets bottom="20.0" left="20.0" right="20.0" top="20.0" />
 | 
			
		||||
                     </padding>
 | 
			
		||||
                  </ListView>
 | 
			
		||||
               </children>
 | 
			
		||||
            </AnchorPane>
 | 
			
		||||
            <SplitPane dividerPositions="0.5" orientation="VERTICAL" prefHeight="496.0" prefWidth="620.0">
 | 
			
		||||
               <items>
 | 
			
		||||
                  <VBox prefHeight="200.0" prefWidth="100.0">
 | 
			
		||||
                     <children>
 | 
			
		||||
                        <AnchorPane prefHeight="51.0" prefWidth="676.0">
 | 
			
		||||
                           <children>
 | 
			
		||||
                              <HBox id="HBox" alignment="CENTER_LEFT" prefHeight="7.0" prefWidth="44.0" spacing="5.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
 | 
			
		||||
                                 <children>
 | 
			
		||||
                                    <Label text="Title:">
 | 
			
		||||
                                       <HBox.margin>
 | 
			
		||||
                                          <Insets left="10.0" />
 | 
			
		||||
                                       </HBox.margin>
 | 
			
		||||
                                    </Label>
 | 
			
		||||
                                    <TextField />
 | 
			
		||||
                                 </children>
 | 
			
		||||
                              </HBox>
 | 
			
		||||
                           </children>
 | 
			
		||||
                        </AnchorPane>
 | 
			
		||||
                        <AnchorPane prefHeight="200.0" prefWidth="200.0">
 | 
			
		||||
                           <children>
 | 
			
		||||
                              <TabPane layoutX="1.0" layoutY="69.0" prefHeight="225.0" prefWidth="702.0" tabClosingPolicy="UNAVAILABLE" AnchorPane.bottomAnchor="-67.0" AnchorPane.leftAnchor="1.0" AnchorPane.rightAnchor="1.0" AnchorPane.topAnchor="0.0">
 | 
			
		||||
                                 <tabs>
 | 
			
		||||
                                    <Tab text="Route" />
 | 
			
		||||
                                    <Tab text="Description">
 | 
			
		||||
                                       <content>
 | 
			
		||||
                                          <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0" />
 | 
			
		||||
                                       </content>
 | 
			
		||||
                                    </Tab>
 | 
			
		||||
                                 </tabs>
 | 
			
		||||
                              </TabPane>
 | 
			
		||||
                           </children>
 | 
			
		||||
                        </AnchorPane>
 | 
			
		||||
                     </children>
 | 
			
		||||
                  </VBox>
 | 
			
		||||
                  <AnchorPane prefHeight="200.0" prefWidth="200.0">
 | 
			
		||||
                     <children>
 | 
			
		||||
                        <VBox prefHeight="200.0" prefWidth="100.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
 | 
			
		||||
                           <children>
 | 
			
		||||
                              <AnchorPane prefHeight="51.0" prefWidth="676.0">
 | 
			
		||||
                                 <children>
 | 
			
		||||
                                    <HBox id="HBox" alignment="CENTER_LEFT" prefHeight="38.0" prefWidth="702.0" spacing="5.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
 | 
			
		||||
                                       <children>
 | 
			
		||||
                                          <Label text="Logs:">
 | 
			
		||||
                                             <HBox.margin>
 | 
			
		||||
                                                <Insets left="10.0" />
 | 
			
		||||
                                             </HBox.margin>
 | 
			
		||||
                                          </Label>
 | 
			
		||||
                                          <Button mnemonicParsing="false" text="+" textAlignment="CENTER">
 | 
			
		||||
                                             <HBox.margin>
 | 
			
		||||
                                                <Insets />
 | 
			
		||||
                                             </HBox.margin>
 | 
			
		||||
                                          </Button>
 | 
			
		||||
                                          <Button mnemonicParsing="false" prefWidth="21.0" text="-" textAlignment="CENTER">
 | 
			
		||||
                                             <HBox.margin>
 | 
			
		||||
                                                <Insets right="10.0" />
 | 
			
		||||
                                             </HBox.margin>
 | 
			
		||||
                                          </Button>
 | 
			
		||||
                                       </children>
 | 
			
		||||
                                       <padding>
 | 
			
		||||
                                          <Insets bottom="3.0" left="3.0" right="3.0" top="3.0" />
 | 
			
		||||
                                       </padding>
 | 
			
		||||
                                    </HBox>
 | 
			
		||||
                                 </children>
 | 
			
		||||
                              </AnchorPane>
 | 
			
		||||
                              <AnchorPane prefHeight="200.0" prefWidth="200.0">
 | 
			
		||||
                                 <children>
 | 
			
		||||
                                    <TableView prefHeight="209.0" prefWidth="702.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
 | 
			
		||||
                                      <columns>
 | 
			
		||||
                                        <TableColumn prefWidth="238.0" text="Date" />
 | 
			
		||||
                                        <TableColumn prefWidth="223.0" text="Duration" />
 | 
			
		||||
                                          <TableColumn prefWidth="240.0" text="Distance" />
 | 
			
		||||
                                      </columns>
 | 
			
		||||
                                    </TableView>
 | 
			
		||||
                                 </children>
 | 
			
		||||
                              </AnchorPane>
 | 
			
		||||
                           </children>
 | 
			
		||||
                        </VBox>
 | 
			
		||||
                     </children>
 | 
			
		||||
                  </AnchorPane>
 | 
			
		||||
               </items>
 | 
			
		||||
            </SplitPane>
 | 
			
		||||
      </items>
 | 
			
		||||
    </SplitPane>
 | 
			
		||||
    <HBox id="HBox" alignment="CENTER_LEFT" spacing="5.0" VBox.vgrow="NEVER">
 | 
			
		||||
      <children>
 | 
			
		||||
        <Label maxHeight="1.7976931348623157E308" maxWidth="-1.0" text="Left status" HBox.hgrow="ALWAYS">
 | 
			
		||||
          <font>
 | 
			
		||||
            <Font size="11.0" fx:id="x3" />
 | 
			
		||||
          </font>
 | 
			
		||||
          <textFill>
 | 
			
		||||
            <Color red="0.625" green="0.625" blue="0.625" fx:id="x4" />
 | 
			
		||||
          </textFill>
 | 
			
		||||
        </Label>
 | 
			
		||||
        <AnchorPane prefHeight="-1.0" prefWidth="-1.0" HBox.hgrow="ALWAYS" />
 | 
			
		||||
        <Label font="$x3" maxWidth="-1.0" text="Right status" textFill="$x4" HBox.hgrow="NEVER" />
 | 
			
		||||
      </children>
 | 
			
		||||
      <padding>
 | 
			
		||||
        <Insets bottom="3.0" left="3.0" right="3.0" top="3.0" />
 | 
			
		||||
      </padding>
 | 
			
		||||
    </HBox>
 | 
			
		||||
  </children>
 | 
			
		||||
</VBox>
 | 
			
		||||
		Reference in New Issue
	
	Block a user