Examples of IGuide


Examples of com.salas.bb.domain.IGuide

     */
    public Component getListCellRendererComponent(final JList list, final Object value,
                                                  final int index, final boolean isSelected,
                                                  final boolean cellHasFocus)
    {
        IGuide cg = (IGuide)value;

        // Text
        String textName = cg.getTitle();
        renderer.setText(textName);

        // Icon
        final String iconKey = cg.getIconKey() == null
            ? ResourceID.ICON_GUIDE_DEFAULT_KEY : cg.getIconKey();

        ImageIcon icon = IconSource.getIcon(iconKey);
        if (icon == null) icon = IconSource.getIcon(ResourceID.ICON_GUIDE_DEFAULT_KEY);
        renderer.setIcon(icon);

View Full Code Here

Examples of com.salas.bb.domain.IGuide

        String tooltip = null;

        int index = locationToIndex(event.getPoint());
        if (index > -1 && getCellBounds(index, index).contains(event.getPoint()))
        {
            IGuide guide = (IGuide)getModel().getElementAt(index);
            tooltip = "<html><b>" + guide.getTitle();
            int count = GlobalModel.SINGLETON.getUnreadArticlesCount(guide);
            if (count > 0) tooltip += "</b><br>" +
                MessageFormat.format(Strings.message("panel.guides.unread.0.articles"), count);
        }
View Full Code Here

Examples of com.salas.bb.domain.IGuide

        String url = takeURLFromClipboardIfPresent();

        IFeed feed = controller.createDirectFeed(url, true);
        if (feed != null)
        {
            IGuide selectedGuide = controller.getModel().getSelectedGuide();
            if (!feed.belongsTo(selectedGuide))
            {
                IGuide[] guides = feed.getParentGuides();
                IGuide guide = guides.length > 0 ? guides[0] : null;
                if (guide != null) controller.selectGuide(guide, false);
            }
            controller.selectFeed(feed, true);
        }
    }
View Full Code Here

Examples of com.salas.bb.domain.IGuide

         */
        public void feedJumpLinkClicked(IFeed feed)
        {
            if (feed != null)
            {
                IGuide selectedGuide = GlobalModel.SINGLETON.getSelectedGuide();
                if (!feed.belongsTo(selectedGuide))
                {
                    IGuide[] guides = feed.getParentGuides();
                    if (guides.length > 0) GlobalController.SINGLETON.selectGuide(guides[0], false);
                }
View Full Code Here

Examples of com.salas.bb.domain.IGuide

     * @param e action event details object.
     */
    public void actionPerformed(ActionEvent e)
    {
        final IFeed feed = GlobalModel.SINGLETON.getSelectedFeed();
        final IGuide guide = GlobalModel.SINGLETON.getSelectedGuide();

        // Reorderings are allowed only for standard guides
        if (!(guide instanceof StandardGuide)) return;
        StandardGuide sGuide = (StandardGuide)guide;

        final GuideModel model = GlobalModel.SINGLETON.getGuideModel();

        // Move channel down if this one isn't already bottom-most.
        final int index = model.indexOf(feed) + 1;
        if (feed != null && index < model.getSize())
        {
            // Get real index
            IFeed entry = (IFeed)model.getElementAt(index);
            int realIndex = guide.indexOf(entry);

            GlobalController.SINGLETON.moveFeed(feed, sGuide, sGuide, realIndex);

            // Select it back and ensure that it's visible.
            list.setSelectedIndex(index);
View Full Code Here

Examples of com.salas.bb.domain.IGuide

        if (feed != null)
        {
            IGuide[] parentGuides = feed.getParentGuides();
            for (int i = 0; !match && i < parentGuides.length; i++)
            {
                IGuide guide = parentGuides[i];
                String guideTitle = guide.getTitle();
                match = operation.match(guideTitle.toUpperCase(), value);
            }
        } else match = operation.match(null, value);

        return match;
View Full Code Here

Examples of com.salas.bb.domain.IGuide

    private void onSetupChange()
    {
        UserPreferences prefs = GlobalModel.SINGLETON.getUserPreferences();

        // Find the target guide
        IGuide guide = null;
        String title = prefs.getWhTargetGuide();
        if (StringUtils.isNotEmpty(title))
        {
            Collection<IGuide> guides = guidesSet.findGuidesByTitle(title);
            if (guides.size() > 0) guide = guides.iterator().next();
View Full Code Here

Examples of com.salas.bb.domain.IGuide

     */
    private synchronized Destination recalcNext(boolean unreadOnly)
    {
        IFeed destFeed = null;
        IFeed feed;
        IGuide guide;
        GuideModel model;

        feed = selectedFeed;
        guide = selectedGuide;
        if (guide == null) return null;
View Full Code Here

Examples of com.salas.bb.domain.IGuide

     */
    private synchronized Destination recalcPrev(boolean unreadOnly)
    {
        IFeed destFeed = null;
        IFeed feed;
        IGuide guide;
        GuideModel model;

        feed = selectedFeed;
        guide = selectedGuide;
        if (guide == null) return null;
View Full Code Here

Examples of com.salas.bb.domain.IGuide

     *
     * @return next guide.
     */
    IGuide getNextGuide(IGuide currentGuide)
    {
        IGuide next = currentGuide;

        if (guidesSet == null)
        {
            LOG.warning(Strings.error("guide.set.not.registered"));
        } else
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.