Package com.salas.bb.views

Examples of com.salas.bb.views.GuidesList


    /** Invoked when an action occurs. */
    public void actionPerformed(ActionEvent e)
    {
        GlobalModel model = GlobalModel.SINGLETON;
        GlobalController controller = GlobalController.SINGLETON;
        GuidesList guidesList = controller.getMainFrame().getGudiesPanel().getGuidesList();

        GuidesSet set = model.getGuidesSet();

        IGuide selectedGuide = model.getSelectedGuide();

        sortGuidesSet(set);

        if (selectedGuide != null)
        {
            int index = controller.getGuidesListModel().indexOf(selectedGuide);
            if (index != -1) guidesList.getSelectionModel().setSelectionInterval(index, index);
        }
    }
View Full Code Here


        ulIMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_DELETE, 0), "deleteGuide");
        ulIMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_INSERT, 0), "newGuide");

        // Reseting guide list bindings
        GuidesList guidesList = guidesPanel.getGuidesList();
        InputMap glIMap = guidesList.getInputMap(JComboBox.WHEN_FOCUSED).getParent();
        if (glIMap != null)
        {
            glIMap.remove(KeyStroke.getKeyStroke(KeyEvent.VK_SPACE, 0));
            glIMap.remove(KeyStroke.getKeyStroke(KeyEvent.VK_SPACE, KeyEvent.CTRL_DOWN_MASK));
            glIMap.remove(KeyStroke.getKeyStroke(KeyEvent.VK_SPACE, KeyEvent.SHIFT_DOWN_MASK));
            glIMap.remove(KeyStroke.getKeyStroke(KeyEvent.VK_UP, KeyEvent.CTRL_DOWN_MASK));
            glIMap.remove(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, KeyEvent.CTRL_DOWN_MASK));
        }

        // Add feed paste operation to the list
        ActionMap glAMap = guidesList.getActionMap();
        glIMap = guidesList.getInputMap(JComboBox.WHEN_FOCUSED);
        glAMap.put("pasteFeeds", FeedRelocationController.PASTE_OPERATION);
        glIMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_V, ctrlOrCmd()), "pasteFeeds");
        glAMap.put("abortCopyMoveFeeds", FeedRelocationController.ABORT_OPERATION);
        glIMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0), "abortCopyMoveFeeds");
View Full Code Here

TOP

Related Classes of com.salas.bb.views.GuidesList

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.