public void setCriteria(java.io.Serializable searchCriteria) { if (searchCriteria instanceof String) { String part = ""; String value = ""; String criteria = (String) searchCriteria; int index = criteria.indexOf("::"); if (index != -1) { part = criteria.substring(0, index); value = criteria.substring(index + 2); } this.criteria = searchCriteria; partField.setText(part); valueField.setText(value); } else { this.criteria = null; partField.setText(""); valueField.setText(""); } }
public java.io.Serializable getCriteria() { return partField.getText() + "::" + valueField.getText(); }
public void actionPerformed(java.awt.event.ActionEvent ae) { this.criteria = partField.getText() + "::" + valueField.getText(); }