Package org.jitterbit.application.ui.window

Examples of org.jitterbit.application.ui.window.AddContentCallback


        centerEastSplit.setBorder(null);
        JComponent centerView = createSplitPaneCanvas();
        WindowSection centerSection = window.getWindowSection(ApplicationWindow.CENTER);
        centerSection.decorate(centerView);
        WindowSectionContent content = new EditorServiceWindowContent(centerSection, window.getEditorService());
        AddContentCallback callback = new AddContentWaitIndicator(window);
        centerSection.addContent(content, callback);
        JComponent east = createSplitPaneCanvas();
        window.getWindowSection(ApplicationWindow.EAST).decorate(east);
        centerEastSplit.setRightComponent(east);
        centerEastSplit.setLeftComponent(centerView);
View Full Code Here


        this.displayer = new WindowSingleContentDisplayer(this);
    }

    @Override
    public void addContent(WindowSectionContent content, AddContentCallback callback) {
        AddContentCallback safeCallback = (callback != null) ? callback : new AddContentCallbackAdapter() { /**/ };
        if (content.getId().equals(contentID)) {
            safeCallback.contentAdded(this, content);
            return;
        }
        this.contentID = content.getId();
        this.content = content;
        Runnable job = new AddContentJob(content, safeCallback);
View Full Code Here

        });
    }

    @Override
    public void addContent(WindowSectionContent content, AddContentCallback callback) {
        AddContentCallback safeCallback = (callback != null) ? callback : new AddContentCallbackAdapter() { /**/ };
        if (idToContent.containsKey(content.getId())) {
            // The content has already been added. Make it active:
            setActiveContent(content);
            safeCallback.contentAdded(this, content);
        } else {
            Runnable job = new AddContentJob(content, safeCallback);
            new BusyWorker(getWindow(), job).run();
        }
    }
View Full Code Here

    private void addContentViewerToWindow() {
        EventQueue.invokeLater(new Runnable() {

            @Override
            public void run() {
                final AddContentCallback callback = new AddContentWaitIndicator(getWindow());
                WindowSection west = getWindow().getWindowSection(ApplicationWindow.WEST);
                west.addContent(contentViewerManager.getWindowContent(), callback);
            }
        });
    }
View Full Code Here

    @Override
    public void displayInWindow(ApplicationWindow window) {
        WindowSectionContentProvider provider = new ProjectDeployHistoryViewFactory(projectManager, project, entity);
        ApplicationWindow.SectionPosition position = ApplicationWindow.SOUTH;
        WindowSectionContentUpdater updater = getUpdater();
        AddContentCallback callback = new AddContentWaitIndicator(window.startWait());
        window.displayContent(provider, position, updater, callback);
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.application.ui.window.AddContentCallback

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.