Package com.salas.bb.views.mainframe

Examples of com.salas.bb.views.mainframe.MainFrame


     * @param e action event details object.
     */
    public void actionPerformed(ActionEvent e)
    {
        GlobalController controller = GlobalController.SINGLETON;
        final MainFrame mainFrame = controller.getMainFrame();
        IFeedDisplay feedDisplay = mainFrame.getArticlesListPanel().getFeedView();
        boolean selected = feedDisplay.selectPreviousArticle(INavigationModes.MODE_NORMAL);
        if (!selected)
        {
            IArticleListNavigationListener nav = controller.getNavigationListener();
            nav.prevFeed(INavigationModes.MODE_NORMAL);
View Full Code Here


        if (guide != null)
        {
            boolean oldPublishingEnabled = guide.isPublishingEnabled();

            GuidesSet set = model.getGuidesSet();
            MainFrame mainFrame = GlobalController.SINGLETON.getMainFrame();

            // Figure out if the publishing limit is already hit
            FeatureManager featureManager = GlobalController.SINGLETON.getFeatureManager();
            int pubLimit = featureManager.getPublicationLimit();
            boolean pubLimitReached = pubLimit > -1 && set.countPublishedGuides() >= pubLimit;
View Full Code Here

        // SHOULD BE IN EDT HERE
        cgs.relocateGuide(guide, newPosition);

        // Select guide in view
        final MainFrame mainFrame = GlobalController.SINGLETON.getMainFrame();
        final GuidesPanel cgp = mainFrame.getGudiesPanel();
        cgp.selectGuide(newPosition);
    }
View Full Code Here

            userLinkPopupAdapter = new PopupAdapter()
            {
                protected JPopupMenu buildPopupMenu(MouseEvent anevent)
                {
                    GlobalController controller = GlobalController.SINGLETON;
                    MainFrame frame = controller.getMainFrame();
                    JPopupMenu menu = frame.createNonLockingPopupMenu("User Link");

                    FollowAction actFollow = FollowAction.getInstance();
                    SubscribeAction actSubscribe = (SubscribeAction)ActionManager.get(ActionsTable.CMD_TWITTER_SUBSCRIBE);

                    // Set links to the actions as the hovered link will be reset upon
View Full Code Here

            hashtagLinkPopupAdapter = new PopupAdapter()
            {
                protected JPopupMenu buildPopupMenu(MouseEvent anevent)
                {
                    GlobalController controller = GlobalController.SINGLETON;
                    MainFrame frame = controller.getMainFrame();
                    JPopupMenu menu = frame.createNonLockingPopupMenu("Hashtag Link");

                    SubscribeAction action = (SubscribeAction)ActionManager.get(ActionsTable.CMD_TWITTER_SUBSCRIBE);

                    // Set links to the actions as the hovered link will be reset upon
                    // the menu opening as the mouse pointer will move away off the link.
View Full Code Here

     *
     * @param e action event details object.
     */
    public void actionPerformed(ActionEvent e)
    {
        final MainFrame mainFrame = GlobalController.SINGLETON.getMainFrame();
        IFeedDisplay feedDisplay = mainFrame.getArticlesListPanel().getFeedView();

        feedDisplay.cycleViewModeBackward();
    }
View Full Code Here

    private boolean processComplexDelete(final IGuide[] guidesToDelete)
    {
        final GuidesSet cgs = GlobalModel.SINGLETON.getGuidesSet();
        StandardGuide[] guides = GuidesUtils.filterGuides(cgs.getStandardGuides(null), guidesToDelete);

        final MainFrame mainFrame = GlobalController.SINGLETON.getMainFrame();
        DeleteGuideDialog dialog = new DeleteGuideDialog(mainFrame, guidesToDelete.length > 1);

        dialog.setReassignGuides(guides);
        dialog.open();
View Full Code Here

TOP

Related Classes of com.salas.bb.views.mainframe.MainFrame

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.