FileDocCategorySizeDatePackage
ScrollIndResources.javaAPI DocphoneME MR2 API (J2ME)3761Wed May 02 18:00:20 BST 2007com.sun.midp.chameleon.skins.resources

ScrollIndResources

public class ScrollIndResources extends Object

Fields Summary
private static boolean
init
Constructors Summary
private ScrollIndResources()

    
Methods Summary
public static voidload()

        load(false);
    
public static voidload(boolean reload)

        if (init && !reload) {
            return;
        }
        
        ScrollIndSkin.MODE = SkinResources.getInt(
                SkinPropertiesIDs.SCROLL_MODE);
        ScrollIndSkin.WIDTH = SkinResources.getInt(
                SkinPropertiesIDs.SCROLL_WIDTH);
    
        ScrollIndSkin.COLOR_BG = SkinResources.getInt(
                SkinPropertiesIDs.SCROLL_COLOR_BG);
        ScrollIndSkin.COLOR_FG = SkinResources.getInt(
                SkinPropertiesIDs.SCROLL_COLOR_FG);
        ScrollIndSkin.COLOR_FRAME = SkinResources.getInt(
                SkinPropertiesIDs.SCROLL_COLOR_FRAME);
        ScrollIndSkin.COLOR_DN_ARROW = SkinResources.getInt(
                SkinPropertiesIDs.SCROLL_COLOR_DN_ARROW);
        ScrollIndSkin.COLOR_UP_ARROW = SkinResources.getInt(
                SkinPropertiesIDs.SCROLL_COLOR_UP_ARROW);

        /*
        Uncomment if background/foreground images are used
        ScrollIndSkin.IMAGE_BG = SkinResources.getCompositeImage(
                SkinPropertiesIDs.SCROLL_IMAGE_BG, 3);
        ScrollIndSkin.IMAGE_FG = SkinResources.getCompositeImage(
                SkinPropertiesIDs.SCROLL_IMAGE_FG, 3);
        */
        ScrollIndSkin.IMAGE_UP = SkinResources.getImage(
                SkinPropertiesIDs.SCROLL_IMAGE_UP);
        ScrollIndSkin.IMAGE_DN = SkinResources.getImage(
                SkinPropertiesIDs.SCROLL_IMAGE_DN);
    
        ScrollIndSkin.COLOR_AU_BG = SkinResources.getInt(
                SkinPropertiesIDs.SCROLL_COLOR_AU_BG);
        ScrollIndSkin.COLOR_AU_FG = SkinResources.getInt(
                SkinPropertiesIDs.SCROLL_COLOR_AU_FG);
        /*
        Uncomment if background/foreground images are used for an Alert
        ScrollIndSkin.IMAGE_AU_BG = SkinResources.getCompositeImage(
                SkinPropertiesIDs.SCROLL_IMAGE_AU_BG, 3);
        ScrollIndSkin.IMAGE_AU_FG = SkinResources.getCompositeImage(
                SkinPropertiesIDs.SCROLL_IMAGE_AU_FG, 3);
        */
        ScrollIndSkin.IMAGE_AU_UP = SkinResources.getImage(
                SkinPropertiesIDs.SCROLL_IMAGE_AU_UP);
        ScrollIndSkin.IMAGE_AU_DN = SkinResources.getImage(
                SkinPropertiesIDs.SCROLL_IMAGE_AU_DN);

        init = true;