当前位置: 首页>>代码示例>>Java>>正文


Java WizardPage类代码示例

本文整理汇总了Java中org.uberfire.ext.widgets.core.client.wizards.WizardPage的典型用法代码示例。如果您正苦于以下问题:Java WizardPage类的具体用法?Java WizardPage怎么用?Java WizardPage使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


WizardPage类属于org.uberfire.ext.widgets.core.client.wizards包,在下文中一共展示了WizardPage类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: isComplete

import org.uberfire.ext.widgets.core.client.wizards.WizardPage; //导入依赖的package包/类
@Override
public void isComplete(final Callback<Boolean> callback) {
    final int[] unCompletedPages = {this.pages.size()};
    final boolean[] completed = {false};

    //only when all pages are complete we can say the wizard is complete.
    for (WizardPage page : this.pages) {
        page.isComplete(new Callback<Boolean>() {
            @Override
            public void callback(final Boolean result) {
                if (Boolean.TRUE.equals(result)) {
                    unCompletedPages[0]--;
                    if (unCompletedPages[0] == 0) {
                        completed[0] = true;
                    }
                }
            }
        });
    }

    callback.callback(completed[0]);
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:23,代码来源:CreateRepositoryWizard.java

示例2: isComplete

import org.uberfire.ext.widgets.core.client.wizards.WizardPage; //导入依赖的package包/类
@Override
public void isComplete(final Callback<Boolean> callback) {
    //Assume complete
    callback.callback(true);

    for (WizardPage page : this.pages) {
        page.isComplete(new Callback<Boolean>() {
            @Override
            public void callback(final Boolean result) {
                if (Boolean.FALSE.equals(result)) {
                    callback.callback(false);
                }
            }
        });
    }
}
 
开发者ID:kiegroup,项目名称:drools-wb,代码行数:17,代码来源:NewGuidedDecisionTableWizard.java

示例3: isComplete

import org.uberfire.ext.widgets.core.client.wizards.WizardPage; //导入依赖的package包/类
@Override
public void isComplete(final Callback<Boolean> callback) {
    callback.callback(true);

    //only when all pages are complete we can say the wizard is complete.
    for (WizardPage page : this.pages) {
        page.isComplete(new Callback<Boolean>() {
            @Override
            public void callback(final Boolean result) {
                if (Boolean.FALSE.equals(result)) {
                    callback.callback(false);
                }
            }
        });
    }
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:17,代码来源:ExamplesWizard.java

示例4: isComplete

import org.uberfire.ext.widgets.core.client.wizards.WizardPage; //导入依赖的package包/类
@Override
public void isComplete(final Callback<Boolean> callback) {
    final int[] unCompletedPages = {this.pages.size()};

    for (WizardPage page : this.pages) {
        page.isComplete(result -> {
            if (Boolean.TRUE.equals(result)) {
                unCompletedPages[0]--;
                if (unCompletedPages[0] == 0) {
                    callback.callback(true);
                }
            } else {
                callback.callback(false);
            }
        });
    }
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:18,代码来源:CreateAnnotationWizard.java

示例5: isComplete

import org.uberfire.ext.widgets.core.client.wizards.WizardPage; //导入依赖的package包/类
@Override
public void isComplete( final Callback<Boolean> callback ) {
    final int[] unCompletedPages = { this.pages.size() };

    //only when all pages are complete we can say the wizard is complete.
    for ( WizardPage page : this.pages ) {
        page.isComplete( new Callback<Boolean>() {
            @Override
            public void callback( final Boolean result ) {
                if ( Boolean.TRUE.equals( result ) ) {
                    unCompletedPages[ 0 ]--;
                    if ( unCompletedPages[ 0 ] == 0 ) {
                        callback.callback( true );
                    }
                } else {
                    callback.callback( false );
                }
            }
        } );
    }
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:22,代码来源:AbstractMultiPageWizard.java

示例6: isComplete

import org.uberfire.ext.widgets.core.client.wizards.WizardPage; //导入依赖的package包/类
@Override
public void isComplete(final Callback<Boolean> callback) {
    final int[] unCompletedPages = {this.pages.size()};

    //only when all pages are complete we can say the wizard is complete.
    for (WizardPage page : this.pages) {
        page.isComplete(new Callback<Boolean>() {
            @Override
            public void callback(final Boolean result) {
                if (Boolean.TRUE.equals(result)) {
                    unCompletedPages[0]--;
                    if (unCompletedPages[0] == 0) {
                        callback.callback(true);
                    }
                } else {
                    callback.callback(false);
                }
            }
        });
    }
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:22,代码来源:AbstractMultiPageWizard.java

示例7: assertPageComplete

import org.uberfire.ext.widgets.core.client.wizards.WizardPage; //导入依赖的package包/类
public static void assertPageComplete(final boolean expectedResult,
                                      WizardPage page) {
    page.isComplete(new Callback<Boolean>() {
        @Override
        public void callback(Boolean result) {
            assertEquals(expectedResult,
                         result);
        }
    });
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:11,代码来源:WizardTestUtils.java

示例8: getPageWidget

import org.uberfire.ext.widgets.core.client.wizards.WizardPage; //导入依赖的package包/类
@Override
public Widget getPageWidget(final int pageNumber) {
    final WizardPage wizardPage = this.pages.get(pageNumber);
    final Widget widget = wizardPage.asWidget();

    wizardPage.prepareView();

    return widget;
}
 
开发者ID:kiegroup,项目名称:drools-wb,代码行数:10,代码来源:NewGuidedDecisionTableColumnWizard.java

示例9: isComplete

import org.uberfire.ext.widgets.core.client.wizards.WizardPage; //导入依赖的package包/类
@Override
public void isComplete(final Callback<Boolean> callback) {
    //Assume complete
    callback.callback(true);

    for (final WizardPage page : this.pages) {
        page.isComplete(result -> {
            if (Boolean.FALSE.equals(result)) {
                callback.callback(false);
            }
        });
    }
}
 
开发者ID:kiegroup,项目名称:drools-wb,代码行数:14,代码来源:NewGuidedDecisionTableColumnWizard.java

示例10: start

import org.uberfire.ext.widgets.core.client.wizards.WizardPage; //导入依赖的package包/类
@Override
public void start() {
    pages = new ArrayList<WizardPage>() {{
        add(summaryPage);
        addAll(pages);
    }};

    for (WizardPage page : pages) {
        ((BaseDecisionTableColumnPage) page).init(this);
    }

    parentStart();
}
 
开发者ID:kiegroup,项目名称:drools-wb,代码行数:14,代码来源:NewGuidedDecisionTableColumnWizard.java

示例11: initPages

import org.uberfire.ext.widgets.core.client.wizards.WizardPage; //导入依赖的package包/类
void initPages(final DecisionTableColumnPlugin plugin) {
    for (final WizardPage page : pages) {
        final BaseDecisionTableColumnPage tableColumnPage = (BaseDecisionTableColumnPage) page;

        tableColumnPage.init(this);
        tableColumnPage.setPlugin(plugin);
    }
}
 
开发者ID:kiegroup,项目名称:drools-wb,代码行数:9,代码来源:NewGuidedDecisionTableColumnWizard.java

示例12: getPages

import org.uberfire.ext.widgets.core.client.wizards.WizardPage; //导入依赖的package包/类
@Override
public List<WizardPage> getPages() {
    return new ArrayList<WizardPage>() {{
        add(patternPage);

        if (isExtendedEntryTable()) {
            add(calculationTypePage);
        }

        add(fieldPage);
        add(operatorPage);
        add(initializedValueOptionsPage());
        add(initializedAdditionalInfoPage());
    }};
}
 
开发者ID:kiegroup,项目名称:drools-wb,代码行数:16,代码来源:ConditionColumnPlugin.java

示例13: getPages

import org.uberfire.ext.widgets.core.client.wizards.WizardPage; //导入依赖的package包/类
@Override
public List<WizardPage> getPages() {
    return new ArrayList<WizardPage>() {{
        if (tableFormat() == GuidedDecisionTable52.TableFormat.LIMITED_ENTRY) {
            add(patternToDeletePage);
        }

        add(additionalInfoPage());
    }};
}
 
开发者ID:kiegroup,项目名称:drools-wb,代码行数:11,代码来源:ActionRetractFactPlugin.java

示例14: getPages

import org.uberfire.ext.widgets.core.client.wizards.WizardPage; //导入依赖的package包/类
@Override
public List<WizardPage> getPages() {
    return new ArrayList<WizardPage>() {{
        add(ruleModellerPage);
        add(additionalInfoPage());
    }};
}
 
开发者ID:kiegroup,项目名称:drools-wb,代码行数:8,代码来源:BRLConditionColumnPlugin.java

示例15: getPages

import org.uberfire.ext.widgets.core.client.wizards.WizardPage; //导入依赖的package包/类
@Override
public List<WizardPage> getPages() {
    return new ArrayList<WizardPage>() {{
        add(initializedPatternPage());
        add(fieldPage);
        add(initializedValueOptionsPage());
        add(initializedAdditionalInfoPage());
    }};
}
 
开发者ID:kiegroup,项目名称:drools-wb,代码行数:10,代码来源:ActionSetFactPlugin.java


注:本文中的org.uberfire.ext.widgets.core.client.wizards.WizardPage类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。