Search in sources :

Example 6 with XulLabel

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();
}
Also used : XulTextbox(org.pentaho.ui.xul.components.XulTextbox) XulDialog(org.pentaho.ui.xul.containers.XulDialog) XulLabel(org.pentaho.ui.xul.components.XulLabel) Bindable(org.pentaho.ui.xul.stereotype.Bindable)

Example 7 with XulLabel

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();
}
Also used : XulLabel(org.pentaho.ui.xul.components.XulLabel)

Example 8 with XulLabel

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();
}
Also used : XulLabel(org.pentaho.ui.xul.components.XulLabel) IDatasourceInfo(org.pentaho.platform.dataaccess.datasource.IDatasourceInfo) Bindable(org.pentaho.ui.xul.stereotype.Bindable)

Example 9 with XulLabel

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();
}
Also used : LogicalModelSummary(org.pentaho.platform.dataaccess.datasource.beans.LogicalModelSummary) XulLabel(org.pentaho.ui.xul.components.XulLabel) Bindable(org.pentaho.ui.xul.stereotype.Bindable)

Aggregations

XulLabel (org.pentaho.ui.xul.components.XulLabel)9 XulDialog (org.pentaho.ui.xul.containers.XulDialog)3 Bindable (org.pentaho.ui.xul.stereotype.Bindable)3 XulTextbox (org.pentaho.ui.xul.components.XulTextbox)2 IDatasourceInfo (org.pentaho.platform.dataaccess.datasource.IDatasourceInfo)1 LogicalModelSummary (org.pentaho.platform.dataaccess.datasource.beans.LogicalModelSummary)1 Binding (org.pentaho.ui.xul.binding.Binding)1 BindingFactory (org.pentaho.ui.xul.binding.BindingFactory)1 XulRadio (org.pentaho.ui.xul.components.XulRadio)1 XulGroupbox (org.pentaho.ui.xul.containers.XulGroupbox)1 SwtListbox (org.pentaho.ui.xul.swt.tags.SwtListbox)1