Added back, today and next button
This commit is contained in:
parent
50896a26ca
commit
60be6933be
@ -65,6 +65,27 @@ public class MainController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@FXML
|
||||||
|
protected void onBackClick() {
|
||||||
|
weekOffset--;
|
||||||
|
setDates();
|
||||||
|
updateEvents();
|
||||||
|
}
|
||||||
|
|
||||||
|
@FXML
|
||||||
|
protected void onTodayClick(){
|
||||||
|
weekOffset = 0;
|
||||||
|
setDates();
|
||||||
|
updateEvents();
|
||||||
|
}
|
||||||
|
|
||||||
|
@FXML
|
||||||
|
protected void onNextClick() {
|
||||||
|
weekOffset++;
|
||||||
|
setDates();
|
||||||
|
updateEvents();
|
||||||
|
}
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
protected void onAddBtnClick() {
|
protected void onAddBtnClick() {
|
||||||
try {
|
try {
|
||||||
|
@ -31,6 +31,9 @@
|
|||||||
<columnConstraints>
|
<columnConstraints>
|
||||||
<ColumnConstraints hgrow="ALWAYS" />
|
<ColumnConstraints hgrow="ALWAYS" />
|
||||||
<ColumnConstraints />
|
<ColumnConstraints />
|
||||||
|
<ColumnConstraints />
|
||||||
|
<ColumnConstraints />
|
||||||
|
<ColumnConstraints />
|
||||||
</columnConstraints>
|
</columnConstraints>
|
||||||
<rowConstraints>
|
<rowConstraints>
|
||||||
<RowConstraints />
|
<RowConstraints />
|
||||||
@ -42,8 +45,11 @@
|
|||||||
<Insets left="5" />
|
<Insets left="5" />
|
||||||
</padding>
|
</padding>
|
||||||
</Label>
|
</Label>
|
||||||
|
<Button onAction="#onBackClick" GridPane.columnIndex="1" maxHeight="1.7976931348623157E308">zurück</Button>
|
||||||
|
<Button onAction="#onTodayClick" GridPane.columnIndex="2" maxHeight="1.7976931348623157E308">heute</Button>
|
||||||
|
<Button onAction="#onNextClick" GridPane.columnIndex="3" maxHeight="1.7976931348623157E308">weiter</Button>
|
||||||
|
|
||||||
<GridPane fx:id="calendarGrid" gridLinesVisible="true" styleClass="gridCalendar" GridPane.columnIndex="0" GridPane.rowIndex="1">
|
<GridPane fx:id="calendarGrid" gridLinesVisible="true" styleClass="gridCalendar" GridPane.columnSpan="4" GridPane.columnIndex="0" GridPane.rowIndex="1">
|
||||||
<columnConstraints>
|
<columnConstraints>
|
||||||
<ColumnConstraints hgrow="ALWAYS" maxWidth="14.2857142857" minWidth="14.2857142857" percentWidth="14.2857142857" />
|
<ColumnConstraints hgrow="ALWAYS" maxWidth="14.2857142857" minWidth="14.2857142857" percentWidth="14.2857142857" />
|
||||||
<ColumnConstraints hgrow="ALWAYS" percentWidth="14.2857142857" />
|
<ColumnConstraints hgrow="ALWAYS" percentWidth="14.2857142857" />
|
||||||
|
Loading…
Reference in New Issue
Block a user