Package com.salas.bb.domain

Examples of com.salas.bb.domain.IFeed


            if (guide.getID() == -1) return;

            GlobalController.readGuides(read, guide);
        } else
        {
            IFeed feed = (IFeed)obj;
            if (feed.getID() == -1) return;

            IGuide guide = GlobalModel.SINGLETON.getSelectedGuide();
            GlobalController.readFeeds(read, guide, feed);
        }
    }
View Full Code Here


            lbUnread = new ArticleReadControl(article);
            add(lbUnread, cc.xy(8, 2));

            // Setup the tooltip and delegate the mouse events to the parent (this panel)
            IFeed feed = article.getFeed();
            lbTitle.setToolTipText(feed == null ? null : feed.getTitle());
            DelegatingMouseListener ml = new DelegatingMouseListener(lbTitle, false, 2);
            lbTitle.addMouseListener(ml);
        }

        setSelected(false);
View Full Code Here

        IFeed[] selectedFeeds = getFeeds();

        List taggables = new ArrayList(selectedFeeds.length);
        for (int i = 0; i < selectedFeeds.length; i++)
        {
            IFeed feed = selectedFeeds[i];
            if (feed instanceof ITaggable) taggables.add(feed);
        }

        return taggables.size() == 0 ? null
            : (ITaggable[])taggables.toArray(new ITaggable[taggables.size()]);
View Full Code Here

     */
    public void feedSelected(IFeed feed)
    {
        if (GlobalModel.SINGLETON.getUserPreferences().isMarkReadWhenChangingChannels())
        {
            final IFeed oldFeed = currentFeed;

            if (oldFeed != null && oldFeed != feed && oldFeed.getID() != -1)
            {
                MARK_EXECUTOR.execute(new MarkFeedAsReadOnSwitch(oldFeed));
            }
        }

View Full Code Here

        {
            IArticle article = (IArticle)object;
            date = article.getPublicationDate();
            priority = article.isPinned();

            IFeed feed = article.getFeed();
            if (feed.getType() == FeedType.IMAGE)
            {
                type = ResultItemType.PICTURE;
            } else
            {
                type = ResultItemType.ARTICLE;
View Full Code Here

            {
                IGuide guide = (IGuide)obj;
                controller.selectGuide(guide, false);
            } else if (obj instanceof IFeed)
            {
                IFeed feed = (IFeed)obj;
                selectFeed(feed);
            } else if (obj instanceof IArticle)
            {
                IArticle article = (IArticle)obj;
                controller.selectArticle(article);
View Full Code Here

                // If feed belongs to this guide then we need to recalculate its
                // class and score and rebuild the list.
                if (dataIndex != -1)
                {
                    IFeed channel = feeds[dataIndex];

                    int newClass = FeedClassifier.classify(channel);
                    int newScore = calculateScore(channel, newClass, -1);
                    int oldClass = channelsClasses[dataIndex];
View Full Code Here

    {
        int index = 0;

        for (int i = 0; i < aFeedsCount; i++)
        {
            IFeed feed = aFeeds[i];
            int feedsClass = aFeedsClasses[i];

            if (shouldBeDisplayed(feed, feedsClass)) aFilteredFeedsList[index++] = i;
        }
View Full Code Here

        // Check against ignore pattern
        if (ignorePattern != null &&
                ignorePattern.matcher(link.getLink().toString()).find()) return null;

        // Check if has links from one source only
        IFeed feed = null;
        matches = new LinkedList<IArticle>();
        boolean fine = !suppressSameSourceLinks;
        for (IArticle article : link)
        {
            if (!matches(link, article)) continue;
View Full Code Here

        TimeOption to = (TimeOption)mdlTimeOption.getValue();
        if (article.getPublicationDate().getTime() < System.currentTimeMillis() - to.getOffset()) return false;

        // Check the starz
        Integer starz = (Integer)mdlStarz.getValue();
        IFeed feed = article.getFeed();
        if (starz > 1 && feed.getRating() < starz) return false;

        // Check self-referencing
        if (dontCountSelfReferences)
        {
            String linkHost = link.getLink().getHost();
            URL articleLink = article.getLink();
            if (articleLink != null && articleLink.getHost().equalsIgnoreCase(linkHost)) return false;
        }

        // Check guides
        return targetGuide == null || targetGuide.getID() == -1 || feed.belongsTo(targetGuide);
    }
View Full Code Here

TOP

Related Classes of com.salas.bb.domain.IFeed

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.