Hilfe in Standartbrowser -> JavaDoc, DoxygenDoc, GitRepo
This commit is contained in:
parent
29476f49e7
commit
a345cb5e49
@ -64,9 +64,9 @@
|
|||||||
<Menu mnemonicParsing="false" text="Optionen" />
|
<Menu mnemonicParsing="false" text="Optionen" />
|
||||||
<Menu mnemonicParsing="false" text="Hilfe">
|
<Menu mnemonicParsing="false" text="Hilfe">
|
||||||
<items>
|
<items>
|
||||||
<MenuItem mnemonicParsing="false" text="Git Repo" />
|
<MenuItem mnemonicParsing="false" onAction="#gitWebBrowser" text="Git Repo" />
|
||||||
<MenuItem mnemonicParsing="false" text="JavaDoc" />
|
<MenuItem mnemonicParsing="false" onAction="#javaDocBrowser" text="JavaDoc" />
|
||||||
<MenuItem mnemonicParsing="false" text="Unspecified Action" />
|
<MenuItem mnemonicParsing="false" onAction="#doxygenDocBrowser" text="Doxygen Doc" />
|
||||||
</items>
|
</items>
|
||||||
</Menu>
|
</Menu>
|
||||||
</menus>
|
</menus>
|
||||||
@ -79,7 +79,7 @@
|
|||||||
<Label layoutX="14.0" layoutY="4.0" text="Tours" />
|
<Label layoutX="14.0" layoutY="4.0" text="Tours" />
|
||||||
<Button fx:id="tourDel" layoutX="89.0" mnemonicParsing="false" onAction="#delTour" text="-" />
|
<Button fx:id="tourDel" layoutX="89.0" mnemonicParsing="false" onAction="#delTour" text="-" />
|
||||||
</children></AnchorPane>
|
</children></AnchorPane>
|
||||||
<TextField fx:id="sucheInput" text="Suche...." />
|
<TextField fx:id="sucheInput" promptText="Suche..." />
|
||||||
<Button fx:id="sucheButton" mnemonicParsing="false" onAction="#suche" text="Suchen" />
|
<Button fx:id="sucheButton" mnemonicParsing="false" onAction="#suche" text="Suchen" />
|
||||||
</children>
|
</children>
|
||||||
<padding>
|
<padding>
|
||||||
|
@ -6,14 +6,21 @@ import javafx.fxml.FXML;
|
|||||||
import javafx.fxml.Initializable;
|
import javafx.fxml.Initializable;
|
||||||
import javafx.geometry.Orientation;
|
import javafx.geometry.Orientation;
|
||||||
import javafx.scene.control.*;
|
import javafx.scene.control.*;
|
||||||
|
import javafx.scene.control.Label;
|
||||||
|
import javafx.scene.control.TextField;
|
||||||
import javafx.scene.control.cell.PropertyValueFactory;
|
import javafx.scene.control.cell.PropertyValueFactory;
|
||||||
import javafx.scene.input.MouseEvent;
|
import javafx.scene.input.MouseEvent;
|
||||||
import javafx.scene.layout.Pane;
|
import javafx.scene.layout.Pane;
|
||||||
import javafx.scene.web.WebView;
|
import javafx.scene.web.WebView;
|
||||||
import tourplaner.business.AlertHelper;
|
import tourplaner.business.AlertHelper;
|
||||||
|
import tourplaner.business.LogHelper;
|
||||||
import tourplaner.object.Tour;
|
import tourplaner.object.Tour;
|
||||||
import tourplaner.viewmodels.ViewModel;
|
import tourplaner.viewmodels.ViewModel;
|
||||||
|
|
||||||
|
import java.awt.*;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.net.URI;
|
||||||
|
import java.net.URISyntaxException;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
import java.util.ResourceBundle;
|
import java.util.ResourceBundle;
|
||||||
|
|
||||||
@ -27,6 +34,50 @@ public class TourplanerController implements Initializable {
|
|||||||
public TableColumn<Tour, String> startCol, zielCol, dauerCol, streckeCol, nameCol;
|
public TableColumn<Tour, String> startCol, zielCol, dauerCol, streckeCol, nameCol;
|
||||||
public TextField titleTextView, sucheInput;
|
public TextField titleTextView, sucheInput;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Öffnet github im standart browser
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@FXML
|
||||||
|
private void gitWebBrowser(){
|
||||||
|
openBrowser("https://git.dergeorg.at/dergeorg/tourplaner", "Git");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Öffnet Java Doc im standart browser
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@FXML
|
||||||
|
private void javaDocBrowser(){
|
||||||
|
openBrowser("https://git.dergeorg.at/dergeorg/tourplaner", "JavaDoc");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Öffnet Doxygen Doc im standart browser
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@FXML
|
||||||
|
private void doxygenDocBrowser(){
|
||||||
|
openBrowser("https://git.dergeorg.at/dergeorg/tourplaner", "Doxygen");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Öffnet einen link im Standart Browser
|
||||||
|
* @param uriString
|
||||||
|
* @param appname
|
||||||
|
*/
|
||||||
|
private void openBrowser(String uriString, String appname){
|
||||||
|
Desktop desktop = java.awt.Desktop.getDesktop();
|
||||||
|
try {
|
||||||
|
URI oURL = new URI(
|
||||||
|
uriString);
|
||||||
|
desktop.browse(oURL);
|
||||||
|
} catch (URISyntaxException | IOException e) {
|
||||||
|
LogHelper.error(e.getMessage(), "TourplanerController -> Browser:" + appname);
|
||||||
|
AlertHelper.exerror("Browser Exception", "TourplanerController -> Browser:" + appname, "Error beim öffnen des Browsers", e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Wird gestartet wenn eine Tour in der Tour listView ausgewählt wird
|
* Wird gestartet wenn eine Tour in der Tour listView ausgewählt wird
|
||||||
* @param mouseEvent Triggered Event
|
* @param mouseEvent Triggered Event
|
||||||
|
Loading…
x
Reference in New Issue
Block a user