private String warningText = DAWidgetConstants.EMPTY_STRING;
private int width = 300;
private int height = 100;
+ private DACustomButtonClickEventListener cancelButtonListener = null;
+ private DACustomButtonClickEventListener okButtonListener = null;
private Listener shellMouseListener = new Listener() {
boolean down = false;
progress.setBarRect(new Rectangle(12, 45, rect.width - 24, 22));
progress.setUpperPoint(new Point(41, 18));
progress.setBottomPoint(new Point(12, 76));
+
+ if (null != cancelButtonListener) {
+ progress.setCancelButtonListener(cancelButtonListener);
+ }
break;
case Progress.PROGRESS_STYLE_WARNING:
progress.setBarStartColor(ColorResources.RED);
progress.setWarningFontColor(ColorResources.STOP_PROGRESS_INFO_FONT_COLOR);
progress.setWarningPoint(new Point(81, 40));
progress.setWarningImage(ImageResources.DIALOG_WARNING_ICON);
+
+ if (null != okButtonListener) {
+ progress.setOkButtonListener(okButtonListener);
+ }
break;
}
}
if (progress != null) {
progress.setCancelButtonListener(listener);
}
+ cancelButtonListener = listener;
}
public void setCancelEnabled(final boolean enable) {
if (progress != null) {
progress.setOkButtonListener(listener);
}
+ okButtonListener = listener;
}
public void setOkEnabled(final boolean enable) {