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

InputModeResources

public class InputModeResources extends Object
Resources for the input mode indicator layer

Fields Summary
private static boolean
init
Flag indicated if resources have been already loaded
Constructors Summary
private InputModeResources()
Private constructor

    
Methods Summary
public static voidload()
Load input mode indicator resources. Do nothing if they have been already loaded

        load(false);
    
public static voidload(boolean reload)
Load input mode indicator resources.

param
reload if true resources are being loaded even if the initialization has been already done. In case of false don't reload the resources

        if (init && !reload) {
            return;
        }
        
        InputModeSkin.MARGIN = SkinResources.getInt(
                SkinPropertiesIDs.INPUT_MODE_MARGIN);
        InputModeSkin.COLOR_BG = SkinResources.getInt(
                SkinPropertiesIDs.INPUT_MODE_COLOR_BG);
        InputModeSkin.COLOR_FG = SkinResources.getInt(
                SkinPropertiesIDs.INPUT_MODE_COLOR_FG);
        InputModeSkin.COLOR_BDR = SkinResources.getInt(
                SkinPropertiesIDs.INPUT_MODE_COLOR_BDR);
        InputModeSkin.FONT = SkinResources.getFont(
                SkinPropertiesIDs.INPUT_MODE_FONT);
        InputModeSkin.IMAGE_BG = SkinResources.getCompositeImage(
                SkinPropertiesIDs.INPUT_MODE_IMAGE_BG, 3);
        init = true;