Package nu.fw.jeti.plugins.buddyspacemaps.gui

Examples of nu.fw.jeti.plugins.buddyspacemaps.gui.BSMapMenuItem


            if (maps == null) return;
            for (int j=0; j<maps.length; j++) {
                // adds menuItem for map
                String label = maps[j].getName();
                if (label.length() >= 4) label = label.substring(0, label.length()-4);
                JMenuItem menuItem = new BSMapMenuItem(label, maps[j].getName(), dirs[i].getName());
                menuItem.addActionListener( new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        loadMapForItem((BSMapMenuItem)e.getSource());
                    }
                });
                submenu.add(menuItem);
View Full Code Here


            mapPubsub.getPublishedMaps();
        }
        */
        // a map menu item - load the map
        if (evt.getSource() instanceof BSMapMenuItem) {
            BSMapMenuItem i = (BSMapMenuItem) evt.getSource();
            String mapName = i.getMapName();
            String originID = i.getOriginID();
            mapBean.loadMap(mapName, originID);
        }
    }
View Full Code Here

TOP

Related Classes of nu.fw.jeti.plugins.buddyspacemaps.gui.BSMapMenuItem

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.