Skip to content

Commit ad951c9

Browse files
committed
UI/UX: Add day-by-day monitoring history navigator (prev and next history)
1 parent 1566945 commit ad951c9

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

src/main/java/root/javafx/Controller/MonitoringAPController.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,14 @@ private void syncPrequency(String timeDiv) {
367367
}
368368
}
369369

370+
public void showPrevHistory(ActionEvent e) {
371+
372+
}
373+
374+
public void showNextHistory(ActionEvent e) {
375+
376+
}
377+
370378
/*
371379
* =============================================================================
372380
*/

src/main/resources/fxml/MonitoringAP.fxml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,31 @@
2424
<children>
2525
<AnchorPane AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="5.0">
2626
<children>
27-
<HBox alignment="CENTER" layoutX="5.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
27+
<ToolBar layoutY="2.4000000953674316" style="-fx-background-color: #ffffff00;" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.topAnchor="0.0">
28+
<items>
29+
<HBox alignment="CENTER" spacing="10.0">
30+
<children>
31+
<JFXButton fx:id="prevHistoryBtn" ellipsisString="" graphicTextGap="8.0" maxWidth="80.0" minWidth="80.0" onAction="#showPrevHistory" ripplerFill="BLACK" style="-fx-border-color: #ddd; -fx-font-size: 12px; -fx-border-radius: 30px; -fx-text-fill: black;" styleClass="basic-font" text="이전일자">
32+
<cursor>
33+
<Cursor fx:constant="HAND" />
34+
</cursor>
35+
<graphic>
36+
<FontAwesomeIconView glyphName="ANGLE_LEFT" size="13" />
37+
</graphic>
38+
</JFXButton>
39+
<JFXButton fx:id="nextHistoryBtn" contentDisplay="RIGHT" ellipsisString="" graphicTextGap="8.0" maxWidth="80.0" minWidth="80.0" onAction="#showNextHistory" ripplerFill="BLACK" style="-fx-border-color: #ddd; -fx-font-size: 12px; -fx-border-radius: 30px; -fx-text-fill: black;" styleClass="basic-font" text="다음일자">
40+
<cursor>
41+
<Cursor fx:constant="HAND" />
42+
</cursor>
43+
<graphic>
44+
<FontAwesomeIconView glyphName="ANGLE_RIGHT" size="13" />
45+
</graphic>
46+
</JFXButton>
47+
</children>
48+
</HBox>
49+
</items>
50+
</ToolBar>
51+
<HBox alignment="CENTER" layoutY="32.0" AnchorPane.bottomAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
2852
<children>
2953
<Button fx:id="prequencyTimeDivBtn" alignment="CENTER" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" mnemonicParsing="false" onAction="#prequencyTimeDivToggle" prefHeight="30.0" prefWidth="30.0" style="-fx-background-color: #01077e; -fx-background-radius: 0px; -fx-border-width: 0.2px; -fx-border-color: black; -fx-font-family: NanumGothic; -fx-font-size: 9px; -fx-font-weight: bold; -fx-text-fill: white;" text="AM">
3054
<HBox.margin>
@@ -83,6 +107,9 @@
83107
</tooltip>
84108
</Label>
85109
</children>
110+
<padding>
111+
<Insets left="30.0" right="30.0" />
112+
</padding>
86113
</HBox>
87114
</children>
88115
</AnchorPane>

0 commit comments

Comments
 (0)