4949import root .javafx .CustomView .NumberTextFormatter ;
5050import root .javafx .CustomView .TagBar ;
5151import root .javafx .CustomView .dateCell .DisableAfterTodayDateCell ;
52- import root .utils .AlertUtils ;
52+ import root .javafx . utils .AlertUtils ;
5353
5454@ Slf4j
5555public class AlertLogMonitoringMenuController implements Initializable {
@@ -101,35 +101,35 @@ public AlertLogMonitoringMenuController() {
101101 }
102102
103103 /**
104- * 실행메뉴 화면 진입시 초기화를 수행한다 .
104+ * ����� ȭ�� ���Խ� �ʱ�ȭ�� �����Ѵ� .
105105 */
106106 @ Override
107107 public void initialize (URL location , ResourceBundle resources ) {
108108
109- // 접속정보 설정 프로퍼티 파일
109+ // �������� ���� ������Ƽ ����
110110 List <String > connInfoFiles = propService .getConnectionInfoList ();
111111 if (connInfoFiles != null && connInfoFiles .size () != 0 ) {
112112 // Connection Info ComboBox
113113 runConnInfoFileComboBox .getItems ().addAll (connInfoFiles );
114114 runConnInfoFileComboBox .getSelectionModel ().selectFirst ();
115115
116- // remember.properties 파일에서, 최근 사용된 설정파일 경로가 있다면 해당 설정파일을 불러온다 .
116+ // remember.properties ���Ͽ���, �ֱ� ���� �������� ��ΰ� �ִٸ� �ش� ���������� �ҷ��´� .
117117 String lastUseConnInfoFilePath = propService .getLastUseConnectionInfoFilePath ();
118118 if (lastUseConnInfoFilePath != null ) {
119119 runConnInfoFileComboBox .getSelectionModel ().select (lastUseConnInfoFilePath );
120120 }
121121 } else {
122- AlertUtils .showAlert (AlertType .INFORMATION , "접속정보 설정 " , "설정된 접속정보가 없습니다 .\n [설정]메뉴로 이동합니다 ." );
122+ AlertUtils .showAlert (AlertType .INFORMATION , "�������� ���� " , "������ ���������� �����ϴ� .\n [����]���� �̵��մϴ� ." );
123123 return ;
124124 }
125125
126- // ComboBox 변경 이벤트
126+ // ComboBox ���� �̺�Ʈ
127127 runConnInfoFileComboBox .getSelectionModel ().selectedItemProperty ()
128128 .addListener ((options , oldValue , newValue ) -> {
129- // TODO 각 Tab별 콤보박스 아이템 변경
129+ // TODO �� Tab�� ���ڽ� ������ ����
130130 });
131131
132- // AlertLog 화면의 UI 요소를 초기화한다 .
132+ // AlertLog ȭ���� UI ��Ҹ� �ʱ�ȭ�Ѵ� .
133133 initAlertLogMonitoringElements ();
134134 }
135135
@@ -156,25 +156,25 @@ private void changeAlertLogListViewData(String serverID) {
156156 }
157157
158158 /**
159- * AlertLog AnchorPane의 UI 요소들의 값을 초기화한다 .
159+ * AlertLog AnchorPane�� UI ��ҵ��� ���� �ʱ�ȭ�Ѵ� .
160160 */
161161 private void initAlertLogMonitoringElements () {
162- // ComboBox 변경 이벤트
162+ // ComboBox ���� �̺�Ʈ
163163 alertLogServerComboBox .getSelectionModel ().selectedItemProperty ().addListener ((options , oldValue , newValue ) -> {
164164 changeAlertLogListViewData (newValue );
165165 });
166166 alertLogServerComboBox .getItems ().addAll (propService .getMonitoringServerNameList ());
167167 alertLogServerComboBox .getSelectionModel ().selectFirst ();
168168
169- // AlertLog 조회기간 기본값 설정
169+ // AlertLog ��ȸ�Ⱓ �⺻�� ����
170170 alertLogStartDayDP .setValue (LocalDate .now ().minusDays (1 ));
171171 alertLogEndDayDP .setValue (LocalDate .now ());
172172
173- // AlertLog 조회기간 오늘 이후 날짜 선택 불가
173+ // AlertLog ��ȸ�Ⱓ ���� ���� ��¥ ���� �Ұ�
174174 alertLogStartDayDP .setDayCellFactory (picker -> new DisableAfterTodayDateCell ());
175175 alertLogEndDayDP .setDayCellFactory (picker -> new DisableAfterTodayDateCell ());
176176
177- // AlertLog 조회기간 변경 이벤트
177+ // AlertLog ��ȸ�Ⱓ ���� �̺�Ʈ
178178 alertLogStartDayDP .valueProperty ().addListener ((ov , oldValue , newValue ) -> {
179179 if (alertLogEndDayDP .getValue ().isBefore (newValue )) {
180180 alertLogEndDayDP .setValue (newValue );
@@ -220,33 +220,33 @@ public void handle(KeyEvent e) {
220220 }
221221
222222 /**
223- * [실행 ] - 모니터링 실행 시, 입력값 검사
223+ * [���� ] - ����� ���� ��, �Է°� �˻�
224224 *
225225 * @return
226226 */
227227 private boolean validateInput () {
228228 String alertHeaderText = "" ;
229229 String alertContentText = "" ;
230230
231- // 1. AlertLog 조회기간
232- alertHeaderText = "AlertLog 조회기간 " ;
231+ // 1. AlertLog ��ȸ�Ⱓ
232+ alertHeaderText = "AlertLog ��ȸ�Ⱓ " ;
233233
234234 LocalDate alertLogStartDay = alertLogStartDayDP .getValue ();
235235 LocalDate alertLogEndDay = alertLogEndDayDP .getValue ();
236236 if (alertLogStartDay == null || alertLogEndDay == null ) {
237- alertContentText = "조회기간을 입력해주세요 ." ;
237+ alertContentText = "��ȸ�Ⱓ�� �Է����ּ��� ." ;
238238 AlertUtils .showAlert (AlertType .ERROR , alertHeaderText , alertContentText );
239239 return false ;
240240 }
241241
242242 try {
243243 if (!alertLogStartDay .isBefore (alertLogEndDay ) && !alertLogStartDay .isEqual (alertLogEndDay )) {
244- alertContentText = "조회시작일은 조회종료일보다 이전 날짜여야 합니다 ." ;
244+ alertContentText = "��ȸ�������� ��ȸ�����Ϻ��� ���� ��¥���� �մϴ� ." ;
245245 AlertUtils .showAlert (AlertType .ERROR , alertHeaderText , alertContentText );
246246 return false ;
247247 }
248248 } catch (Exception e ) {
249- alertContentText = "조회기간이 올바르지 않습니다 ." ;
249+ alertContentText = "��ȸ�Ⱓ�� �ùٸ��� �ʽ��ϴ� ." ;
250250 AlertUtils .showAlert (AlertType .ERROR , alertHeaderText , alertContentText );
251251 return false ;
252252 }
@@ -255,7 +255,7 @@ private boolean validateInput() {
255255 }
256256
257257 public void monitoringAlertLog (ActionEvent e ) throws Exception {
258- // 입력값 검사
258+ // �Է°� �˻�
259259 if (!validateInput ()) {
260260 return ;
261261 }
@@ -300,7 +300,7 @@ public void prevAlertLog(ActionEvent e) {
300300
301301 int toIndex = Integer .parseInt (input ) - 1 ;
302302 if (toIndex == 0 ) {
303- updateStatusMessage ("첫번째 Log입니다 ." );
303+ updateStatusMessage ("ù��° Log�Դϴ� ." );
304304 return ;
305305 }
306306
@@ -316,7 +316,7 @@ public void nextAlertLog(ActionEvent e) {
316316
317317 int toIndex = Integer .parseInt (input ) + 1 ;
318318 if (toIndex > alertLogLV .getItems ().size ()) {
319- updateStatusMessage ("마지막 Log입니다 ." );
319+ updateStatusMessage ("������ Log�Դϴ� ." );
320320 return ;
321321 }
322322
@@ -333,31 +333,31 @@ public void focusAlertLog(Event e) {
333333 int toIndex = Integer .parseInt (input );
334334 alertLogLV .scrollTo (toIndex - 1 );
335335 alertLogLV .getSelectionModel ().select (toIndex - 1 );
336- updateStatusMessage (String .format ("[%d]번째 Log로 이동합니다 ." , toIndex ));
336+ updateStatusMessage (String .format ("[%d]��° Log�� �̵��մϴ� ." , toIndex ));
337337 }
338338
339339 private boolean validateAlertLogNavigatorInput (String input ) {
340340 if (StringUtils .isEmpty (input )) {
341- updateStatusMessage ("조회를 원하는 Log index를 입력해주세요 ." );
341+ updateStatusMessage ("��ȸ�� ���ϴ� Log index�� �Է����ּ��� ." );
342342 return false ;
343343 }
344344
345345 int toIndex = 0 ;
346346 try {
347347 toIndex = Integer .parseInt (input );
348348 } catch (NumberFormatException ex ) {
349- updateStatusMessage ("숫자만 입력하실 수 있습니다 ." );
349+ updateStatusMessage ("���ڸ� �Է��Ͻ� �� �ֽ��ϴ� ." );
350350 return false ;
351351 }
352352
353353 int alertLogSize = alertLogLV .getItems ().size ();
354354 if (alertLogSize == 0 ) {
355- updateStatusMessage ("Alert Log 조회 후 이용해주세요 ." );
355+ updateStatusMessage ("Alert Log ��ȸ �� �̿����ּ��� ." );
356356 return false ;
357357 }
358358
359359 if (toIndex <= 0 || toIndex > alertLogSize ) {
360- updateStatusMessage (String .format ("Log index를 올바르게 입력해주세요 . (가능한 입력값 범위 : 1 ~ %d)" , alertLogSize ));
360+ updateStatusMessage (String .format ("Log index�� �ùٸ��� �Է����ּ��� . (������ �Է°� ���� : 1 ~ %d)" , alertLogSize ));
361361 return false ;
362362 }
363363
0 commit comments