/**
* Invoked when an action occurs.
*/
public void actionPerformed(final ActionEvent e)
{
final PreviewPane base = getPreviewPane();
if (base == null)
{
return;
}
final MasterReport report = base.getReportJob();
report.getParameterValues().put(MESSAGE_ONE_FIELDNAME, messageOneField.getText());
report.getParameterValues().put(MESSAGE_TWO_FIELDNAME, messageTwoField.getText());
try
{
base.setReportJob(report);
}
catch (Exception ex)
{
logger.error("Unable to refresh the report.", ex);
}