Examples of GuideModel


Examples of com.salas.bb.core.GuideModel

        // 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.
View Full Code Here

Examples of com.salas.bb.core.GuideModel

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

        StandardGuide sguide = (StandardGuide)guide;

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

        // Move channel up one step if it's not already top-most.
        final int index = model.indexOf(feed);
        if (feed != null && index > 0)
        {
            // Get real index
            IFeed entry = (IFeed)model.getElementAt(index - 1);
            int realIndex = guide.indexOf(entry);

            // This selection clearing is mandatory. When we kill the last channel in the list
            // by moving it up selection moves out of bounds. To prevent this error we
            // need to disable selection prior to moving channel.
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.