Package de.mindcrimeilab.xsanalyzer.ui.renderer

Examples of de.mindcrimeilab.xsanalyzer.ui.renderer.SchemaElementsRenderer


    /**
     * Initialize GUI
     */
    private final void initializeGui() {
        jtTypeHierarchy = new JTree();
        jtTypeHierarchy.setCellRenderer(new SchemaElementsRenderer());
        add(new JScrollPane(jtTypeHierarchy, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED), BorderLayout.CENTER);
    }
View Full Code Here


        }
    }

    private void createTree() {
        jtStructure = new JTree(new DefaultMutableTreeNode(getMessage("outlineView.structureTree.initialMessage")));
        jtStructure.setCellRenderer(new SchemaElementsRenderer());

        final ValueModel selectionHolder = new TreeSelectionValueModelAdapter(jtStructure.getSelectionModel());
        final ValueModel vModel = new JTreeValueModelAdapter((TreeSelectionValueModelAdapter) selectionHolder);

        final DefaultMutableTreeNodeAccessor accessor = new DefaultMutableTreeNodeAccessor();
View Full Code Here

    @Override
    protected JComponent createControl() {

        final JList masterList = masterDetailList.getMasterList();
        final JList detailList = masterDetailList.getDetailList();
        detailList.setCellRenderer(new SchemaElementsRenderer());
        masterList.setCellRenderer(new QNameRenderer());

        final CommandGroup group = getWindowCommandManager().createCommandGroup("typeListCommandGroup", new Object[] { typeHierarchyCommand, typeInspectionCommand, "separator", GlobalCommandIds.PROPERTIES});
        final JPopupMenu popup = group.createPopupMenu();
        detailList.addMouseListener(new PopupMenuMouseListener(popup));
View Full Code Here

    protected JComponent createControl() {
        final ComponentFactory cf = getComponentFactory();

        final JList masterList = masterDetailList.getMasterList();
        final JList detailList = masterDetailList.getDetailList();
        detailList.setCellRenderer(new SchemaElementsRenderer());
        masterList.setCellRenderer(new SimilarTypeRenderer());

        // build master view
        final GridBagLayoutBuilder typeListPanelBuilder = new GridBagLayoutBuilder();
        typeListPanelBuilder.append(cf.createLabel("similarTypesView.typeList.label", new ValueModel[] { numSimilarTypesSchema})).nextLine();
View Full Code Here

        return jpTypeUsage;
    }

    private void createUnusedTypesList() {
        jlUnusedTypes = getComponentFactory().createList();
        jlUnusedTypes.setCellRenderer(new SchemaElementsRenderer());

        jlUnusedTypes.addListSelectionListener(xsPropertiesSelectionListener);

        final CommandGroup group = getWindowCommandManager().createCommandGroup("unusedTypeUsageCommandGroup", new Object[] { unusedTypeHierarchyCommand, unusedTypeInspectionCommand, "separator", GlobalCommandIds.PROPERTIES});
        final JPopupMenu popup = group.createPopupMenu();
View Full Code Here

        jlUnusedTypes.addMouseListener(new PopupMenuMouseListener(popup));
    }

    private void createUsedTypesTree() {
        jtUsedTypes = new JTree(new DefaultMutableTreeNode(getMessage("usedTypes.tree.noModel")));
        jtUsedTypes.setCellRenderer(new SchemaElementsRenderer());

        final CommandGroup group = getWindowCommandManager().createCommandGroup("usedTypeUsageCommandGroup", new Object[] { usedTypeHierarchyCommand, usedTypeInspectionCommand, "separator", GlobalCommandIds.PROPERTIES});
        final JPopupMenu popup = group.createPopupMenu();
        jtUsedTypes.addMouseListener(new PopupMenuMouseListener(popup));
View Full Code Here

    }

    private void createDetailList() {
        jlPropertyDetails = getComponentFactory().createList();
        jlPropertyDetails.setModel(new DefaultListModel());
        jlPropertyDetails.setCellRenderer(new SchemaElementsRenderer());
    }
View Full Code Here

TOP

Related Classes of de.mindcrimeilab.xsanalyzer.ui.renderer.SchemaElementsRenderer

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.