381 Point xP = getLocation();
382 setLocationRelativeTo(yC);
383 Point yP = getLocation();
384 setLocation(new Point(xP.x, yP.y));
385 }
386
387 }
388
389
390 private void enableKeywordFields() {
391 boolean b = selectCheck.isEnabled() && selectCheck.isSelected();
392 keywordsChoice.setEnabled(b);
393 keywordsField.setEnabled(b);
394 opBtn.setEnabled(b && keywordsChoice.getSelectedItem().equals(EXPR));
395 keywordBtn.setEnabled(b && (keywordPopup != null || keywordChooser));
396 }
397
398 private KeywordsParameters keywordsParameters;
399 private MutableKeywordsParameters mutableKeywordsParameters;
400 private JCheckBox selectCheck;
401 private JComboBox keywordsChoice;
402 private JTextField keywordsField;
403 private JButton keywordBtn;
404 private JPopupMenu keywordPopup;
405 private JButton opBtn;
406 private JPopupMenu opPopup;
407 private Listener listener = new Listener();
408
409 private static final String ALL_OF = "allOf";
410 private static final String ANY_OF = "anyOf";
411 private static final String EXPR = "expr";
412 private static final String IGNORE = "ignore";
413
414 private static final String AND = "and";
415 private static final String OR = "or";
416 private static final String NOT = "not";
417 private static final String PARENS = "parens";
418
419 private boolean keywordChooser;
420 private String[] keywords;
421
|
381 Point xP = getLocation();
382 setLocationRelativeTo(yC);
383 Point yP = getLocation();
384 setLocation(new Point(xP.x, yP.y));
385 }
386
387 }
388
389
390 private void enableKeywordFields() {
391 boolean b = selectCheck.isEnabled() && selectCheck.isSelected();
392 keywordsChoice.setEnabled(b);
393 keywordsField.setEnabled(b);
394 opBtn.setEnabled(b && keywordsChoice.getSelectedItem().equals(EXPR));
395 keywordBtn.setEnabled(b && (keywordPopup != null || keywordChooser));
396 }
397
398 private KeywordsParameters keywordsParameters;
399 private MutableKeywordsParameters mutableKeywordsParameters;
400 private JCheckBox selectCheck;
401 private JComboBox<String> keywordsChoice;
402 private JTextField keywordsField;
403 private JButton keywordBtn;
404 private JPopupMenu keywordPopup;
405 private JButton opBtn;
406 private JPopupMenu opPopup;
407 private Listener listener = new Listener();
408
409 private static final String ALL_OF = "allOf";
410 private static final String ANY_OF = "anyOf";
411 private static final String EXPR = "expr";
412 private static final String IGNORE = "ignore";
413
414 private static final String AND = "and";
415 private static final String OR = "or";
416 private static final String NOT = "not";
417 private static final String PARENS = "parens";
418
419 private boolean keywordChooser;
420 private String[] keywords;
421
|