Examples of IArticle


Examples of com.salas.bb.domain.IArticle

            {
                // For all other filters, iterate until all articles are scanned, or
                // the first visible is found.
                for (int i = 0; !hasVisibleArticles && i < count; i++)
                {
                    IArticle article = feed.getArticleAt(i);
                    if (!unreadOnly || !article.isRead())
                    {
                        // If read state match, see others
                        switch (filter)
                        {
                            case IFeedDisplayConstants.FILTER_PINNED:
                                hasVisibleArticles = article.isPinned();
                                break;

                            case IFeedDisplayConstants.FILTER_NEGATIVE:
                                hasVisibleArticles = article.isNegative();
                                break;

                            case IFeedDisplayConstants.FILTER_POSITIVE:
                                hasVisibleArticles = article.isPositive();
                                break;

                            case IFeedDisplayConstants.FILTER_NON_NEGATIVE:
                                hasVisibleArticles = !article.isNegative();
                                break;
                        }
                    }
                }
            }
View Full Code Here

Examples of com.salas.bb.domain.IArticle

     *
     * @param event original event object.
     */
    protected void doAction(ActionEvent event)
    {
        final IArticle article = GlobalModel.SINGLETON.getSelectedArticle();
        if (article != null)
        {
            new ArticlePropertiesDialog(GlobalController.SINGLETON.getMainFrame(), article).open();
        }
    }
View Full Code Here

Examples of com.salas.bb.domain.IArticle

     */
    protected void doAction(ActionEvent event)
    {
        GlobalModel model = GlobalModel.SINGLETON;

        IArticle selectedArticle = model.getSelectedArticle();
        if (selectedArticle != null)
        {
            boolean newRead = !selectedArticle.isRead();

            GlobalController.readArticles(newRead,
                model.getSelectedGuide(),
                model.getSelectedFeed(),
                model.getSelectedArticles());
View Full Code Here

Examples of com.salas.bb.domain.IArticle

     *
     * @return link or NULL.
     */
    private String getSelectedArticleLink()
    {
        IArticle article = GlobalController.SINGLETON.getModel().getSelectedArticle();
        return article == null || article.getLink() == null ? null : article.getLink().toString();
    }
View Full Code Here

Examples of com.salas.bb.domain.IArticle

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

        GlobalModel model = GlobalModel.SINGLETON;
        final IArticle selectedArticle = model.getSelectedArticle();

        boolean articleWasSelected = feedDisplay.selectPreviousArticle(INavigationModes.MODE_UNREAD);

        if (selectedArticle != null)
        {
View Full Code Here

Examples of com.salas.bb.domain.IArticle

    public void actionPerformed(ActionEvent e)
    {
        GlobalModel model = GlobalModel.SINGLETON;

        // Get the lead article
        IArticle lead = model.getSelectedArticle();
        if (lead == null) return;

        // Get the state of the lead, invert it and populate
        boolean newState = !lead.isPinned();

        GlobalController.pinArticles(newState,
            model.getSelectedGuide(),
            model.getSelectedFeed(),
            model.getSelectedArticles());
View Full Code Here

Examples of com.salas.bb.domain.IArticle

     *
     * @param e action event details object.
     */
    public void actionPerformed(ActionEvent e)
    {
        IArticle art = GlobalModel.SINGLETON.getSelectedArticle();
        if (art != null)
        {
            Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
            clipboard.setContents(new HtmlSelection(art.getHtmlText()), null);
        }
    }
View Full Code Here

Examples of com.salas.bb.domain.IArticle

        int pageOffset = page * pageSize;

        // We can load something because there are visible articles in the buffer
        for (int i = pageOffset; i < pageOffset + pageSize && i < visibleArticles.size(); i++)
        {
            IArticle article = visibleArticles.get(i);
            addArticleToPage(article);
        }
    }
View Full Code Here

Examples of com.salas.bb.domain.IArticle

        // We can load something because there are visible articles in the buffer
        IdentityList<IArticle> displayed = new IdentityList<IArticle>();
        for (int i = pageOffset; i < pageOffset + pageSize && i < visibleArticles.size(); i++)
        {
            IArticle article = visibleArticles.get(i);
            displayed.add(article);

            if (!pageArticles.contains(article))
            {
                addArticleToPage(article);
View Full Code Here

Examples of com.salas.bb.domain.IArticle

     * @throws ClassCastException       if target is not supported.
     * @throws IllegalArgumentException if operation is not supported.
     */
    public boolean match(Object target, IComparisonOperation operation, String value)
    {
        IArticle article = (IArticle)target;

        long publicationDate = article.getPublicationDate().getTime();

        return operation.match(Long.toString(publicationDate), value);
    }
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.