Package com.salas.bb.domain

Examples of com.salas.bb.domain.DirectFeed


        // Remove unlinked feeds
        DirectFeed[] feeds = list.getFeeds();
        for (int i = 0; i < feeds.length; i++)
        {
            DirectFeed feed = feeds[i];
            list.remove(feed);
            context.removeFeedIfNoRefs(feed);
        }
    }
View Full Code Here


     */
    protected void setUp()
    {
        listener = new CustomCSL(0);

        feed0 = new DirectFeed();
        feed1 = new DirectFeed();
        list = new JList(new IFeed[] { feed0, feed1 });
        list.addListSelectionListener(listener);
    }
View Full Code Here

    public void testCreateFeedWithCustomModeAndType() throws MalformedURLException
    {
        DirectOPMLFeed opmlFeed = new DirectOPMLFeed("Feed", "file://test", "", 1, null, null, -1,
            null, null, null, null, null, null, false, 1, true, 2, false, 0);

        DirectFeed feed = Helper.createDirectFeed(new URL("file://test"), opmlFeed);

        assertEquals(1, feed.getType().getType());
        assertTrue(feed.isCustomViewModeEnabled());
        assertEquals(2, feed.getCustomViewMode());
        assertFalse(feed.getAscendingSorting());
    }
View Full Code Here

     * @param e event.
     */
    public void actionPerformed(ActionEvent e)
    {
        if (feed == null || feed.getID() == -1 || !(feed instanceof DirectFeed)) return;
        DirectFeed dFeed = (DirectFeed)feed;

        GlobalModel model = GlobalModel.SINGLETON;
        UserPreferences preferences = model.getUserPreferences();
        BrowserLauncher.showDocument(dFeed.getSiteURL(), preferences.getInternetBrowser());
    }
View Full Code Here

    /**
     * Tests case-insensitive matching of titles.
     */
    public void testCaseInsensitiveMatching()
    {
        DirectFeed feed = new DirectFeed();
        feed.setBaseTitle("The Title");

        StandardArticle article = new StandardArticle("");
        article.setTitle("some article");

        feed.appendArticle(article);

        assertTrue(FeedTitleProperty.INSTANCE.match(article, StringContainsCO.INSTANCE, "title"));
    }
View Full Code Here

        // Sample date
        Calendar c = new GregorianCalendar(2008, 0, 1, 10, 50, 30);
        Date date = c.getTime();

        // Sample feed
        DirectFeed feed = new DirectFeed();
        feed.setCustomTitle("F1 <b>Title</b>");
        feed.setXmlURL(new URL("http://f 1/"));

        // Sample article
        StandardArticle a1 = article(feed, 1, date);
        StandardArticle a2 = article(feed, 2, date);
View Full Code Here

        if (feed != null)
        {
            line = line.replace(PATTERN_FEED_TITLE, feed.getTitle());
            if (feed instanceof DirectFeed)
            {
                DirectFeed dFeed = (DirectFeed)feed;
                line = line.replace(PATTERN_FEED_URL, toString(dFeed.getXmlURL()));
            }
        }

        line = line.replace(PATTERN_ARTICLE_TITLE, article.getTitle());
        line = line.replace(PATTERN_ARTICLE_DATE, toString(article.getPublicationDate()));
View Full Code Here

            if (index != -1)
            {
                guide = mdl.getGuidesSet().getGuideAt(index);
            }

            final DirectFeed feed = controller.createDirectFeed(guide, url);
            if (feed != null)
            {
                // EDT !!!
                if (guide != mdl.getSelectedGuide()) controller.selectGuide(guide, false);
View Full Code Here

        // Add feed link item if present
        IFeed feed = source.getFeed();
        if (feed instanceof DirectFeed)
        {
            DirectFeed dfeed = (DirectFeed)feed;
            URL siteURL = dfeed.getSiteURL();

            if (siteURL != null)
            {
                InsertStaticLinkAction item = new InsertStaticLinkAction(
                    tfText, siteURL.toString(), feed.getTitle(),
View Full Code Here

        throws Exception
    {
        super.setUp();

        model = new FeedDisplayModel();
        feed1 = new DirectFeed();
        feed2 = new DirectFeed();

        article = createArticle(0);
    }
View Full Code Here

TOP

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

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.