Package com.salas.bb.domain

Examples of com.salas.bb.domain.NetworkFeed


                {
                    JPopupMenu menu = new NonlockingPopupMenu(Strings.message("ui.popup.hyperlinks"));

                    GlobalController controller = GlobalController.SINGLETON;

                    NetworkFeed hoveredFeed = controller.getFeedByHoveredHyperLink();

                    // Set links to the actions as the hovered link will be reset upon
                    // the menu opening as the mouse pointer will move away off the link.
                    URL link = controller.getHoveredHyperLink();
                    HyperLinkOpenAction.setLink(link);
View Full Code Here


                GlobalController controller = GlobalController.SINGLETON;
                FeedMetaDataHolder metaData = controller.discoverLinkFromArticle(link);
                if (metaData != null)
                {
                    URL xmlURL = metaData.getXmlURL();
                    NetworkFeed feed = controller.getModel().getGuidesSet().findDirectFeed(xmlURL);

                    if (feed == null)
                    {
                        if (metaData.isComplete() && metaData.isDiscoveredValid())
                        {
                            String msg = metaData.getTextualInboundLinks();
                            String title = metaData.getTitle();
                            if (title == null) title = xmlURL.toString();
                            URL siteUrl = metaData.getHtmlURL();
                            String author = metaData.getAuthor();

                            buf.append("<br><b>").append(Strings.message("articledisplay.config.new.blog"));
                            buf.append("</b> ").append(title);
                            if (author != null)
                            {
                                buf.append("<br><b>").append(Strings.message("articledisplay.config.author"));
                                buf.append("</b> ").append(author);
                            }
                            if (siteUrl != null)
                            {
                                buf.append("<br><b>").append(Strings.message("articledisplay.config.siteurl"));
                                buf.append("</b> ").append(siteUrl);
                            }
                            buf.append("<br><b>").append(Strings.message("articledisplay.config.feedurl"));
                            buf.append("</b> ").append(xmlURL);
                            buf.append("<br><b>").append(Strings.message("articledisplay.config.inbound.links"));
                            buf.append("</b> ").append(msg);
                        }
                    } else
                    {
                        buf.append("<br><b>").append(Strings.message("articledisplay.config.existing.blog"));
                        buf.append("</b> ").append(feed.getTitle());
                    }
                }
                buf.append("</body></html>");
                tooltip = buf.toString();
            }
View Full Code Here

                    if (metaData != null && metaData.isDiscoveredValid())
                    {
                        type = LinkType.UNREGISTERED;

                        URL xmlURL = metaData.getXmlURL();
                        NetworkFeed feed = controller.getModel().getGuidesSet().findDirectFeed(xmlURL);

                        if (feed != null) type = LinkType.REGISTERED;
                    } else
                    {
                        type = LinkType.NORMAL;
View Full Code Here

TOP

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

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.