Search in sources :

Example 1 with ImporterWizard

use of org.activityinfo.client.importer.ImporterWizard in project activityinfo by bedatadriven.

the class DataEntryPage method doImport.

protected void doImport() {
    final int activityId = currentPlace.getFilter().getRestrictedCategory(DimensionType.Activity);
    dispatcher.execute(new GetSchema(), new AsyncCallback<SchemaDTO>() {

        @Override
        public void onFailure(Throwable caught) {
        // TODO Auto-generated method stub
        }

        @Override
        public void onSuccess(SchemaDTO result) {
            Wizard wizard = new ImporterWizard(dispatcher, result.getActivityById(activityId));
            WizardDialog dialog = new WizardDialog(wizard);
            dialog.show(new WizardCallback() {
            });
        }
    });
}
Also used : WizardCallback(org.activityinfo.client.widget.wizard.WizardCallback) ImporterWizard(org.activityinfo.client.importer.ImporterWizard) GetSchema(org.activityinfo.shared.command.GetSchema) SchemaDTO(org.activityinfo.shared.dto.SchemaDTO) ImporterWizard(org.activityinfo.client.importer.ImporterWizard) Wizard(org.activityinfo.client.widget.wizard.Wizard) WizardDialog(org.activityinfo.client.widget.wizard.WizardDialog)

Aggregations

ImporterWizard (org.activityinfo.client.importer.ImporterWizard)1 Wizard (org.activityinfo.client.widget.wizard.Wizard)1 WizardCallback (org.activityinfo.client.widget.wizard.WizardCallback)1 WizardDialog (org.activityinfo.client.widget.wizard.WizardDialog)1 GetSchema (org.activityinfo.shared.command.GetSchema)1 SchemaDTO (org.activityinfo.shared.dto.SchemaDTO)1