Skip to content

Commit 40d5ff9

Browse files
committed
Add 'Alert Log Monitoring Menu' in left side menu list
1 parent 7d5ee81 commit 40d5ff9

File tree

2 files changed

+34
-16
lines changed

2 files changed

+34
-16
lines changed

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

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,24 @@
33
import java.io.IOException;
44

55
import javafx.event.ActionEvent;
6-
import javafx.fxml.FXML;
7-
import javafx.scene.control.Button;
86
import root.javafx.DI.DependencyInjection;
97
import root.utils.SceneUtils;
108

119
public class LeftMenuController {
12-
13-
// Left SplitPane Region
14-
@FXML Button homeBtn;
15-
@FXML Button settingMenuBtn;
16-
@FXML Button runMenuBtn;
17-
10+
1811
/**
1912
* 좌측 상단 Home Icon(fxId: homeBtn) onAction Event
13+
*
2014
* @param e
2115
* @throws IOException
2216
*/
2317
public void goHomeStage(ActionEvent e) throws IOException {
2418
SceneUtils.movePage(DependencyInjection.load("/fxml/Home.fxml"));
2519
}
26-
20+
2721
/**
2822
* 설정 메뉴로 이동한다.
23+
*
2924
* @param e
3025
* @throws IOException
3126
*/
@@ -42,7 +37,6 @@ public void goSettingMenu(ActionEvent e) throws IOException {
4237
public void goRunMenu(ActionEvent e) throws IOException {
4338
SceneUtils.movePage(DependencyInjection.load("/fxml/RunMenu.fxml"));
4439
}
45-
4640

4741
/**
4842
* 모니터링 기록 조회 메뉴로 이동한다.
@@ -53,12 +47,13 @@ public void goRunMenu(ActionEvent e) throws IOException {
5347
public void goHistoryMenu(ActionEvent e) throws IOException {
5448
SceneUtils.movePage(DependencyInjection.load("/fxml/HistoryMenu.fxml"));
5549
}
56-
57-
public void goMenu2(ActionEvent e) {
58-
59-
}
6050

61-
public void goMenu3(ActionEvent e) {
62-
51+
/**
52+
* Alert Log 모니터링 메뉴로 이동한다.
53+
*
54+
* @param e
55+
*/
56+
public void goAlertLogMonitoringMenu(ActionEvent e) throws IOException {
57+
SceneUtils.movePage(DependencyInjection.load("/fxml/AlertLogMonitoringMenu.fxml"));
6358
}
6459
}

src/main/resources/fxml/LeftMenu.fxml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,29 @@
9090
<Cursor fx:constant="DEFAULT" />
9191
</cursor>
9292
</HBox>
93+
<HBox alignment="CENTER_LEFT" minHeight="40.0">
94+
<children>
95+
<Label alignment="CENTER" maxWidth="-Infinity" minWidth="-Infinity" prefWidth="20.0">
96+
<graphic>
97+
<FontAwesomeIconView fill="#003b8e" glyphName="FILE_TEXT_ALT" selectionEnd="0" selectionFill="BLACK" size="22" stroke="WHITE" strokeType="OUTSIDE" />
98+
</graphic>
99+
</Label>
100+
<Button fx:id="alertLogMonitoringMenuBtn" alignment="BASELINE_LEFT" graphicTextGap="10.0" maxWidth="1.7976931348623157E308" minWidth="-Infinity" mnemonicParsing="false" onAction="#goAlertLogMonitoringMenu" prefWidth="200.0" style="-fx-background-color: transparent;" text="Alert Log 모니터링">
101+
<cursor>
102+
<Cursor fx:constant="HAND" />
103+
</cursor>
104+
<font>
105+
<Font name="Noto Sans Korean Medium" size="12.0" />
106+
</font>
107+
</Button>
108+
</children>
109+
<padding>
110+
<Insets bottom="2.0" left="10.0" top="2.0" />
111+
</padding>
112+
<cursor>
113+
<Cursor fx:constant="DEFAULT" />
114+
</cursor>
115+
</HBox>
93116
<HBox alignment="CENTER" minHeight="40.0">
94117
<children>
95118
<Label maxWidth="-Infinity" minWidth="-Infinity" prefWidth="20.0">

0 commit comments

Comments
 (0)