Package org.jitterbit.application.ui.wizard

Examples of org.jitterbit.application.ui.wizard.WizardPage


        if (location == null) {
            // TODO: This should never happen since the Next Page button
            // will be disabled if a location has not been selected. But
            // just in case, maybe we should deal with this...
        }
        WizardPage page = getCachedNextPage(location);
        if (page == null) {
            page = createNewNextPage(location);
        } else if (page instanceof ManualSqlStatementPage) {
            transferManualSqlStatementIfNeeded((ManualSqlStatementPage) page);
        }
View Full Code Here


    }

    private WizardPage createNewNextPage(DatabaseLocation location) {
        Source source = getSelectedEntity();
        boolean selected = manualModeSwitch.isSelected();
        WizardPage next;
        if (selected) {
            next = new ManualSqlStatementPage(getWizard(), source, location);
            transferManualSqlStatementIfNeeded((ManualSqlStatementPage) next);
        } else {
            DatabaseTableSelectionPage tableSelectionPage = new DatabaseTableSelectionPage(
View Full Code Here

    @Override
    public WizardPage getNextPage(WizardPage page) {
        while (pages.getLast() != page) {
            pages.removeLast();
        }
        WizardPage next = page.getNextPage();
        if (next != null) {
            prepareNextPage(next);
            pages.addLast(next);
        }
        return next;
View Full Code Here

    @Override
    public WizardPage getPreviousPage(WizardPage page) {
        if (page == startPage) {
            return null;
        }
        WizardPage previous = startPage;
        for (WizardPage p : pages) {
            if (p == page) {
                return previous;
            }
            previous = p;
View Full Code Here

        if (cols.isEmpty()) {
            // This marks the end of the source part of the wizard
            return null;
        }

        WizardPage page = getCachedNextPage(cols);
        if (page == null) {
            page = createNewNextPage(cols);
        }
        return page;
    }
View Full Code Here

        private final Map<SelectedTables, WizardPage> nextPageCache = Maps.newHashMap();

        public WizardPage getNextPage() {
            SelectedTables tables = getSelectedTables();
            WizardPage nextPage = nextPageCache.get(tables);
            if (nextPage == null) {
                nextPage = createNewNextPage(tables);
                nextPageCache.put(tables, nextPage);
            }
            return nextPage;
View Full Code Here

        return true;
    }

    @Override
    public WizardPage getNextPage() {
        WizardPage page = getCachedNextPage();
        if (page == null) {
            page = createNewNextPage();
        }
        return page;
    }
View Full Code Here

    private WizardPage createNewNextPage() {
        if (updateSourceTableApplicable.isFalse()) {
            return null;
        }
        WizardPage page = null;
        boolean showDisclaimer = updateSourceTableApplicable.isMaybe();
        if (incomingObject.hasPrimaryKeys()) {
            page = new UpdateSourceDatabasePage(getWizard(), incomingObject, null, showDisclaimer);
        } else {
            page = new UpdateKeySelectionPage(getWizard(), incomingObject, showDisclaimer);
View Full Code Here

    @Override
    public final WizardPage getNextPage(WizardPage page) {
        if (page == summaryPage) {
            return null;
        }
        WizardPage next = currentChain.getNextPage(page);
        if (next == null) {
            if (currentChain == sourcePages) {
                prepareTargetChain();
                setSection(WizardSections.TARGET);
                currentChain = targetPages;
View Full Code Here

        return sourcePages.hasPreviousPage(page);
    }

    @Override
    public final WizardPage getPreviousPage(WizardPage page) {
        WizardPage previous = null;
        if (page == summaryPage) {
            setSection(WizardSections.TARGET);
            currentChain = targetPages;
            previous = targetPages.getLastPage();
        } else {
View Full Code Here

TOP

Related Classes of org.jitterbit.application.ui.wizard.WizardPage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.