Exemplo n.º 1
0
 /** bind the components to the patternModel/actions. */
 @Override
 protected void bind() {
   super.bind();
   List matchRules = getPatternModel().getMatchRules();
   // PENDING: map rules to localized strings
   ComboBoxModel model = new DefaultComboBoxModel(matchRules.toArray());
   model.setSelectedItem(getPatternModel().getMatchRule());
   searchCriteria.setModel(model);
   searchCriteria.setAction(getAction(MATCH_RULE_ACTION_COMMAND));
 }