Search in sources :

Example 6 with WizardPage

use of org.uberfire.ext.widgets.core.client.wizards.WizardPage in project kie-wb-common by kiegroup.

the class ExamplesWizard method start.

@Override
public void start() {
    for (WizardPage page : pages) {
        page.initialise();
        ((ExamplesWizardPage) page).setModel(model);
    }
    examplesService.call(new RemoteCallback<ExamplesMetaData>() {

        @Override
        public void callback(final ExamplesMetaData metaData) {
            final ExampleRepository repository = metaData.getRepository();
            sourceRepositoryPage.setPlaygroundRepository(repository);
            ExamplesWizard.super.start();
        }
    }).getMetaData();
}
Also used : ExamplesWizardPage(org.kie.workbench.common.screens.examples.client.wizard.pages.ExamplesWizardPage) ExampleRepository(org.kie.workbench.common.screens.examples.model.ExampleRepository) WizardPage(org.uberfire.ext.widgets.core.client.wizards.WizardPage) ExamplesWizardPage(org.kie.workbench.common.screens.examples.client.wizard.pages.ExamplesWizardPage) ExamplesMetaData(org.kie.workbench.common.screens.examples.model.ExamplesMetaData) RemoteCallback(org.jboss.errai.common.client.api.RemoteCallback)

Example 7 with WizardPage

use of org.uberfire.ext.widgets.core.client.wizards.WizardPage in project kie-wb-common by kiegroup.

the class CreateAnnotationWizard method clearCurrentValuePairEditorPages.

private void clearCurrentValuePairEditorPages() {
    List<ValuePairEditorPage> editorPages = filterValuePairEditorPages();
    int valuePairEditors = editorPages.size();
    for (WizardPage page : editorPages) {
        pages.remove(page);
    }
    for (int i = 0; i < valuePairEditors; i++) {
        ValuePairEditorPage valuePairEditorPage = editorPages.remove(0);
        iocManager.destroyBean(valuePairEditorPage);
    }
}
Also used : WizardPage(org.uberfire.ext.widgets.core.client.wizards.WizardPage)

Example 8 with WizardPage

use of org.uberfire.ext.widgets.core.client.wizards.WizardPage in project drools-wb by kiegroup.

the class NewGuidedDecisionTableColumnWizard method start.

@Override
public void start() {
    pages = new ArrayList<WizardPage>() {

        {
            add(summaryPage);
            addAll(pages);
        }
    };
    for (WizardPage page : pages) {
        ((BaseDecisionTableColumnPage) page).init(this);
    }
    parentStart();
}
Also used : WizardPage(org.uberfire.ext.widgets.core.client.wizards.WizardPage) BaseDecisionTableColumnPage(org.drools.workbench.screens.guided.dtable.client.wizard.column.pages.common.BaseDecisionTableColumnPage)

Example 9 with WizardPage

use of org.uberfire.ext.widgets.core.client.wizards.WizardPage in project drools-wb by kiegroup.

the class NewGuidedDecisionTableColumnWizard method initPages.

void initPages(final DecisionTableColumnPlugin plugin) {
    for (final WizardPage page : pages) {
        final BaseDecisionTableColumnPage tableColumnPage = (BaseDecisionTableColumnPage) page;
        tableColumnPage.init(this);
        tableColumnPage.setPlugin(plugin);
    }
}
Also used : WizardPage(org.uberfire.ext.widgets.core.client.wizards.WizardPage) BaseDecisionTableColumnPage(org.drools.workbench.screens.guided.dtable.client.wizard.column.pages.common.BaseDecisionTableColumnPage)

Aggregations

WizardPage (org.uberfire.ext.widgets.core.client.wizards.WizardPage)9 BaseDecisionTableColumnPage (org.drools.workbench.screens.guided.dtable.client.wizard.column.pages.common.BaseDecisionTableColumnPage)2 AbstractGuidedDecisionTableWizardPage (org.drools.workbench.screens.guided.dtable.client.wizard.table.pages.AbstractGuidedDecisionTableWizardPage)2 ExamplesWizardPage (org.kie.workbench.common.screens.examples.client.wizard.pages.ExamplesWizardPage)2 Widget (com.google.gwt.user.client.ui.Widget)1 BigDecimal (java.math.BigDecimal)1 BaseColumn (org.drools.workbench.models.guided.dtable.shared.model.BaseColumn)1 ConditionCol52 (org.drools.workbench.models.guided.dtable.shared.model.ConditionCol52)1 DTCellValue52 (org.drools.workbench.models.guided.dtable.shared.model.DTCellValue52)1 GuidedDecisionTable52 (org.drools.workbench.models.guided.dtable.shared.model.GuidedDecisionTable52)1 MetadataCol52 (org.drools.workbench.models.guided.dtable.shared.model.MetadataCol52)1 Validator (org.drools.workbench.screens.guided.dtable.client.widget.Validator)1 RowExpander (org.drools.workbench.screens.guided.dtable.client.wizard.table.pages.RowExpander)1 RemoteCallback (org.jboss.errai.common.client.api.RemoteCallback)1 ExampleRepository (org.kie.workbench.common.screens.examples.model.ExampleRepository)1 ExamplesMetaData (org.kie.workbench.common.screens.examples.model.ExamplesMetaData)1 Path (org.uberfire.backend.vfs.Path)1