Package com.salas.bb.views.mainframe

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


     *
     * @return selected text or empty.
     */
    private static String getSelectedText()
    {
        MainFrame frame = GlobalController.SINGLETON.getMainFrame();
        IFeedDisplay feedDisplay = frame.getArticlesListPanel().getFeedView();
        return feedDisplay.getSelectedText();
    }
View Full Code Here


     *
     * @param status status.
     */
    public void setStatus(String status)
    {
        MainFrame frame = getMainFrame();
        if (frame != null) frame.setStatus(status);
    }
View Full Code Here

    /**
     * Repaints all highlights in articles list immediately.
     */
    public void repaintArticlesListHighlights()
    {
        MainFrame frame = getMainFrame();
        if (frame != null) frame.repaintArticlesListHighlights();
    }
View Full Code Here

        private class CheckForNewVersionTask implements Runnable
        {
            /** Invoked when execution begins. */
            public void run()
            {
                MainFrame mainFrame = getMainFrame();
                String currentVersion = ApplicationLauncher.getCurrentVersion();

                FullCheckCycle checker = new FullCheckCycle(mainFrame, currentVersion,
                    false);
                try
View Full Code Here

                public void run()
                {
                    selectGuide(guide, false);
                    selectFeed(feed);

                    final MainFrame frame = getMainFrame();
                    final IFeedDisplay feedDisplay = frame.getArticlesListPanel().getFeedView();

                    SwingUtilities.invokeLater(new Runnable()
                    {
                        public void run()
                        {
View Full Code Here

        int oldNegativeThreshold = config.getNegativeThreshold();
        Color oldPositiveColor = config.getPositiveColor();
        Color oldNegativeColor = config.getNegativeColor();

        // Open dialog
        MainFrame mainFrame = GlobalController.SINGLETON.getMainFrame();
        SettingsDialog dialog = new SettingsDialog(mainFrame, config);
        dialog.open();

        // If not cancelled, see what has changed and recalculate if necessary
        if (!dialog.hasBeenCanceled() && SentimentsFeature.isAvailable())
        {
            GlobalModel.touchPreferences();

            String newPositive = config.getPositiveExpressions();
            String newNegative = config.getNegativeExpressions();

            boolean expressionsChanged =
                !StringUtils.equals(oldPositive, newPositive) ||
                !StringUtils.equals(oldNegative, newNegative);

            boolean thresholdsChanged =
                oldPositiveThreshold != config.getPositiveThreshold() ||
                oldNegativeThreshold != config.getNegativeThreshold();

            if (expressionsChanged || thresholdsChanged)
            {
                RecalculateAction.perform(!expressionsChanged);
            } else if (!oldPositiveColor.equals(config.getPositiveColor()) ||
                       !oldNegativeColor.equals(config.getNegativeColor()))
            {
                IFeedDisplay feedDisplay = mainFrame.getArticlesListPanel().getFeedView();
                feedDisplay.repaintSentimentsColorCodes();
            }
        }
    }
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.cycleViewModeForward();
    }
View Full Code Here

     *
     * @param event original event object.
     */
    protected void doAction(ActionEvent event)
    {
        MainFrame mainFrame = GlobalController.SINGLETON.getMainFrame();
        boolean isGuideSelected = GlobalModel.SINGLETON.getSelectedGuide() != null;

        ExportGuidesDialog dialog = new ExportGuidesDialog(mainFrame);
        dialog.setAllowSelectedGuide(isGuideSelected);

View Full Code Here

    public void actionPerformed(ActionEvent e)
    {
        if (GlobalController.SINGLETON.checkForNewSubscription()) return;

        GlobalController controller = GlobalController.SINGLETON;
        MainFrame mainFrame = controller.getMainFrame();
        AddSmartFeedDialog dialog = new AddSmartFeedDialog(mainFrame);

        dialog.open(DataFeed.getGlobalPurgeLimit());

        if (!dialog.hasBeenCanceled())
View Full Code Here

     * @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.selectNextArticle(INavigationModes.MODE_NORMAL);
        if (!selected)
        {
            IArticleListNavigationListener nav = controller.getNavigationListener();
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.