diff options
Diffstat (limited to 'src/de/fhswf')
| -rw-r--r-- | src/de/fhswf/in/inf/se/projektthemenvergabe/view/ProjektHinzufuegen.fxml | 34 | ||||
| -rw-r--r-- | src/de/fhswf/in/inf/se/projektthemenvergabe/view/ProjektHinzufuegenController.java | 36 |
2 files changed, 61 insertions, 9 deletions
diff --git a/src/de/fhswf/in/inf/se/projektthemenvergabe/view/ProjektHinzufuegen.fxml b/src/de/fhswf/in/inf/se/projektthemenvergabe/view/ProjektHinzufuegen.fxml index 4cbc16e..1ce4cf7 100644 --- a/src/de/fhswf/in/inf/se/projektthemenvergabe/view/ProjektHinzufuegen.fxml +++ b/src/de/fhswf/in/inf/se/projektthemenvergabe/view/ProjektHinzufuegen.fxml @@ -18,7 +18,7 @@ <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> <RowConstraints maxHeight="120.0" minHeight="10.0" prefHeight="111.0" vgrow="SOMETIMES" /> <RowConstraints maxHeight="144.0" minHeight="10.0" prefHeight="88.0" vgrow="SOMETIMES" /> - <RowConstraints maxHeight="67.0" minHeight="0.0" prefHeight="43.0" vgrow="SOMETIMES" /> + <RowConstraints minHeight="0.0" prefHeight="30.0" vgrow="SOMETIMES" /> <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> @@ -89,26 +89,42 @@ <Font name="System Bold" size="12.0" /> </font> </Label> - <ComboBox fx:id="ansprechpartnerComboBox" prefHeight="25.0" prefWidth="500.0" GridPane.columnIndex="1" GridPane.rowIndex="4"> + <HBox alignment="CENTER_LEFT" GridPane.columnIndex="1" GridPane.rowIndex="4"> <GridPane.margin> <Insets left="10.0" right="10.0" /> </GridPane.margin> - </ComboBox> - <ComboBox fx:id="student1ComboBox" prefHeight="25.0" prefWidth="500.0" GridPane.columnIndex="1" GridPane.rowIndex="5"> + <children> + <ComboBox fx:id="ansprechpartnerComboBox" prefHeight="25.0" prefWidth="500.0" /> + <Button mnemonicParsing="false" onAction="#handleResetAnsprechpartner" prefWidth="400.0" text="Zurücksetzen" /> + </children> + </HBox> + <HBox alignment="CENTER_LEFT" GridPane.columnIndex="1" GridPane.rowIndex="5"> <GridPane.margin> <Insets left="10.0" right="10.0" /> </GridPane.margin> - </ComboBox> - <ComboBox fx:id="student2ComboBox" prefHeight="25.0" prefWidth="500.0" GridPane.columnIndex="1" GridPane.rowIndex="6"> + <children> + <ComboBox fx:id="student1ComboBox" prefHeight="25.0" prefWidth="500.0" /> + <Button mnemonicParsing="false" onAction="#handleResetStudent1" prefWidth="400.0" text="Zurücksetzen" /> + </children> + </HBox> + <HBox alignment="CENTER_LEFT" GridPane.columnIndex="1" GridPane.rowIndex="6"> <GridPane.margin> <Insets left="10.0" right="10.0" /> </GridPane.margin> - </ComboBox> - <ComboBox fx:id="student3ComboBox" minHeight="-Infinity" prefHeight="25.0" prefWidth="500.0" GridPane.columnIndex="1" GridPane.rowIndex="7"> + <children> + <ComboBox fx:id="student2ComboBox" prefHeight="25.0" prefWidth="500.0" /> + <Button mnemonicParsing="false" onAction="#handleResetStudent2" prefWidth="400.0" text="Zurücksetzen" /> + </children> + </HBox> + <HBox alignment="CENTER_LEFT" GridPane.columnIndex="1" GridPane.rowIndex="7"> <GridPane.margin> <Insets left="10.0" right="10.0" /> </GridPane.margin> - </ComboBox> + <children> + <ComboBox fx:id="student3ComboBox" minHeight="-Infinity" prefHeight="25.0" prefWidth="500.0" /> + <Button mnemonicParsing="false" onAction="#handleResetStudent3" prefWidth="400.0" text="Zurücksetzen" /> + </children> + </HBox> <TextField fx:id="projektthemaTextField" prefWidth="500.0" GridPane.columnIndex="1"> <GridPane.margin> <Insets left="10.0" right="10.0" /> diff --git a/src/de/fhswf/in/inf/se/projektthemenvergabe/view/ProjektHinzufuegenController.java b/src/de/fhswf/in/inf/se/projektthemenvergabe/view/ProjektHinzufuegenController.java index 806feda..1a5a193 100644 --- a/src/de/fhswf/in/inf/se/projektthemenvergabe/view/ProjektHinzufuegenController.java +++ b/src/de/fhswf/in/inf/se/projektthemenvergabe/view/ProjektHinzufuegenController.java @@ -155,6 +155,42 @@ public class ProjektHinzufuegenController } /** + * Empty Ansprechpartner comboBox. + * + */ + public void handleResetAnsprechpartner() + { + ansprechpartnerComboBox.getSelectionModel().clearSelection(); + } + + /** + * Empty 1st Student comboBox. + * + */ + public void handleResetStudent1() + { + student1ComboBox.getSelectionModel().clearSelection(); + } + + /** + * Empty 2nd Student comboBox. + * + */ + public void handleResetStudent2() + { + student2ComboBox.getSelectionModel().clearSelection(); + } + + /** + * Empty 3rd Student comboBox. + * + */ + public void handleResetStudent3() + { + student3ComboBox.getSelectionModel().clearSelection(); + } + + /** * * Set the Text of the Fields from the stage into the TableView and close * the projekthinzufuegen stage. |
