Search in sources :

Example 1 with GwtXulDomContainer

use of org.pentaho.ui.xul.gwt.GwtXulDomContainer in project data-access by pentaho.

the class GwtDatasourceAdminDialog method xulLoaded.

public void xulLoaded(final GwtXulRunner runner) {
    try {
        GwtXulDomContainer container = (GwtXulDomContainer) runner.getXulDomContainers().get(0);
        BindingFactory bf = new GwtBindingFactory(container.getDocumentRoot());
        ResourceBundle resBundle = (ResourceBundle) container.getResourceBundles().get(0);
        datasourceMessages = new GwtDatasourceMessages();
        datasourceMessages.setMessageBundle(resBundle);
        datasourceAdminDialogController = new DatasourceAdminDialogController();
        datasourceAdminDialogController.setBindingFactory(bf);
        datasourceAdminDialogController.setDatasourceServiceManager(genericDatasourceServiceManager);
        datasourceAdminDialogController.setModelerService(modelerService);
        datasourceAdminDialogController.setDSWService(dswService);
        datasourceAdminDialogController.setEntryPoint(entryPoint);
        datasourceAdminDialogController.setMessageBundle(datasourceMessages);
        container.addEventHandler(datasourceAdminDialogController);
        runner.initialize();
        runner.start();
        initialized = true;
        if (constructorListener != null) {
            constructorListener.asyncConstructorDone(this);
        }
        datasourceAdminDialogController.onDialogReady();
    } catch (Exception e) {
        e.printStackTrace();
    }
}
Also used : GwtDatasourceMessages(org.pentaho.platform.dataaccess.datasource.wizard.GwtDatasourceMessages) GwtBindingFactory(org.pentaho.ui.xul.gwt.binding.GwtBindingFactory) ResourceBundle(org.pentaho.gwt.widgets.client.utils.i18n.ResourceBundle) GwtXulDomContainer(org.pentaho.ui.xul.gwt.GwtXulDomContainer) BindingFactory(org.pentaho.ui.xul.binding.BindingFactory) GwtBindingFactory(org.pentaho.ui.xul.gwt.binding.GwtBindingFactory)

Example 2 with GwtXulDomContainer

use of org.pentaho.ui.xul.gwt.GwtXulDomContainer in project data-access by pentaho.

the class GwtDatasourceSelectionDialog method xulLoaded.

public void xulLoaded(final GwtXulRunner runner) {
    try {
        GwtXulDomContainer container = (GwtXulDomContainer) runner.getXulDomContainers().get(0);
        BindingFactory bf = new GwtBindingFactory(container.getDocumentRoot());
        // begin DatasourceSelectionDialogController setup
        datasourceSelectionDialogController = new DatasourceSelectionDialogController(context);
        datasourceSelectionDialogController.setBindingFactory(bf);
        datasourceSelectionDialogController.setDatasourceService(datasourceService);
        container.addEventHandler(datasourceSelectionDialogController);
        // end DatasourceSelectionDialogController setup
        datasourceSelectionDialogController.setDatasourceDialogController(gwtDatasourceEditor);
        ResourceBundle resBundle = (ResourceBundle) container.getResourceBundles().get(0);
        GwtDatasourceMessages datasourceMessages = new GwtDatasourceMessages();
        datasourceMessages.setMessageBundle(resBundle);
        datasourceSelectionDialogController.setMessageBundle(datasourceMessages);
        runner.initialize();
        runner.start();
        initialized = true;
        if (constructorListener != null) {
            constructorListener.asyncConstructorDone(this);
        }
        datasourceSelectionDialogController.onDialogReady();
    } catch (Exception e) {
        e.printStackTrace();
    }
}
Also used : GwtDatasourceMessages(org.pentaho.platform.dataaccess.datasource.wizard.GwtDatasourceMessages) GwtBindingFactory(org.pentaho.ui.xul.gwt.binding.GwtBindingFactory) ResourceBundle(org.pentaho.gwt.widgets.client.utils.i18n.ResourceBundle) GwtXulDomContainer(org.pentaho.ui.xul.gwt.GwtXulDomContainer) BindingFactory(org.pentaho.ui.xul.binding.BindingFactory) GwtBindingFactory(org.pentaho.ui.xul.gwt.binding.GwtBindingFactory)

Aggregations

ResourceBundle (org.pentaho.gwt.widgets.client.utils.i18n.ResourceBundle)2 GwtDatasourceMessages (org.pentaho.platform.dataaccess.datasource.wizard.GwtDatasourceMessages)2 BindingFactory (org.pentaho.ui.xul.binding.BindingFactory)2 GwtXulDomContainer (org.pentaho.ui.xul.gwt.GwtXulDomContainer)2 GwtBindingFactory (org.pentaho.ui.xul.gwt.binding.GwtBindingFactory)2