use of org.pentaho.ui.xul.components.XulLabel in project data-access by pentaho.
the class MessageHandler method showDetailedSuccessDialog.
@Bindable
public void showDetailedSuccessDialog(String message, String detailMessage) {
XulDialog detailedSuccessDialog = (XulDialog) document.getElementById("successDetailsDialog");
XulLabel successLabel = (XulLabel) document.getElementById("success_details_label");
successLabel.setValue(message);
XulTextbox detailMessageBox = (XulTextbox) document.getElementById("success_dialog_details");
detailMessageBox.setValue(detailMessage);
detailedSuccessDialog.show();
}
use of org.pentaho.ui.xul.components.XulLabel in project data-access by pentaho.
the class ModelerDialog method showErrorDialog.
protected void showErrorDialog(String title, String message) {
errorDialog = (XulDialog) container.getDocumentRoot().getElementById("errorDialog");
XulLabel errorLabel = (XulLabel) container.getDocumentRoot().getElementById("errorLabel");
errorDialog.setTitle(title);
errorLabel.setValue(message);
errorDialog.show();
}
use of org.pentaho.ui.xul.components.XulLabel in project data-access by pentaho.
the class DatasourceAdminDialogController method remove.
@Bindable
public void remove() {
IDatasourceInfo dsInfo = datasourceAdminDialogModel.getSelectedDatasource();
if (dsInfo == null) {
showErrorDialog("datasourceAdminErrorDialog.SELECT_DATASOURCE", "datasourceAdminErrorDialog.SELECT_DATASOURCE_DELETE");
return;
}
if (messageBundle != null) {
XulLabel removeDatasourceConfirmationDialogLabel = (XulLabel) removeDatasourceConfirmationDialog.getElementById("removeDatasourceConfirmationDialogLabel");
removeDatasourceConfirmationDialogLabel.setValue(messageBundle.getString(REMOVE_DS_MSG_ID, dsInfo.getName()));
}
removeDatasourceConfirmationDialog.show();
}
use of org.pentaho.ui.xul.components.XulLabel in project data-access by pentaho.
the class DatasourceSelectionDialogController method removeDatasourceConfirm.
@Bindable
public void removeDatasourceConfirm() {
if (messageBundle != null) {
XulLabel removeDatasourceConfirmationDialogLabel = (XulLabel) removeDatasourceConfirmationDialog.getElementById("removeDatasourceConfirmationDialogLabel");
LogicalModelSummary logicalModelSummary = getDialogResult();
if (removeDatasourceConfirmationDialogLabel != null && logicalModelSummary != null) {
removeDatasourceConfirmationDialogLabel.setValue(messageBundle.getString(REMOVE_DS_MSG_ID, logicalModelSummary.getModelName()));
}
}
removeDatasourceConfirmationDialog.show();
}
Aggregations