1818import javafx .event .EventHandler ;
1919import javafx .fxml .FXML ;
2020import javafx .fxml .Initializable ;
21+ import javafx .geometry .Insets ;
2122import javafx .scene .control .Alert .AlertType ;
2223import javafx .scene .control .DatePicker ;
24+ import javafx .scene .control .ScrollPane ;
25+ import javafx .scene .control .ScrollPane .ScrollBarPolicy ;
2326import javafx .scene .control .TextField ;
2427import javafx .scene .input .KeyCode ;
2528import javafx .scene .input .KeyEvent ;
2629import javafx .scene .layout .AnchorPane ;
30+ import javafx .scene .layout .HBox ;
2731import javafx .scene .layout .StackPane ;
2832import lombok .extern .slf4j .Slf4j ;
2933import root .common .server .implement .JschServer ;
4347import root .javafx .CustomView .AlertLogListViewCell ;
4448import root .javafx .CustomView .AlertLogMonitoringSummaryAP ;
4549import root .javafx .CustomView .NumberTextFormatter ;
50+ import root .javafx .CustomView .TagBar ;
4651import root .javafx .CustomView .dateCell .DisableAfterTodayDateCell ;
4752import root .utils .AlertUtils ;
4853
@@ -70,7 +75,10 @@ public class AlertLogMonitoringMenuController implements Initializable {
7075
7176 @ FXML
7277 StackPane alertLogSummarySP ;
73-
78+
79+ @ FXML
80+ HBox searchKeywordHBox ;
81+
7482 @ FXML
7583 TextField navigatorTF ;
7684
@@ -83,6 +91,8 @@ public class AlertLogMonitoringMenuController implements Initializable {
8391 @ FXML
8492 AnchorPane summaryNodataAP ;
8593
94+ TagBar tagBar = new TagBar ();
95+
8696 Map <String , AlertLog > alertLogMonitoringResultMap ;
8797
8898 public AlertLogMonitoringMenuController () {
@@ -182,7 +192,22 @@ public void handle(KeyEvent e) {
182192 }
183193 }
184194 });
185-
195+
196+ // Search Keyword Tagbar
197+ ScrollPane tagBarWrapper = new ScrollPane (tagBar );
198+ tagBarWrapper .setStyle ("-fx-border-width: 0.2px; -fx-border-color: gray;" );
199+ tagBarWrapper .getStyleClass ().add ("gray-scrollbar" );
200+ tagBarWrapper .setMaxWidth (375 );
201+ tagBarWrapper .setMinHeight (45 );
202+ tagBarWrapper .setFitToHeight (true );
203+ tagBarWrapper .prefHeightProperty ().bind (searchKeywordHBox .heightProperty ());
204+ tagBarWrapper .setHbarPolicy (ScrollBarPolicy .AS_NEEDED );
205+ HBox .setMargin (tagBarWrapper , new Insets (0 , 0 , 0 , 25 ));
206+ searchKeywordHBox .getChildren ().add (tagBarWrapper );
207+
208+ tagBar .setMaxWidth (355 );
209+ tagBarWrapper .vvalueProperty ().bind (tagBar .heightProperty ());
210+
186211 // Set view visible
187212 mainNodataAP .setVisible (true );
188213 alertLogLV .setVisible (false );
0 commit comments