Skip to content
Snippets Groups Projects
Commit 313d948a authored by julipits's avatar julipits
Browse files

Pääikkunan uudelleenjärjestely

parent 671788e8
No related branches found
No related tags found
No related merge requests found
......@@ -14,152 +14,101 @@
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.Pane?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?>
<BorderPane minWidth="1000.0" prefHeight="800.0" prefWidth="1000.0" xmlns="http://javafx.com/javafx/23.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="fxKohtaushallinta.KohtaushallintaGUIController">
<bottom>
<VBox BorderPane.alignment="CENTER">
<BorderPane prefHeight="800.0" prefWidth="1000.0" xmlns="http://javafx.com/javafx/23.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="fxKohtaushallinta.KohtaushallintaGUIController">
<top>
<MenuBar BorderPane.alignment="CENTER">
<menus>
<Menu mnemonicParsing="false" text="Tiedosto">
<items>
<MenuItem mnemonicParsing="false" text="Uusi kohtauslista" />
<MenuItem mnemonicParsing="false" text="Lataa kohtauslista" />
<MenuItem mnemonicParsing="false" text="Sulje" />
</items>
</Menu>
<Menu mnemonicParsing="false" text="Muokkaa">
<items>
<MenuItem mnemonicParsing="false" text="Uusi kohtaus" />
<MenuItem mnemonicParsing="false" text="Uusi hahmo" />
<MenuItem mnemonicParsing="false" text="Uusi asia / esine" />
</items>
</Menu>
<Menu mnemonicParsing="false" text="Apua">
<items>
<MenuItem mnemonicParsing="false" text="Tietoja" />
</items>
</Menu>
</menus>
</MenuBar>
</top>
<left>
<VBox prefWidth="500.0" spacing="10.0" style="-fx-border-color: gray; -fx-border-radius: 5;" BorderPane.alignment="CENTER">
<children>
<HBox spacing="5.0">
<HBox prefHeight="400.0" prefWidth="400.0">
<children>
<VBox prefWidth="600.0">
<VBox prefWidth="350.0" spacing="10.0">
<children>
<TextField id="txtValittuKohtaus" disable="true" promptText="Valittu kohtaus">
<HBox fillHeight="false" prefHeight="30.0">
<children>
<TextField id="txtHahmotSuodatin" prefWidth="200.0" promptText="Suodatin">
<HBox.margin>
<Insets right="5.0" />
</HBox.margin>
</TextField>
<Button id="btnTyhjennaSuodattimet" fx:id="btnTyhjennaSuodattimet2" mnemonicParsing="false" onAction="#handleTyhjennaSuodattimet" prefWidth="80.0" text="Tyhjennä" />
</children>
<VBox.margin>
<Insets bottom="5.0" />
<Insets top="5.0" />
</VBox.margin>
</TextField>
<TextArea id="txtAreaKohtauksenKuvaus" promptText="Kohtauksen kuvaus" />
</HBox>
<ComboBox id="cmbHahmotAvain1" prefWidth="300.0" promptText="Avainsana">
<padding>
<Insets right="5.0" />
</padding>
</ComboBox>
<ListChooser fx:id="lstChooserTietueet2" onMouseClicked="#handleTietueKlikkaus" rivit="Osanna Windandus&#10;Erich Stahlhaken&#10;Ankerias&#10;Josef Specht&#10;Johanna Karstedt&#10;Hanno" />
</children>
<HBox.margin>
<Insets bottom="5.0" left="5.0" top="5.0" />
</HBox.margin>
<padding>
<Insets right="10.0" />
</padding>
</VBox>
<VBox prefWidth="600.0">
<VBox alignment="CENTER" prefWidth="250.0" spacing="20.0">
<children>
<Label text="Muistiinpanot">
<font>
<Font size="14.0" />
</font>
<VBox.margin>
<Insets top="5.0" />
</VBox.margin>
</Label>
<TextArea id="txtAreaMuistiinpanot" promptText="Pelinjohtajan muistiinpanot">
<VBox.margin>
<Insets top="5.0" />
</VBox.margin>
</TextArea>
<Button id="btnSuljeOhjelma" mnemonicParsing="false" prefHeight="40.0" prefWidth="120.0" text="AVAA KOHTAUS" textAlignment="CENTER" />
<Pane prefHeight="20.0" />
<Button id="btnUusiKohtaus" mnemonicParsing="false" prefHeight="40.0" prefWidth="120.0" text="UUSI KOHTAUS" textAlignment="CENTER" />
<Button id="btnPoistaKohtaus" mnemonicParsing="false" onAction="#handlePoistaKohtaus" prefHeight="40.0" prefWidth="120.0" text="POISTA KOHTAUS" textAlignment="CENTER" />
<Button id="btnPoistaKohtaus" mnemonicParsing="false" onAction="#handlePoistaKohtaus" prefHeight="50.0" prefWidth="120.0" text="MUOKKAA KOHTAUSTA" textAlignment="CENTER" wrapText="true" />
<Pane prefHeight="20.0" />
<Button id="btnSuljeOhjelma" mnemonicParsing="false" prefHeight="40.0" prefWidth="120.0" text="SULJE OHJELMA" textAlignment="CENTER" />
</children>
<padding>
<Insets bottom="10.0" top="10.0" />
</padding>
</VBox>
</children>
</HBox>
<TextArea id="txtAreaKohtauksenKuvaus" promptText="Kohtauksen kuvaus" />
<Label text="Muistiinpanot:" />
<TextArea id="txtAreaMuistiinpanot" promptText="Pelinjohtajan muistiinpanot" />
</children>
<BorderPane.margin>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
<Insets bottom="10.0" left="10.0" top="10.0" />
</BorderPane.margin>
<padding>
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
</padding>
</VBox>
</bottom>
<left>
<BorderPane prefHeight="200.0" prefWidth="200.0" BorderPane.alignment="CENTER">
<top>
<Label text="Kohtaukset" BorderPane.alignment="CENTER_LEFT">
<font>
<Font size="14.0" />
</font>
</Label>
</top>
<opaqueInsets>
<Insets />
</opaqueInsets>
<right>
<VBox alignment="CENTER" minHeight="500.0" minWidth="130.0" prefWidth="130.0" spacing="20.0" BorderPane.alignment="CENTER">
<children>
<Button id="btnUusiLista" fx:id="btnUusiLista" minHeight="40.0" minWidth="120.0" mnemonicParsing="false" onAction="#handleUusiLista" text="UUSI LISTA" />
<Button id="btnLataaLista" minHeight="40.0" minWidth="120.0" mnemonicParsing="false" text="LATAA LISTA" />
<Pane prefHeight="40.0" />
<Button id="btnUusiKohtaus" minHeight="40.0" minWidth="120.0" mnemonicParsing="false" text="UUSI KOHTAUS" />
<Button id="btnPoistaKohtaus" minHeight="40.0" minWidth="120.0" mnemonicParsing="false" text="POISTA KOHTAUS" onAction="#handlePoistaKohtaus" />
<Pane prefHeight="40.0" />
<Button id="btnSuljeOhjelma" minHeight="40.0" minWidth="120.0" mnemonicParsing="false" text="SULJE OHJELMA" />
</children>
<BorderPane.margin>
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
</BorderPane.margin>
</VBox>
</right>
<center>
<VBox minWidth="250.0" prefWidth="300.0" BorderPane.alignment="CENTER">
<children>
<HBox>
<children>
<TextField id="txtKohtauksetSuodatin" promptText="Suodatin">
<HBox.margin>
<Insets right="5.0" />
</HBox.margin>
</TextField>
<Button id="btnKohtauksetTyhjenna" mnemonicParsing="false" text="Tyhjennä" />
</children>
<VBox.margin>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
</VBox.margin>
</HBox>
<HBox>
<children>
<ComboBox id="cmbKohtauksetAvain1" prefWidth="150.0" promptText="Avainsana">
<padding>
<Insets right="5.0" />
</padding>
<HBox.margin>
<Insets right="5.0" />
</HBox.margin>
</ComboBox>
<ComboBox id="cmbKohtauksetAvain2" prefWidth="150.0" promptText="Avainsana" />
</children>
<VBox.margin>
<Insets bottom="5.0" left="5.0" right="5.0" />
</VBox.margin>
</HBox>
<ListChooser id="listKohtaukset" prefHeight="532.0" prefWidth="250.0" rivit="&#10;Majatalo&#10;Tapaaminen teatterissa&#10;Väijytys varastossa&#10;Keskustori" />
</children>
</VBox>
</center>
<BorderPane.margin>
<Insets bottom="10.0" left="10.0" right="10.0" top="5.0" />
</BorderPane.margin>
</BorderPane>
</left>
<center>
<BorderPane BorderPane.alignment="CENTER">
<bottom>
<VBox alignment="TOP_CENTER" BorderPane.alignment="CENTER">
<children>
<TextField id="txtValittuKohtaus" disable="true" prefWidth="500.0" promptText="Valittu hahmo / asia / esine">
<VBox.margin>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
</VBox.margin>
</TextField>
<TextArea id="txtAreaKohtauksenKuvaus" prefWidth="500.0" promptText="Valitun kuvaus">
<VBox.margin>
<Insets left="5.0" right="5.0" />
</VBox.margin>
</TextArea>
</children>
</VBox>
</bottom>
<center>
<HBox spacing="10.0" BorderPane.alignment="CENTER">
<VBox prefHeight="500.0" prefWidth="500.0" BorderPane.alignment="CENTER">
<children>
<HBox prefHeight="600.0" spacing="10.0">
<children>
<BorderPane>
<top>
<Label text="Hahmot" BorderPane.alignment="CENTER_LEFT">
<font>
<Font size="14.0" />
</font>
</Label>
</top>
<center>
<VBox BorderPane.alignment="CENTER">
<VBox>
<children>
<Label text="Hahmot" />
<VBox spacing="10.0" style="-fx-border-color: gray; -fx-border-radius: 5;">
<children>
<HBox fillHeight="false" prefHeight="30.0">
<children>
......@@ -168,127 +117,168 @@
<Insets right="5.0" />
</HBox.margin>
</TextField>
<Button id="btnHahmotTyhjenna" mnemonicParsing="false" text="Tyhjennä" />
<Button id="btnTyhjennaSuodattimet" fx:id="btnTyhjennaSuodattimet" mnemonicParsing="false" onAction="#handleTyhjennaSuodattimet" prefWidth="80.0" text="Tyhjennä" />
</children>
<VBox.margin>
<Insets top="5.0" />
</VBox.margin>
</HBox>
<ComboBox id="cmbHahmotAvain1" prefWidth="300.0" promptText="Avainsana">
<padding>
<Insets right="5.0" />
</padding>
</ComboBox>
<ListChooser fx:id="lstChooserTietueet" onMouseClicked="#handleTietueKlikkaus" rivit="Osanna Windandus&#10;Erich Stahlhaken&#10;Ankerias&#10;Josef Specht&#10;Johanna Karstedt&#10;Hanno" />
<HBox prefHeight="100.0" spacing="10.0">
<padding>
<Insets top="5.0" />
</padding>
<children>
<Button mnemonicParsing="false" prefWidth="200.0" text="Muokkaa" />
<Button mnemonicParsing="false" prefWidth="200.0" text="--&gt; POISTA" />
</children>
</HBox>
</children>
<padding>
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
</padding>
</VBox>
<Label text="Asiat ja esineet">
<padding>
<Insets top="10.0" />
</padding>
</Label>
<VBox spacing="10.0" style="-fx-border-color: gray; -fx-border-radius: 5;">
<children>
<HBox fillHeight="false" prefHeight="30.0">
<children>
<ComboBox id="cmbHahmotAvain1" prefWidth="150.0" promptText="Avainsana">
<padding>
<Insets right="5.0" />
</padding>
<TextField id="txtHahmotSuodatin" promptText="Suodatin">
<HBox.margin>
<Insets right="5.0" />
</HBox.margin>
</ComboBox>
<ComboBox id="cmbHahmotAvain2" prefWidth="150.0" promptText="Avainsana" />
</TextField>
<Button id="btnTyhjennaSuodattimet" fx:id="btnTyhjennaSuodattimet1" mnemonicParsing="false" onAction="#handleTyhjennaSuodattimet" prefWidth="80.0" text="Tyhjennä" />
</children>
<VBox.margin>
<Insets bottom="5.0" top="5.0" />
<Insets top="5.0" />
</VBox.margin>
</HBox>
<ListChooser id="listHahmot" rivit="&#10;Josef Specht&#10;Osanna Windandus&#10;Erich Stahlhaken&#10;Ankerias" />
<HBox alignment="CENTER" prefHeight="100.0" spacing="5.0">
<ComboBox id="cmbHahmotAvain1" prefWidth="300.0" promptText="Avainsana">
<padding>
<Insets right="5.0" />
</padding>
</ComboBox>
<ListChooser fx:id="lstChooserTietueet1" onMouseClicked="#handleTietueKlikkaus" rivit="Osanna Windandus&#10;Erich Stahlhaken&#10;Ankerias&#10;Josef Specht&#10;Johanna Karstedt&#10;Hanno" />
<HBox prefHeight="100.0" spacing="10.0">
<padding>
<Insets top="5.0" />
</padding>
<children>
<Button id="btnLisaaHahmo" mnemonicParsing="false" prefWidth="115.0" text="Lisää hahmo" />
<Button id="btnPoistaHahmo" mnemonicParsing="false" prefWidth="115.0" text="Poista hahmo" />
<Button mnemonicParsing="false" prefWidth="200.0" text="Muokkaa" />
<Button mnemonicParsing="false" prefWidth="200.0" text="--&gt; POISTA" />
</children>
<VBox.margin>
<Insets top="5.0" />
</VBox.margin>
</HBox>
</children>
<padding>
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
</padding>
</VBox>
</center>
</BorderPane>
<BorderPane>
<top>
<Label text="Asiat / esineet" BorderPane.alignment="CENTER_LEFT">
<font>
<Font size="14.0" />
</font>
</Label>
</top>
<center>
<VBox minWidth="250.0" prefHeight="200.0" BorderPane.alignment="CENTER">
</children>
</VBox>
<VBox>
<children>
<Label />
<VBox spacing="10.0">
<children>
<HBox fillHeight="false" prefHeight="30.0">
<children>
<TextField id="txtAsiatSuodatin" promptText="Suodatin">
<TextField id="txtHahmotSuodatin" promptText="Suodatin">
<HBox.margin>
<Insets right="5.0" />
</HBox.margin>
</TextField>
<Button id="btnAsiatTyhjenna" mnemonicParsing="false" text="Tyhjennä" />
<Button id="btnTyhjennaSuodattimet" fx:id="btnTyhjennaSuodattimet1" mnemonicParsing="false" onAction="#handleTyhjennaSuodattimet" prefWidth="80.0" text="Tyhjennä" />
</children>
<VBox.margin>
<Insets top="5.0" />
</VBox.margin>
</HBox>
<ComboBox id="cmbHahmotAvain1" prefWidth="300.0" promptText="Avainsana">
<padding>
<Insets right="5.0" />
</padding>
</ComboBox>
<ListChooser fx:id="lstChooserTietueet1" onMouseClicked="#handleTietueKlikkaus" rivit="Osanna Windandus&#10;Erich Stahlhaken&#10;Ankerias&#10;Josef Specht&#10;Johanna Karstedt&#10;Hanno" />
<HBox prefHeight="100.0" spacing="10.0">
<padding>
<Insets top="5.0" />
</padding>
<children>
<Button mnemonicParsing="false" prefWidth="200.0" text="&lt;-- LISÄÄ" />
<Button mnemonicParsing="false" prefWidth="200.0" text="Luo uusi" />
</children>
</HBox>
</children>
<padding>
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
</padding>
</VBox>
<Label>
<padding>
<Insets top="10.0" />
</padding>
</Label>
<VBox spacing="10.0">
<children>
<HBox fillHeight="false" prefHeight="30.0">
<children>
<ComboBox id="cmbHahmotAvain1" prefWidth="150.0" promptText="Avainsana">
<padding>
<Insets right="5.0" />
</padding>
<TextField id="txtHahmotSuodatin" promptText="Suodatin">
<HBox.margin>
<Insets right="5.0" />
</HBox.margin>
</ComboBox>
<ComboBox id="cmbHahmotAvain2" prefWidth="150.0" promptText="Avainsana" />
</TextField>
<Button id="btnTyhjennaSuodattimet" fx:id="btnTyhjennaSuodattimet11" mnemonicParsing="false" onAction="#handleTyhjennaSuodattimet" prefWidth="80.0" text="Tyhjennä" />
</children>
<VBox.margin>
<Insets bottom="5.0" top="5.0" />
<Insets top="5.0" />
</VBox.margin>
</HBox>
<ListChooser id="listAsiat" rivit="&#10;Uhkapelipöytä&#10;Isännän muistikuvat&#10;Juomalista&#10;Vapaat huoneet" />
<HBox alignment="CENTER" prefHeight="100.0" spacing="5.0">
<ComboBox id="cmbHahmotAvain1" prefWidth="300.0" promptText="Avainsana">
<padding>
<Insets right="5.0" />
</padding>
</ComboBox>
<ListChooser fx:id="lstChooserTietueet11" onMouseClicked="#handleTietueKlikkaus" rivit="Osanna Windandus&#10;Erich Stahlhaken&#10;Ankerias&#10;Josef Specht&#10;Johanna Karstedt&#10;Hanno" />
<HBox prefHeight="100.0" spacing="10.0">
<padding>
<Insets top="5.0" />
</padding>
<children>
<Button id="btnLisaaAsia" mnemonicParsing="false" prefWidth="115.0" text="Lisää asia / esine" />
<Button id="btnPoistaAsia" mnemonicParsing="false" prefWidth="115.0" text="Poista asia / esine" />
<Button mnemonicParsing="false" prefWidth="200.0" text="&lt;-- LISÄÄ" />
<Button mnemonicParsing="false" prefWidth="200.0" text="Luo uusi" />
</children>
<VBox.margin>
<Insets top="5.0" />
</VBox.margin>
</HBox>
</children>
<padding>
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
</padding>
</VBox>
</center>
</BorderPane>
</children>
</VBox>
</children>
<BorderPane.margin>
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
</BorderPane.margin>
</HBox>
</center>
</BorderPane>
<TextArea id="txtAreaKohtauksenKuvaus" promptText="Valitun kuvaus">
<VBox.margin>
<Insets top="10.0" />
</VBox.margin>
</TextArea>
</children>
<BorderPane.margin>
<Insets />
</BorderPane.margin>
<padding>
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
</padding>
</VBox>
</center>
<top>
<MenuBar BorderPane.alignment="CENTER">
<menus>
<Menu mnemonicParsing="false" text="Tiedosto">
<items>
<MenuItem mnemonicParsing="false" text="Uusi kohtauslista" />
<MenuItem mnemonicParsing="false" text="Lataa kohtauslista" />
<MenuItem mnemonicParsing="false" text="Sulje" />
</items>
</Menu>
<Menu mnemonicParsing="false" text="Muokkaa">
<items>
<MenuItem mnemonicParsing="false" text="Uusi kohtaus" />
<MenuItem mnemonicParsing="false" text="Uusi hahmo" />
<MenuItem mnemonicParsing="false" text="Uusi asia / esine" />
</items>
</Menu>
<Menu mnemonicParsing="false" text="Apua">
<items>
<MenuItem mnemonicParsing="false" text="Tietoja" />
</items>
</Menu>
</menus>
</MenuBar>
</top>
</BorderPane>
......@@ -13,9 +13,8 @@
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?>
<BorderPane minWidth="500.0" prefHeight="700.0" prefWidth="850.0" xmlns="http://javafx.com/javafx/23.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="fxKohtaushallinta.NaytaKohtausController">
<BorderPane minWidth="500.0" prefHeight="800.0" prefWidth="850.0" xmlns="http://javafx.com/javafx/23.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="fxKohtaushallinta.NaytaKohtausController">
<top>
<MenuBar prefWidth="800.0" BorderPane.alignment="CENTER">
<menus>
......@@ -39,20 +38,20 @@
</MenuBar>
</top>
<center>
<VBox alignment="CENTER_LEFT" prefHeight="200.0" prefWidth="100.0" spacing="10.0" BorderPane.alignment="CENTER_LEFT">
<VBox alignment="CENTER_LEFT" prefHeight="200.0" prefWidth="100.0" spacing="10.0" style="-fx-border-color: gray; -fx-border-radius: 5;" BorderPane.alignment="CENTER_LEFT">
<children>
<HBox alignment="CENTER_LEFT" minWidth="30.0" prefHeight="35.0" spacing="10.0">
<children>
<Label minWidth="50.0" text="Kohtaus" />
<TextField id="txtKohtauksenOtsikko" prefHeight="25.0" prefWidth="550.0" />
<Button id="btnSuljeIkkuna" mnemonicParsing="false" prefHeight="25.0" prefWidth="181.0" text="Sulje ikkuna" />
<Button id="btnSuljeIkkuna" mnemonicParsing="false" prefHeight="25.0" prefWidth="200.0" text="Sulje ikkuna" />
</children>
</HBox>
<TextArea id="txtAreaKohtauksenKuvaus" minWidth="200.0" prefHeight="200.0" prefWidth="500.0" />
<TextArea id="txtAreaKohtauksenKuvaus" maxHeight="1000.0" prefHeight="200.0" prefWidth="500.0" />
<VBox prefHeight="170.0" prefWidth="820.0">
<children>
<Label text="Muistiinpanot" />
<TextArea id="txtAreaMuistiinpanot" prefHeight="200.0" prefWidth="200.0">
<TextArea id="txtAreaMuistiinpanot" maxHeight="1000.0" prefHeight="200.0" prefWidth="500.0">
<VBox.margin>
<Insets top="10.0" />
</VBox.margin>
......@@ -63,16 +62,15 @@
<BorderPane.margin>
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
</BorderPane.margin>
<padding>
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
</padding>
</VBox>
</center>
<bottom>
<VBox spacing="10.0" BorderPane.alignment="CENTER">
<VBox prefHeight="300.0" spacing="10.0" BorderPane.alignment="CENTER">
<children>
<Label text="Kohtaukseen liitetyt">
<font>
<Font size="14.0" />
</font></Label>
<HBox prefWidth="850.0" spacing="10.0" style="-fx-border-color: black;">
<HBox prefWidth="850.0" spacing="10.0" style="-fx-border-color: gray; -fx-border-radius: 5;">
<children>
<VBox prefHeight="250.0" spacing="10.0">
<children>
......@@ -90,10 +88,10 @@
<Button id="btnUusiAsia" mnemonicParsing="false" prefHeight="25.0" prefWidth="191.0" text="Lisää uusi asia / esine" />
</children>
</VBox>
<VBox prefHeight="250.0" spacing="10.0">
<VBox spacing="10.0">
<children>
<Label maxHeight="15.0" minHeight="15.0" prefHeight="15.0" text="Kuvaus" />
<TextArea id="txtAreaValinnanKuvaus" />
<TextArea id="txtAreaValinnanKuvaus" prefHeight="1000.0" />
</children>
</VBox>
</children>
......@@ -103,7 +101,7 @@
</HBox>
</children>
<BorderPane.margin>
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
<Insets bottom="10.0" left="10.0" right="10.0" />
</BorderPane.margin>
</VBox>
</bottom>
......
package fxKohtaushallinta;
import java.util.List;
import fi.jyu.mit.fxgui.ComboBoxChooser;
import fi.jyu.mit.fxgui.ListChooser;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;
public class TietueChooser {
private ListChooser<String> lstChrRivit;
private TextField txtFSuodatin;
private ComboBoxChooser<String> cmbBoxChrAvainsanat;
private Button btnTyhjenna;
private Button[] btnKontrollit;
private VBox vb;
private HBox hb;
private Label lblOtsikko;
/**
*
*/
public TietueChooser() {
//
}
/**
* @param otsikko Tietuelistan otsikko
* @param rivit tietuelistan rivit
* @param avainsanat tietuelistan avainsanat
*/
public TietueChooser(String otsikko, List<String> rivit, List<String> avainsanat) {
this.lstChrRivit = new ListChooser<String>();
for ( String s : rivit)
this.lstChrRivit.add(s);
for ( String s : avainsanat)
cmbBoxChrAvainsanat.add(s);
this.lblOtsikko.setText(otsikko);
}
}
......@@ -14,9 +14,9 @@
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.VBox?>
<BorderPane minWidth="500.0" prefHeight="402.0" prefWidth="800.0" xmlns="http://javafx.com/javafx/23.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="fxKohtaushallinta.KohtaushallintaGUIController">
<BorderPane minWidth="500.0" prefHeight="402.0" prefWidth="800.0" xmlns="http://javafx.com/javafx/23.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="fxKohtaushallinta.UusiTietueController">
<right>
<VBox maxWidth="150.0" minWidth="250.0" prefHeight="200.0" prefWidth="250.0" style="-fx-border-color: gray;" BorderPane.alignment="CENTER">
<VBox maxWidth="150.0" minWidth="250.0" prefHeight="200.0" prefWidth="250.0" spacing="10.0" style="-fx-border-color: gray; -fx-border-radius: 5;" BorderPane.alignment="CENTER">
<children>
<HBox fillHeight="false" prefHeight="30.0">
<children>
......@@ -25,28 +25,18 @@
<Insets right="5.0" />
</HBox.margin>
</TextField>
<Button id="btnHahmotTyhjenna" mnemonicParsing="false" text="Tyhjennä" />
<Button id="btnHahmotTyhjenna" fx:id="btnTyhjennaSuodattimet" mnemonicParsing="false" onAction="#handleTyhjennaSuodattimet" prefWidth="80.0" text="Tyhjennä" />
</children>
<VBox.margin>
<Insets top="5.0" />
</VBox.margin>
</HBox>
<HBox fillHeight="false" prefHeight="30.0">
<children>
<ComboBox id="cmbHahmotAvain1" prefWidth="150.0" promptText="Avainsana">
<padding>
<Insets right="5.0" />
</padding>
<HBox.margin>
<Insets right="5.0" />
</HBox.margin>
</ComboBox>
</children>
<VBox.margin>
<Insets bottom="5.0" top="5.0" />
</VBox.margin>
</HBox>
<ListChooser rivit="Osanna Windandus&#10;Erich Stahlhaken&#10;Ankerias&#10;Josef Specht&#10;Johanna Karstedt&#10;Hanno" />
<ComboBox id="cmbHahmotAvain1" prefWidth="300.0" promptText="Avainsana">
<padding>
<Insets right="5.0" />
</padding>
</ComboBox>
<ListChooser fx:id="lstChooserTietueet" onMouseClicked="#handleTietueKlikkaus" rivit="Osanna Windandus&#10;Erich Stahlhaken&#10;Ankerias&#10;Josef Specht&#10;Johanna Karstedt&#10;Hanno" />
<HBox prefHeight="100.0" spacing="10.0">
<children>
<Button id="btnMuokkaaTietuetta" fx:id="btnMuokkaa" minWidth="110.0" mnemonicParsing="false" onAction="#handleMuokkaa" prefHeight="25.0" text="Muokkaa" />
......@@ -81,7 +71,7 @@
<Insets bottom="10.0" />
</VBox.margin>
</Button>
<ListChooser id="listAvainsanat" minWidth="150.0" prefHeight="379.0" prefWidth="150.0" rivit="Rikollinen&#10;Satama&#10;Paroni&#10;Liittolainen" />
<ListChooser id="listAvainsanat" fx:id="lstChooser" minWidth="150.0" onMouseClicked="#handleAvainsanaKlikkaus" prefHeight="379.0" prefWidth="150.0" rivit="Rikollinen&#10;Satama&#10;Paroni&#10;Liittolainen" />
<Button id="btnPoistaAvainsana" fx:id="btnPoistaAvainsana" minWidth="150.0" mnemonicParsing="false" onAction="#handlePoistaAvainsana" prefWidth="150.0" text="Poista avainsana">
<VBox.margin>
<Insets top="10.0" />
......@@ -110,15 +100,15 @@
<TextArea prefWidth="200.0" />
<HBox alignment="TOP_CENTER" prefWidth="500.0" spacing="10.0">
<children>
<Button id="btnUusiTietue" mnemonicParsing="false" prefHeight="25.0" prefWidth="90.0" text="Luo uusi" />
<Button id="btnMuokkaaValittua" mnemonicParsing="false" prefHeight="25.0" prefWidth="120.0" text="Tallenna" />
<Button id="btnUusiTietue" mnemonicParsing="false" prefHeight="25.0" prefWidth="120.0" text="Peruuta muutokset" />
<Button id="btnUusiTietue" fx:id="btnUusiTietue" mnemonicParsing="false" onAction="#uusiTietue" prefHeight="25.0" prefWidth="90.0" text="Luo uusi" />
<Button id="btnTallenna" fx:id="btnTallenna" mnemonicParsing="false" onAction="#tallenna" prefHeight="25.0" prefWidth="120.0" text="Tallenna" />
<Button id="btnPeruuta" mnemonicParsing="false" onAction="#peruuta" prefHeight="25.0" prefWidth="120.0" text="Peruuta" />
</children>
<VBox.margin>
<Insets top="10.0" />
</VBox.margin>
</HBox>
<Button mnemonicParsing="false" prefHeight="29.0" prefWidth="400.0" text="Sulje">
<Button id="btnSulje" fx:id="btnSulje" mnemonicParsing="false" onAction="#sulje" prefHeight="29.0" prefWidth="400.0" text="Sulje">
<VBox.margin>
<Insets left="10.0" right="10.0" top="10.0" />
</VBox.margin>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment