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();
}
}
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();
}
}
Aggregations