Package org.jitterbit.application.ui.window

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


    @Override
    public void displayContent(WindowSectionContentProvider provider,
                               SectionPosition position,
                               WindowSectionContentUpdater updater,
                               AddContentCallback callback) {
        WindowSection section = getWindowSection(position);
        String contentId = provider.getContentId();
        if (section.containsContent(contentId)) {
            switchToAlreadyDisplayedContent(section, contentId, updater, callback);
        } else {
            createAndDisplayNewContent(provider, section, callback);
        }
    }
View Full Code Here


    private void createCenterEastSplit(MainWindow window) {
        centerEastSplit = createSplitPane(JSplitPane.HORIZONTAL_SPLIT, 1, true);
        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

    }

    private void registerListener() {
        Listener listener = new Listener();
        for (ApplicationWindow.SectionPosition pos : ApplicationWindow.SectionPosition.values()) {
            WindowSection winSec = appWin.getWindowSection(pos);
            winSec.addWindowSectionListener(listener);
        }
    }
View Full Code Here

            }
        }

        @Override
        public void contentRemoved(WindowSectionEvent evt) {
            WindowSection winSec = evt.getSource();
            if (winSec.getActiveContent() == null) {
                SectionPosition pos = appWin.getSectionPosition(winSec);
                if (pos == null) {
                    return;
                }
                switch (pos) {
View Full Code Here

            return true;
        }
    }

    private void initializeControlPanel() {
        WindowSection controlSection = getWindow().getWindowSection(ApplicationWindow.WEST);
        controlPanel.setWindowSection(controlSection);
        controlSection.addContent(controlPanel, new AddContentWaitIndicator(getWindow()));
    }
View Full Code Here

        return new SingleTreeContentViewer(view, view.getWindow().getWindowSection(ApplicationWindow.WEST), id, tree);
    }

    public MultiTreeContentViewer newEmptyMultiTree(InterchangeView view) {
        ApplicationWindow window = view.getWindow();
        WindowSection windowSection = window.getWindowSection(ApplicationWindow.WEST);
        return new MultiTreeContentViewer(windowSection, view, config);
    }
View Full Code Here

                handleError(ex);
            }
        }

        private void switchToNewContentViewer() {
            WindowSection ws = appWin.getWindowSection(ApplicationWindow.WEST);
            uninstallCurrentViewer(ws);
            currentViewer = createNewViewer();
            ws.addContent(currentViewer.getWindowContent(), this);
        }
View Full Code Here

            super.setActive(active);
            ApplicationWindow appWin = getWindow();
            if (active) {
                ApplicationUiHelp.getHelp().enableWindowHelpKey("welcome");
                updateTitleBar(appWin);
                WindowSection ws = appWin.getWindowSection(ApplicationWindow.WEST);
                ws.setActiveContent(contentViewerManager.getWindowContent());
            }
        }
    }
View Full Code Here

        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

TOP

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

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.