Package org.springframework.richclient.util

Examples of org.springframework.richclient.util.PopupMenuMouseListener


            public void actionPerformed(ActionEvent e) {
                close(getComponent(tabbedPane.getSelectedIndex()));
            }
        });
        popup.add(close);
        tabbedPane.addMouseListener(new PopupMenuMouseListener(popup));

        this.getPageDescriptor().buildInitialLayout(this);

        return tabbedPane;
    }
View Full Code Here


        // Setup our selection listener so that it controls the detail form
        installSelectionHandler();

        // Enable a popup menu
        masterTable.addMouseListener(new PopupMenuMouseListener(getPopupMenu()));

        // Avoid the default viewport size of 450,400
        Dimension ps = masterTable.getPreferredSize();
        masterTable.setPreferredScrollableViewportSize(ps);
View Full Code Here

        else
            log.warn("Explanation html not found at " + explanationPath);

        if (popup != null)
        {
            this.mainComponent.addMouseListener(new PopupMenuMouseListener(popup));
        }
    }
View Full Code Here

        if (scrollable) {
            control = new ScrollingDesktopPane();
        } else {
            control = new JDesktopPane();
        }
        control.addMouseListener(new PopupMenuMouseListener() {
            protected JPopupMenu getPopupMenu() {
                return desktopCommandGroupFactory.createContextMenuCommandGroup(getWindow().getCommandManager(),
                        control).createPopupMenu();
            }
        });
View Full Code Here

            public void actionPerformed(ActionEvent e) {
                close(getComponent(tabbedPane.getSelectedIndex()));
            }
        });
        popup.add(close);
        tabbedPane.addMouseListener(new PopupMenuMouseListener(popup));

        this.getPageDescriptor().buildInitialLayout(this);

        return tabbedPane;
    }
View Full Code Here

                        propertiesExecutor.execute();
                }
            }
        });

        widget.getTable().addMouseListener(new PopupMenuMouseListener(popupMenu));

        ValueModel selectionHolder = new ListSelectionValueModelAdapter(widget.getTable().getSelectionModel());
        new ListSingleSelectionGuard(selectionHolder, deleteExecutor);
        new ListSingleSelectionGuard(selectionHolder, propertiesExecutor);
View Full Code Here

        // Setup our selection listener so that it controls the detail form
        installSelectionHandler();

        // Enable a popup menu
        masterTable.addMouseListener( new PopupMenuMouseListener( getPopupMenu() ) );

        // Avoid the default viewport size of 450,400
        Dimension ps = getMasterTablePreferredSize( masterTable.getPreferredSize() );
        masterTable.setPreferredScrollableViewportSize( ps );
View Full Code Here

        ownersTree.addTreeSelectionListener(new TreeSelectionListener() {
            public void valueChanged(TreeSelectionEvent e) {
                updateCommands();
            }
        });
        ownersTree.addMouseListener(new PopupMenuMouseListener() {
            protected boolean onAboutToShow(MouseEvent e) {
                return !isRootOrNothingSelected();
            }

            protected JPopupMenu getPopupMenu() {
View Full Code Here

        final ValueModel vModel = new JTreeValueModelAdapter((TreeSelectionValueModelAdapter) selectionHolder);

        final DefaultMutableTreeNodeAccessor accessor = new DefaultMutableTreeNodeAccessor();
        final CommandGroup group = getWindowCommandManager().createCommandGroup("schemaElementsCommandGroup", new Object[] { new TypeHierarchyCommand(vModel), new TypeInspectionCommand(vModel), "separator", "propertiesCommand"});

        jtStructure.addMouseListener(new PopupMenuMouseListener() {

            @Override
            protected JPopupMenu getPopupMenu(MouseEvent e) {
                return group.createPopupMenu();
            }
View Full Code Here

        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));

        // build master view
        final GridBagLayoutBuilder masterPanelBuilder = new GridBagLayoutBuilder();
        final ComponentFactory cf = getComponentFactory();
        masterPanelBuilder.append(cf.createLabel("sameNameDifferentTypesView.nameList.label", new ValueModel[] { numNames})).nextLine();
View Full Code Here

TOP

Related Classes of org.springframework.richclient.util.PopupMenuMouseListener

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.