Beispiel #1
0
 @Override
 protected void initExecutables() {
   super.initExecutables();
   getActionMap()
       .put(
           MATCH_RULE_ACTION_COMMAND,
           createBoundAction(MATCH_RULE_ACTION_COMMAND, "updateMatchRule"));
 }
Beispiel #2
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));
 }
Beispiel #3
0
 /** create contained components. */
 @Override
 protected void initComponents() {
   super.initComponents();
   searchCriteria = new JComboBox();
 }