Examples of IArticle


Examples of com.salas.bb.domain.IArticle

    /**
     * Tests sorting the articles in groups.
     */
    public void testSortingInGroupsDesc()
    {
        IArticle article5DaysAgo = createArticle(DELTA_6_DAYS_AGO + DAY);

        // Set newest top order
        model.setAscending(false);
        model.onArticleAdded(article6DaysAgo);
        model.onArticleAdded(article5DaysAgo);
View Full Code Here

Examples of com.salas.bb.domain.IArticle

    /**
     * Tests sorting the articles in groups.
     */
    public void testSortingInGroupsAsc()
    {
        IArticle article5DaysAgo = createArticle(DELTA_6_DAYS_AGO + DAY);

        // Set newest top order
        model.setAscending(true);
        model.onArticleAdded(article6DaysAgo);
        model.onArticleAdded(article5DaysAgo);
View Full Code Here

Examples of com.salas.bb.domain.IArticle

        /**
         * Performs an action when triggered.
         */
        protected void doAction()
        {
            IArticle article = getArticle();
            GlobalModel model = GlobalModel.SINGLETON;

            // Mark an article as read and update stats
            GlobalController.readArticles(true,
                model.getSelectedGuide(),
View Full Code Here

Examples of com.salas.bb.domain.IArticle

    public void markDisplays(boolean markAsRead)
    {
        List<IArticle> articles = new LinkedList<IArticle>();
        for (IArticleDisplay display : displays)
        {
            IArticle article = display.getArticle();
            if (article != null) articles.add(article);
        }

        // Mark articles as read and update statistics
        GlobalModel model = GlobalModel.SINGLETON;
View Full Code Here

Examples of com.salas.bb.domain.IArticle

            } else if (component instanceof IArticleDisplay)
            {
                remove(component);

                IArticleDisplay display = ((IArticleDisplay)component);
                IArticle article = display.getArticle();
                article.removeListener(display.getArticleListener());
            }
        }
        updateNoContentPanel();

        // When page changes, we scroll to the top
View Full Code Here

Examples of com.salas.bb.domain.IArticle

            case MouseEvent.MOUSE_CLICKED:
                if (SwingUtilities.isLeftMouseButton(e) && component instanceof IArticleDisplay)
                {
                    URL link = null;
                    IArticle article = null;
                    if (hoveredLink != null)
                    {
                        link = hoveredLink;
                    } else if (e.getClickCount() == 2)
                    {
                        article = ((IArticleDisplay)component).getArticle();
                        link = article.getLink();
                    }

                    if (link != null && !popupTriggered) fireLinkClicked(link);
                    if (article != null)
                    {
View Full Code Here

Examples of com.salas.bb.domain.IArticle

        GlobalController controller = GlobalController.SINGLETON;
        ArticleListPanel articlesListPanel = controller.getMainFrame().getArticlesListPanel();
        IFeedDisplay feedDisplay = articlesListPanel.getFeedView();

        GlobalModel model = GlobalModel.SINGLETON;
        IArticle selectedArticle = model.getSelectedArticle();
        boolean articleWasSelected = feedDisplay.selectNextArticle(INavigationModes.MODE_UNREAD);

        if (selectedArticle != null)
        {
            // Mark an article as read and update stats
View Full Code Here

Examples of com.salas.bb.domain.IArticle

     *
     * @param e action event details object.
     */
    public void actionPerformed(ActionEvent e)
    {
        IArticle article = GlobalModel.SINGLETON.getSelectedArticle();

        if (link != null && article != null)
        {
            IFeed feed = article.getFeed();
            String subject = MessageFormat.format(Strings.message("hyper.link.email.subject"),
                new Object[] { article.getTitle(), feed.getTitle() });

            UserPreferences preferences = GlobalModel.SINGLETON.getUserPreferences();
            BrowserLauncher.emailThis(null, subject, link.toString(), preferences.getInternetBrowser());
        }
    }
View Full Code Here

Examples of com.salas.bb.domain.IArticle

     * @param e action event details object.
     */
    public void actionPerformed(ActionEvent e)
    {
        GlobalModel model = GlobalModel.SINGLETON;
        IArticle article = model.getSelectedArticle();
        URL url = article.getLink();

        IFeed feed = article.getFeed();
        String subject = MessageFormat.format(Strings.message("article.link.email.subject"),
            new Object[] { article.getTitle(), feed.getTitle() });

        UserPreferences preferences = model.getUserPreferences();
        BrowserLauncher.emailThis(null, subject, url.toString(), preferences.getInternetBrowser());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.