}
}
}
public void actionPerformed(ActionEvent e) {
XComboBox clientListCombo = (XComboBox) e.getSource();
String client = (String) clientListCombo.getSelectedItem();
if (UtilValidate.isNotEmpty(client)) {
String[] clientInfos = client.split(" \\| ");
String name = clientInfos.length > 0 ? clientInfos[0] : "";
String email = clientInfos.length > 1 ? clientInfos[1] : "";
String phone = clientInfos.length > 2 ? clientInfos[2] : "";
String card = clientInfos.length > 3 ? clientInfos[3] : "";
if (UtilValidate.isNotEmpty(card) && SWIP_WITH_CARD && card.startsWith(START_SENTINEL) && card.endsWith(END_SENTINEL)) {
card = card.substring(1, card.length() - 1);
}
m_nameEdit.setText(name);
m_emailEdit.setText(email);
m_phoneEdit.setText(phone);
m_cardEdit.setText(card);
m_partyId = m_clientListBidingCombo.get(clientListCombo.getSelectedIndex());
}
}