warning = ImageIconFactory.getIcon("warning");
info = ImageIconFactory.getIcon("info");
}
dialog = constructDialog("MessageDialog", dataModel);
TextPane textPane = (TextPane) dialog.getWidget("MessagePane");
switchButton = (Button) dialog.getWidget("SwitchButton");
containerPanel = (Panel) dialog.getWidget("ContainerPanel");
if (details == null) {
switchButton.setEnabled(false);
} else {
TextPane detailPane = (TextPane) dialog.getWidget("DetailPane");
detailPane.addText(details);
}
switch (type) {
case INFORMATION_MESSAGE :
textPane.addIcon(info);