Package com.salas.bb.domain

Examples of com.salas.bb.domain.ReadingList


    public static ReadingListCheckBox[] wrap(List aLists)
    {
        ReadingListCheckBox[] boxes = new ReadingListCheckBox[aLists.size()];
        for (int i = 0; i < aLists.size(); i++)
        {
            ReadingList list = (ReadingList)aLists.get(i);
            boxes[i] = new ReadingListCheckBox(list);
            boxes[i].setSelected(true);
        }

        return boxes;
View Full Code Here


        // Checking
        StandardGuide guide = (StandardGuide)Helper.createGuide(null, opmlGuide, new Date());
        assertEquals(1, guide.getReadingLists().length);
        assertEquals(1, guide.getFeedsCount());

        ReadingList list = guide.getReadingLists()[0];
        assertEquals(1, list.getFeeds().length);
    }
View Full Code Here

            if (guide instanceof StandardGuide)
            {
                ReadingList[] rls = ((StandardGuide)guide).getReadingLists();
                for (int i = 0; i < rls.length; i++)
                {
                    ReadingList rl = rls[i];

                    String rlKey = rl.getURL().toString();
                    addDeletedObjectRecord(oldGuideTitle, rlKey);
                    removeDeletedObjectRecord(newGuideTitle, rlKey);
                }
            }
        }
View Full Code Here

     * @param guide guide.
     * @param urls  links.
     */
    public static void subscribe(StandardGuide guide, URL[] urls)
    {
        for (URL url : urls) guide.add(new ReadingList(url));
    }
View Full Code Here

         * @return the default table cell renderer
         */
        public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected,
                                                       boolean hasFocus, int row, int column)
        {
            ReadingList list = model.getLists()[row];
            Component comp = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
            comp.setForeground(list.isMissing() ? Color.GRAY : table.getForeground());
            return comp;
        }
View Full Code Here

         * @return value.
         */
        public Object getValueAt(int row, int column)
        {
            Object value;
            ReadingList list = lists[row];

            switch (column)
            {
                case COL_NAME:
                    value = list.getTitle();
                    break;
                case COL_URL:
                    value = list.getURL().toString();
                    break;
                case COL_LATEST:
                    long lastPollTime = list.getLastPollTime();
                    value = pollTimeToString(lastPollTime);
                    break;
                default:
                    value = null;
            }
View Full Code Here

         */
        public void addList(URL aNewListURL)
        {
            ReadingList[] newList = new ReadingList[lists.length + 1];
            System.arraycopy(lists, 0, newList, 0, lists.length);
            newList[lists.length] = new ReadingList(aNewListURL);

            setLists(newList);
        }
View Full Code Here

     */
    public void testConvertRL()
        throws MalformedURLException
    {
        StandardGuide guide = new StandardGuide();
        ReadingList list = new ReadingList(new URL("file://test"));
        guide.add(list);
        DirectFeed feedDyn = new DirectFeed();
        feedDyn.setBaseTitle("dyn");
        feedDyn.setXmlURL(new URL("file://dyn"));
        list.add(feedDyn);

        DirectFeed feedStat = new DirectFeed();
        feedStat.setBaseTitle("stat");
        feedStat.setXmlURL(new URL("file://stat"));
        guide.add(feedStat);
View Full Code Here

TOP

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

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.