@Override public void propertyChange(PropertyChangeEvent e) { Object m = m_list.getSelectedValue(); if (m != null) { ((SubstringLabelerRules.SubstringLabelerMatchRule) m) .setMatch(m_matchField.getText()); m_list.repaint(); } } });
@Override public void propertyChange(PropertyChangeEvent e) { Object m = m_list.getSelectedValue(); if (m != null) { ((SubstringLabelerRules.SubstringLabelerMatchRule) m) .setMatch(m_matchField.getText()); m_list.repaint(); } } });
@Override public void propertyChange(PropertyChangeEvent e) { Object m = m_list.getSelectedValue(); if (m != null) { ((SubstringLabelerRules.SubstringLabelerMatchRule) m) .setMatch(m_matchField.getText()); m_list.repaint(); } } });
@Override public void actionPerformed(ActionEvent e) { SubstringLabelerRules.SubstringLabelerMatchRule m = new SubstringLabelerRules.SubstringLabelerMatchRule(); String atts = (m_attListField.getText() != null) ? m_attListField.getText() : ""; m.setAttsToApplyTo(atts); String match = (m_matchField.getText() != null) ? m_matchField.getText() : ""; m.setMatch(match); String label = (m_labelField.getText() != null) ? m_labelField.getText() : ""; m.setLabel(label); m.setRegex(m_regexCheck.isSelected()); m.setIgnoreCase(m_ignoreCaseCheck.isSelected()); m_listModel.addElement(m); if (m_listModel.size() > 1) { m_upBut.setEnabled(true); m_downBut.setEnabled(true); } m_list.setSelectedIndex(m_listModel.size() - 1); checkUpDown(); } });
@Override public void actionPerformed(ActionEvent e) { SubstringLabelerRules.SubstringLabelerMatchRule m = new SubstringLabelerRules.SubstringLabelerMatchRule(); String atts = (m_attListField.getText() != null) ? m_attListField .getText() : ""; m.setAttsToApplyTo(atts); String match = (m_matchField.getText() != null) ? m_matchField .getText() : ""; m.setMatch(match); String label = (m_labelField.getText() != null) ? m_labelField .getText() : ""; m.setLabel(label); m.setRegex(m_regexCheck.isSelected()); m.setIgnoreCase(m_ignoreCaseCheck.isSelected()); m_listModel.addElement(m); if (m_listModel.size() > 1) { m_upBut.setEnabled(true); m_downBut.setEnabled(true); } m_list.setSelectedIndex(m_listModel.size() - 1); } });
@Override public void actionPerformed(ActionEvent e) { SubstringLabelerRules.SubstringLabelerMatchRule m = new SubstringLabelerRules.SubstringLabelerMatchRule(); String atts = (m_attListField.getText() != null) ? m_attListField .getText() : ""; m.setAttsToApplyTo(atts); String match = (m_matchField.getText() != null) ? m_matchField .getText() : ""; m.setMatch(match); String label = (m_labelField.getText() != null) ? m_labelField .getText() : ""; m.setLabel(label); m.setRegex(m_regexCheck.isSelected()); m.setIgnoreCase(m_ignoreCaseCheck.isSelected()); m_listModel.addElement(m); if (m_listModel.size() > 1) { m_upBut.setEnabled(true); m_downBut.setEnabled(true); } m_list.setSelectedIndex(m_listModel.size() - 1); } });
@Override public void actionPerformed(ActionEvent e) { SubstringLabelerRules.SubstringLabelerMatchRule m = new SubstringLabelerRules.SubstringLabelerMatchRule(); String atts = (m_attListField.getText() != null) ? m_attListField.getText() : ""; m.setAttsToApplyTo(atts); String match = (m_matchField.getText() != null) ? m_matchField.getText() : ""; m.setMatch(match); String label = (m_labelField.getText() != null) ? m_labelField.getText() : ""; m.setLabel(label); m.setRegex(m_regexCheck.isSelected()); m.setIgnoreCase(m_ignoreCaseCheck.isSelected()); m_listModel.addElement(m); if (m_listModel.size() > 1) { m_upBut.setEnabled(true); m_downBut.setEnabled(true); } m_list.setSelectedIndex(m_listModel.size() - 1); checkUpDown(); } });
@Override public void propertyChange(PropertyChangeEvent e) { Object m = m_list.getSelectedValue(); if (m != null) { ((SubstringLabelerRules.SubstringLabelerMatchRule) m) .setMatch(m_matchField.getText()); m_list.repaint(); } } });