Commit ef7e3f6b authored by Riegel's avatar Riegel
Browse files

Feat: Add ZipEntryPicker

2 merge requests!28Version 3.17.0 Release,!26Add ZIP-archive support
Showing with 132 additions and 0 deletions
+132 -0
package de.hft.stuttgart.citydoctor2.gui;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.scene.control.TextArea;
import javafx.stage.Stage;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
public class ZipEntryPicker {
private static final Logger logger = LogManager.getLogger(ZipEntryPicker.class);
private Stage stage;
@FXML
private Button cancelBtn;
@FXML
private Button loadBtn;
@FXML
private TextArea metaArea;
}
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.ProgressBar?>
<?import javafx.scene.control.ScrollPane?>
<?import javafx.scene.control.TextArea?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.control.TitledPane?>
<?import javafx.scene.control.TreeView?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?>
<VBox xmlns="http://javafx.com/javafx/22" xmlns:fx="http://javafx.com/fxml/1">
<children>
<Label fx:id="fileLabel" text="Zip-file path: ">
<padding>
<Insets left="5.0" right="5.0" top="5.0"/>
</padding>
<font>
<Font size="16.0"/>
</font>
</Label>
<HBox>
<children>
<TextField fx:id="pathField" prefColumnCount="25" HBox.hgrow="ALWAYS">
<HBox.margin>
<Insets right="5.0"/>
</HBox.margin>
<font>
<Font size="14.0"/>
</font>
</TextField>
<Button fx:id="selectBtn" maxWidth="1.7976931348623157E308" mnemonicParsing="false" text="Select"
HBox.hgrow="SOMETIMES">
<font>
<Font size="14.0"/>
</font>
</Button>
</children>
<padding>
<Insets bottom="5.0" left="5.0" right="5.0"/>
</padding>
<VBox.margin>
<Insets/>
</VBox.margin>
</HBox>
<HBox prefHeight="200.0" prefWidth="600.0">
<children>
<TitledPane collapsible="false" text="Zip-entries">
<font>
<Font size="14.0"/>
</font>
<content>
<ScrollPane prefHeight="200.0" prefWidth="300.0">
<content>
<TreeView fx:id="entriesTree" prefHeight="200.0" prefWidth="280.0"/>
</content>
</ScrollPane>
</content>
</TitledPane>
<TitledPane fx:id="settingsPane1" collapsible="false" layoutX="10.0" layoutY="10.0" prefWidth="300.0"
text="Metadata">
<font>
<Font size="14.0"/>
</font>
<content>
<ScrollPane prefHeight="200.0" prefWidth="200.0">
<content>
<TextArea fx:id="metaArea" editable="false" prefHeight="200.0" prefWidth="280.0"/>
</content>
</ScrollPane>
</content>
</TitledPane>
</children>
</HBox>
<Button fx:id="loadBtn" alignment="CENTER" maxWidth="1.7976931348623157E308" mnemonicParsing="false"
text=" Load entry">
<font>
<Font size="14.0"/>
</font>
</Button>
<HBox spacing="5.0">
<children>
<ProgressBar fx:id="progress" maxWidth="1.7976931348623157E308" minHeight="40.0" prefHeight="40.0"
progress="0.0" HBox.hgrow="ALWAYS">
<padding>
<Insets bottom="5.0" right="5.0" top="5.0"/>
</padding>
</ProgressBar>
<Button fx:id="cancelBtn" alignment="CENTER" mnemonicParsing="false" text="Cancel">
<font>
<Font size="14.0"/>
</font>
<HBox.margin>
<Insets top="4.0"/>
</HBox.margin>
</Button>
</children>
<padding>
<Insets left="5.0" right="5.0"/>
</padding>
</HBox>
</children>
</VBox>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment