Skip to content

Commit a83c09f

Browse files
committed
UI/UX: Set monitoring execution result AnchorPane visible/invisible
1 parent 3030314 commit a83c09f

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

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

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,13 @@
1919
import javafx.fxml.FXML;
2020
import javafx.fxml.Initializable;
2121
import javafx.scene.Node;
22+
import javafx.scene.control.Control;
2223
import javafx.scene.control.Label;
2324
import javafx.scene.control.ScrollPane;
2425
import javafx.scene.control.SplitPane;
2526
import javafx.scene.input.ScrollEvent;
2627
import javafx.scene.layout.AnchorPane;
28+
import javafx.scene.layout.HBox;
2729
import javafx.util.StringConverter;
2830
import root.common.database.contracts.AbstractDatabase;
2931
import root.common.database.implement.JdbcDatabase;
@@ -110,9 +112,15 @@ public class RunMenuController implements Initializable {
110112

111113
@FXML
112114
AnchorPane osDiskAP;
115+
116+
@FXML
117+
AnchorPane step4AP;
113118

114119
@FXML
115120
Label step4Label;
121+
122+
@FXML
123+
HBox step3ToStep4Arrow;
116124

117125
private MonitoringTableView<ArchiveUsage> archiveTable;
118126
private MonitoringTableView<TableSpaceUsage> tableSpaceTable;
@@ -129,7 +137,7 @@ public void initialize(URL location, ResourceBundle resources) {
129137
initRunStep3();
130138

131139
/* 4. 실행결과 */
132-
initRunStep4();
140+
// initRunStep4();
133141
}
134142

135143
/**
@@ -230,6 +238,8 @@ private void addMonitoringPresetPreview(List<MonitoringYN> dbYnList, List<Monito
230238
* @param e
231239
*/
232240
public void runMonitoring(ActionEvent e) {
241+
initRunStep4();
242+
233243
String connInfoConfigFilePath = connInfoFileListComboBox.getSelectionModel().getSelectedItem();
234244
String presetName = presetFileListComboBox.getSelectionModel().getSelectedItem();
235245
String presetConfigFilePath = propService.getMonitoringPresetFilePath(presetName);
@@ -399,6 +409,15 @@ public RoundingDigits fromString(String digits) {
399409
* 4. 실행결과 영역의 View를 초기화한다.
400410
*/
401411
private void initRunStep4() {
412+
step4AP.setVisible(true);
413+
step4AP.setMinWidth(Control.USE_COMPUTED_SIZE);
414+
step4AP.setMaxWidth(Control.USE_COMPUTED_SIZE);
415+
step4AP.setPrefWidth(Control.USE_COMPUTED_SIZE);
416+
step3ToStep4Arrow.setVisible(true);
417+
step3ToStep4Arrow.setMinWidth(Control.USE_COMPUTED_SIZE);
418+
step3ToStep4Arrow.setMaxWidth(Control.USE_COMPUTED_SIZE);
419+
step3ToStep4Arrow.setPrefWidth(Control.USE_COMPUTED_SIZE);
420+
402421
// 4-1. 실행결과 TableView 생성 및 Column 추가
403422
archiveTable = addMonitoringTableView(archiveAP, ArchiveUsage.class);
404423
archiveTable.addColumn("Archive", "archiveName");

src/main/resources/fxml/RunMenu.fxml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,12 +254,12 @@
254254
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
255255
</padding>
256256
</AnchorPane>
257-
<HBox alignment="CENTER">
257+
<HBox fx:id="step3ToStep4Arrow" alignment="CENTER" maxWidth="0.0" minWidth="0.0" prefWidth="0.0" visible="false">
258258
<children>
259259
<FontAwesomeIconView fill="#366e4f" glyphName="PLAY" size="20" />
260260
</children>
261261
</HBox>
262-
<AnchorPane>
262+
<AnchorPane fx:id="step4AP" maxWidth="0.0" minWidth="0.0" prefWidth="0.0" visible="false">
263263
<children>
264264
<Label fx:id="step4Label" alignment="CENTER" layoutX="111.0" layoutY="42.0" text="4. 실행결과" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="15.0">
265265
<font>

0 commit comments

Comments
 (0)