Examples of BSkin


Examples of com.tivo.hme.bananas.BSkin

      createRow(parent, index, (MovieItem)get(index));
    }
   
    protected void createRow(BView parent, int index, MovieItem item) {
       
        BSkin skin = getBApp().getSkin();
        BSkin.Element element = null;
        if (iconResource != null) {
            element = skin.get(iconResource);
        } else {
            //get the icon based on the movie item status
            if (item.isInQueue()) {
                element = skin.get("dvdInQueue");
            } else {
                element = skin.get("dvd");
            }
        }
        int iconWidth = 0;
        if (element != null) {
            iconWidth = element.getWidth();
            BView icon = new BView(parent, 20, 0, element.getWidth(), parent.getHeight());
            icon.setResource(element.getResource());
        }
       
        BText text = new BText(parent, iconWidth + 30, 0, parent.getWidth() - 70, parent.getHeight());
        text.setFlags(RSRC_HALIGN_LEFT);
        text.setShadow(true);
        if (font != null) {
            text.setFont(font);
        }

        int maxWidth = parent.getWidth() - 60;
       
        if (showingRatings) {
            BSkin.Element star = skin.get("starSmall");
            BSkin.Element starGlow = skin.get("starGlowSmall");
            int width = 5*(star.getWidth()+1);
            maxWidth -= width;
            RatingsView ratings = new RatingsView(parent,
                    maxWidth, 0, width, parent.getHeight(), star, starGlow, 1);
           
View Full Code Here

Examples of com.tivo.hme.bananas.BSkin

            modifyButton = new BButton(getNormal(), (getWidth()-safeTitleH)-300,
                    getContentBottom() - 15, 300, 30);
        }

        //the user rating
        BSkin skin = getBApp().getSkin();
        BSkin.Element star = skin.get("star");
       
        if (isHighDef()) {
            ratings = new RatingsView(getNormal(), safeTitleH + 10,
                    getContentBottom() - star.getHeight()/2 - 10, 5*(star.getWidth()+5), star.getHeight());
        } 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.