Package org.jitterbit.ui.layout

Examples of org.jitterbit.ui.layout.CardPanel


        }

        @Override
        public void editorOpened(EditorCategory category, Editor editor) {
            int index = switchToTabSilently(category);
            CardPanel cards = tabCards.get(index);
            String cardName = editor.getId();
            cards.add(editor, cardName);
            cards.show(cardName);
            updateTabTitle(category, index);
            editor.requestFocus();
            updateTabControllers();
        }
View Full Code Here


        }

        @Override
        public void editorClosed(EditorCategory category, Editor editor) {
            int index = tabIndeces.get(category);
            CardPanel cards = tabCards.get(index);
            cards.remove(editor.getId());
            updateTabTitle(category, index);
            updateTabControllers();
        }
View Full Code Here

        private final MouseHandler mouseHandler;

        public Tabs(List<LaunchOption> options) {
            this.options = options;
            tabs = Lists.newArrayList();
            cards = new CardPanel();
            mouseHandler = new MouseHandler();
            for (LaunchOption o : options) {
                addOption(o);
            }
        }
View Full Code Here

        private final CardPanel cards;

        public MultiCategoryToggleLayout() {
            activators = Lists.newArrayList();
            cards = new CardPanel();
            List<Category> categories = Lists.newArrayList(consoleActions.keySet());
            Collections.sort(categories);
            for (Category c : categories) {
                JToggleButton b = createActivator(c);
                cards.add(createCategoryCard(c), c.getId());
View Full Code Here

    public Editor getActiveEditor() {
        if (tabs.getTabCount() == 0) {
            return null;
        }
        int index = tabs.getSelectedIndex();
        CardPanel cards = tabCards.get(index);
        String id = cards.getCurrentCard();
        Editor active = editorIdMap.get(id);
        return active;
    }
View Full Code Here

    private void selectEditorImpl(Editor editor) {
        tabListener.internalChange = true;
        EditorCategory category = categoryModel.categorize(editor);
        int index = switchToTab(category);
        CardPanel cards = tabCards.get(index);
        cards.show(editor.getId());
        getEditorService().fireActiveEditorChanged();
        updateEditorStates(editor);
        tabListener.internalChange = false;
    }
View Full Code Here

        }

        @Override
        protected Component getActiveArea() {
            int index = tabs.getSelectedIndex();
            CardPanel cards = tabCards.get(index);
            return cards.container();
        }
View Full Code Here

    private final BorderLayoutBuilder layout;

    public CardEditorServiceUi(DefaultEditorService service) {
        super(service);
        cards = new CardPanel();
        editorIdMap = Maps.newHashMap();
        categoryModel = new CategoryControlModel(service.getAppWin(), service);
        categoryModel.setLongNameMode(false);
        categoryController = new CategoryController(service.getAppWin(), categoryModel);
        categoryView = new CategoryControlPanel(categoryModel, categoryController, cards.container(),
View Full Code Here

        }

        @Override
        public void editorOpened(EditorCategory category, Editor editor) {
            int index = switchToTabSilently(category);
            CardPanel cards = tabCards.get(index);
            String cardName = editor.getId();
            cards.add(editor, cardName);
            cards.show(cardName);
            updateTabTitle(category, index);
            editor.requestFocus();
            updateTabControllers();
        }
View Full Code Here

        }

        @Override
        public void editorClosed(EditorCategory category, Editor editor) {
            int index = tabIndeces.get(category);
            CardPanel cards = tabCards.get(index);
            cards.remove(editor.getId());
            updateTabTitle(category, index);
            updateTabControllers();
        }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.layout.CardPanel

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.