-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.fxml
More file actions
103 lines (81 loc) · 3.57 KB
/
MainWindow.fxml
File metadata and controls
103 lines (81 loc) · 3.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<BorderPane xmlns="http://javafx.com/javafx/25"
xmlns:fx="http://javafx.com/fxml/1"
fx:controller="com.project.authapi.system_log_analyzer.controller.MainWindowFXController">
<!-- top of scene -->
<top>
<VBox spacing="10">
<BorderPane.margin>
<Insets top="20" left="20" right="20"/>
</BorderPane.margin>
<!-- Statistics -->
<GridPane hgap="40" vgap="10">
<columnConstraints>
<ColumnConstraints percentWidth="50"/>
<ColumnConstraints percentWidth="50"/>
</columnConstraints>
<children>
<Label fx:id="totalLabel" GridPane.rowIndex="0" GridPane.columnIndex="0"/>
<Label fx:id="eventsLabel" GridPane.rowIndex="0" GridPane.columnIndex="1"/>
<Label fx:id="warningsLabel" GridPane.rowIndex="1" GridPane.columnIndex="0"/>
<Label fx:id="frequentLabel" GridPane.rowIndex="1" GridPane.columnIndex="1"/>
</children>
</GridPane>
<Separator/>
<!-- Filters -->
<VBox spacing="10" alignment="CENTER">
<HBox spacing="10" alignment="CENTER">
<TextField fx:id="searchField"
promptText="Search..."
onKeyReleased="#onSearchChanged"
HBox.hgrow="ALWAYS"/>
<Button text="Clear" onAction="#onClearFilters"/>
<Label fx:id="filteredCountLabel"
text="Showing: 0 / 0 entries"
style="-fx-font-size: 13;"/>
</HBox>
<HBox alignment="CENTER" spacing="20">
<CheckBox fx:id="filterInfo" text="INFO" onAction="#onFilterChanged"/>
<CheckBox fx:id="filterWarn" text="WARN" onAction="#onFilterChanged"/>
<CheckBox fx:id="filterError" text="ERROR" onAction="#onFilterChanged"/>
</HBox>
<Separator/>
</VBox>
</VBox>
</top>
<!-- CENTER -->
<center>
<TableView fx:id="logTable">
<BorderPane.margin>
<Insets top="20" bottom="20" left="20" right="20"/>
</BorderPane.margin>
<columns>
<TableColumn fx:id="timeColumn" prefWidth="150" text="Time"/>
<TableColumn fx:id="eventColumn" prefWidth="100" text="Event"/>
<TableColumn fx:id="descriptionColumn" prefWidth="600" text="Description"/>
<TableColumn fx:id="sourceColumn" prefWidth="200" text="Source"/>
</columns>
</TableView>
</center>
<!-- Under table -->
<bottom>
<HBox spacing="10" alignment="CENTER">
<BorderPane.margin>
<Insets top="20" left="20" right="20" bottom="20"/>
</BorderPane.margin>
<Button fx:id="refreshButton"
text="Refresh"
prefWidth="120" prefHeight="35"
onAction="#onRefreshClick"/>
<Label fx:id="loadingLabel"
text=""
style="-fx-alignment: center;"/>
</HBox>
</bottom>
</BorderPane>