Examples of CardPanel


Examples of org.jitterbit.ui.layout.CardPanel

        }

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

Examples of org.jitterbit.ui.layout.CardPanel

    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

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

Examples of org.jitterbit.ui.layout.CardPanel

        }

        @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

Examples of org.jitterbit.ui.layout.CardPanel

    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

Examples of org.jitterbit.ui.layout.CardPanel

    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

Examples of org.jitterbit.ui.layout.CardPanel

        }

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

Examples of org.jitterbit.ui.layout.CardPanel

            tabListener.internalChange = false;
        }

        private JComponent addTab(EditorCategory category) {
            int index = tabs.getTabCount();
            CardPanel cards = new CardPanel();
            tabCards.add(cards);
            String title = categoryModel.getCategoryDisplayName(category);
            tabs.addTab(title, category.icon, cards.container());
            return tabs.getTabComponentAt(index);
        }
View Full Code Here

Examples of org.mage.card.arcane.CardPanel

    return "[Card plugin, version 0.3]";
  }

  @Override
  public MagePermanent getMagePermanent(PermanentView permanent, CardDimensions dimension, UUID gameId, ActionCallback callback) {
    CardPanel cardPanel = new CardPanel(permanent, gameId, true, callback);
    cardPanel.setShowCastingCost(true);
    cardPanel.setCardBounds(0, 0, dimension.frameWidth, dimension.frameHeight);
    cardPanel.setShowCastingCost(true);
    return cardPanel;
  }
View Full Code Here

Examples of org.mage.card.arcane.CardPanel

    return cardPanel;
  }
 
  @Override
  public MagePermanent getMageCard(CardView permanent, CardDimensions dimension, UUID gameId, ActionCallback callback) {
    CardPanel cardPanel = new CardPanel(permanent, gameId, true, callback);
    cardPanel.setShowCastingCost(true);
    cardPanel.setCardBounds(0, 0, dimension.frameWidth, dimension.frameHeight);
    cardPanel.setShowCastingCost(true);
    return cardPanel;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.