String tmpStringValue = getText();
if (m_inputListener != null) {
m_inputListener.stringValueChange(tmpStringValue);
}
IStringScalar tmpStringScalar = getModel();
if (tmpStringScalar == null) {
return;
}
// System.out.println("ACTION PERFORMED");
int result = GlobalSoleilJDialog.OK_OPTION;
if (askConfirmation) {
result = JOptionPane.showConfirmDialog(this, textAskConfirmation, titleAskConfirmation,
JOptionPane.YES_NO_OPTION);
}
if (result == JOptionPane.OK_OPTION) {
tmpStringScalar.setString(tmpStringValue);
}
else {
setText(tmpStringScalar.getStringValue());
}
}