Examples of GuidesSet


Examples of com.salas.bb.domain.GuidesSet

         * @param id guide ID.
         */
        public void guideClicked(long id)
        {
            GlobalModel model = GlobalModel.SINGLETON;
            GuidesSet set = model.getGuidesSet();
            guideClicked(set.findGuideByID(id));
        }
View Full Code Here

Examples of com.salas.bb.domain.GuidesSet

         * @param id feed ID.
         */
        public void feedClicked(long id)
        {
            GlobalModel model = GlobalModel.SINGLETON;
            GuidesSet set = model.getGuidesSet();
            feedClicked(set.findFeedByID(id));
        }
View Full Code Here

Examples of com.salas.bb.domain.GuidesSet

    public void actionPerformed(ActionEvent e)
    {
        ActionListener listener = new WhatsHotListener();

        GlobalController controller = GlobalController.SINGLETON;
        GuidesSet set = controller.getModel().getGuidesSet();
        Dialog dialog = new Dialog(controller.getMainFrame(), new Engine(set), set, listener);

        dialog.open();
    }
View Full Code Here

Examples of com.salas.bb.domain.GuidesSet

                    message, Strings.message("import.guides.dialog.title"), JOptionPane.YES_NO_OPTION);
        }

        if (result == JOptionPane.YES_OPTION)
        {
            final GuidesSet cgs = model.getGuidesSet();
            if (isAppending)
            {
                appendGuides(baseURL, guides, cgs);
            } else
            {
View Full Code Here

Examples of com.salas.bb.domain.GuidesSet

     * @param aLink link.
     */
    public static void setLink(URL aLink)
    {
        GlobalController controller = GlobalController.SINGLETON;
        GuidesSet set = controller.getModel().getGuidesSet();

        getInstance().link = aLink;
        getInstance().setEnabled(set.findDirectFeed(aLink) == null);
    }
View Full Code Here

Examples of com.salas.bb.domain.GuidesSet

     * @param urls  links.
     */
    public static void createGuideAndSubscribe(String title, URL[] urls)
    {
        // Get unique title
        GuidesSet set = GlobalController.SINGLETON.getModel().getGuidesSet();
        Set titles = set.getGuidesTitles();
        String unique = ImportGuidesAction.getUniqueTitle(title, titles);

        // Create new guide
        StandardGuide guide = new StandardGuide();
        guide.setTitle(unique);
        guide.setIconKey(ImportGuidesAction.getUnusedIcon(set));

        // Add guide
        set.add(guide);

        subscribe(guide, urls);
    }
View Full Code Here

Examples of com.salas.bb.domain.GuidesSet

            {
                SwingUtilities.invokeLater(new Runnable()
                {
                    public void run()
                    {
                        GuidesSet set = GlobalModel.SINGLETON.getGuidesSet();

                        for (int i = 0; i < set.getGuidesCount(); i++)
                            unreadUpdateNeeded(set.getGuideAt(i));
                    }
                });
            }
        }
View Full Code Here

Examples of com.salas.bb.domain.GuidesSet

     * @param filename filename to use for writing.
     * @param extended TRUE to perform export in the extended mode.
     */
    void processExportAll(String filename, boolean extended)
    {
        GuidesSet set = GlobalModel.SINGLETON.getGuidesSet();
        processExport(Converter.convertToOPML(set.getStandardGuides(null)), filename, extended);
    }
View Full Code Here

Examples of com.salas.bb.domain.GuidesSet

        final GlobalModel model = controller.getModel();

        if (model != null)
        {
            final IGuide currentGuide = model.getSelectedGuide();
            final GuidesSet cgs = model.getGuidesSet();

            IGuide guide = findNextGuideWithUnread(cgs, currentGuide);

            // EDT !!!
            if (guide != null) GlobalController.SINGLETON.selectGuide(guide, false);
View Full Code Here

Examples of com.salas.bb.domain.GuidesSet

    {
        // Tricky part here. <code>ActionCommand</code> contains character of a pressed key.
        // As soon as we use CTRL-number sequence we can freely convert this code into number and
        // use for our own purpose.
        int index = Integer.parseInt(e.getActionCommand()) - 1;
        final GuidesSet cgs = GlobalModel.SINGLETON.getGuidesSet();
        if (index < cgs.getGuidesCount())
        {
            final IGuide guide = cgs.getGuideAt(index);
            if (GlobalModel.SINGLETON.getSelectedGuide() != guide)
            {
                // EDT !!!
                GlobalController.SINGLETON.selectGuideAndFeed(guide);
            }
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.