當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。