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

PTIResources

public class PTIResources extends Object
Resources for predictive text input layer

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

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

        load(false);
    
public static voidload(boolean reload)
Load pti 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;
        }
        
        PTISkin.HEIGHT = SkinResources.getInt(
                SkinPropertiesIDs.PTI_HEIGHT);

        PTISkin.MARGIN = SkinResources.getInt(
                SkinPropertiesIDs.PTI_MARGIN);
        PTISkin.COLOR_BG = SkinResources.getInt(
                SkinPropertiesIDs.PTI_COLOR_BG);
        PTISkin.COLOR_FG = SkinResources.getInt(
                SkinPropertiesIDs.PTI_COLOR_FG);
        PTISkin.COLOR_FG_HL = SkinResources.getInt(
                SkinPropertiesIDs.PTI_COLOR_FG_HL);
        PTISkin.COLOR_BG_HL = SkinResources.getInt(
                SkinPropertiesIDs.PTI_COLOR_BG_HL);
        PTISkin.COLOR_BDR = SkinResources.getInt(
                SkinPropertiesIDs.PTI_COLOR_BDR);
        PTISkin.FONT = SkinResources.getFont(
                SkinPropertiesIDs.PTI_FONT);
        PTISkin.IMAGE_BG = SkinResources.getCompositeImage(
                SkinPropertiesIDs.PTI_IMAGE_BG, 3);
        PTISkin.LEFT_ARROW = SkinResources.getImage(
                SkinPropertiesIDs.PTI_LEFT_ARROW);
        PTISkin.RIGHT_ARROW = SkinResources.getImage(
                SkinPropertiesIDs.PTI_RIGHT_ARROW);

        init = true;