Examples of AWMultiLocaleResourceManager


Examples of ariba.ui.aribaweb.util.AWMultiLocaleResourceManager

    public static void registerResourceDirectory (String directoryPath, String urlPrefix)
    {
        Assert.that(ApplicationSharedInstance != null,
            "AWAribaWeb.initialize() must be called before calling " +
            "registerResourceDirectory(String directoryPath, String urlPrefix)");
        AWMultiLocaleResourceManager resourceManager =
            ApplicationSharedInstance.resourceManager();
        resourceManager.registerResourceDirectory(directoryPath, urlPrefix);
    }
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWMultiLocaleResourceManager

        return ((resourceManager().packageFlags(packageName) & flag) != 0);
    }

    public void enablePackageLevelFlag(String packageName, int flag)
    {
        AWMultiLocaleResourceManager resourceManager = resourceManager();
        resourceManager.setPackageFlags(packageName, resourceManager().packageFlags(packageName) | flag);
    }
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWMultiLocaleResourceManager

        resourceManager.setPackageFlags(packageName, resourceManager().packageFlags(packageName) | flag);
    }

    public void disablePackageLevelFlag(String packageName, int flag)
    {
        AWMultiLocaleResourceManager resourceManager = resourceManager();
        resourceManager.setPackageFlags(packageName, resourceManager().packageFlags(packageName) & ~flag);
    }
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWMultiLocaleResourceManager

        @aribaapi ariba
    */
    public static synchronized void registerResourceDirectory (String resourcePath, String urlPrefix)
    {
        AWMultiLocaleResourceManager resourceManager = resourceManager();
        resourceManager.registerResourceDirectory(resourcePath, urlPrefix);
    }
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWMultiLocaleResourceManager

            boolean isUpperCase = Character.isUpperCase(fieldPathString.charAt(penultimateDotIndex + 1));
            if (isUpperCase) {
                targetClassName = fieldPathString.substring(0, lastDotIndex);
                boolean isJavaIdentifier = Character.isJavaIdentifierStart(targetClassName.charAt(0));
                if (isJavaIdentifier) {
                    AWMultiLocaleResourceManager resourceManager = AWConcreteApplication.SharedInstance.resourceManager();
                    Class targetClass = resourceManager.classForName(targetClassName);
                    if (targetClass == null) {
                        targetClassName = classNameForKeyPath(targetClassName);
                    }
                }
            }
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWMultiLocaleResourceManager

        AWBinding filenameBinding = (AWBinding)bindingsHashtable.remove(BindingNames.filename);
        if (!filenameBinding.isConstantValue()) {
            throw new AWGenericException(getClass().getName() + ": \"filename\" binding must be constant.");
        }
        String filename = filenameBinding.stringValue(null);
        AWMultiLocaleResourceManager resourceManager = AWConcreteApplication.SharedInstance.resourceManager();
        AWImageInfo imageInfo = resourceManager.imageInfoForName(filename);
        String imageUrl = imageUrl(imageInfo, filename);
        AWEncodedString width = widthString(bindingsHashtable, imageInfo);
        AWEncodedString height = heightString(bindingsHashtable, imageInfo);
        String widthString = width.string();
        String heightString = height.string();
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWMultiLocaleResourceManager

            "AWDefaultApplication monitorStatsPage not supported.");
    }

    public AWMultiLocaleResourceManager createResourceManager ()
    {
        AWMultiLocaleResourceManager resourceManager =
            new AWMultiLocaleResourceManager() {};
        resourceManager.init();
        return resourceManager;
    }
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWMultiLocaleResourceManager

    private static AWMultiLocaleResourceManager multiLocaleResourceManager ()
    {
        AWConcreteServerApplication application =
            (AWConcreteServerApplication)AWConcreteServerApplication.SharedInstance;

        AWMultiLocaleResourceManager resourceManager = application.resourceManager();
        return resourceManager;
    }
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWMultiLocaleResourceManager

    {
            // get the resource manager from the session
        if (extensionDirectory != null) {

                // get the resource manager from the session
            AWMultiLocaleResourceManager extensionResourceManager =
                multiLocaleResourceManager();
            extensionResourceManager.registerResourceDirectory(extensionDirectory, null);

            AWMultiLocaleResourceManager multiResMgr =
                ((AWSingleLocaleResourceManager)resourceManager).multiLocaleResourceManager(); // OK

            extensionResourceManager.setNextResourceManager(multiResMgr);
            Locale locale = resourceManager.locale();
            resourceManager = extensionResourceManager.resourceManagerForLocale(locale);
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWMultiLocaleResourceManager

    public String _awlName;

    public List resourceDirectories ()
    {
        List v = ListUtil.list();
        AWMultiLocaleResourceManager multiLocaleResourceManager = multiLocaleResourceManager();
        // return multiLocaleResourceManager.resourceDirectories();
        while (multiLocaleResourceManager != null) {
            v.addAll(multiLocaleResourceManager.resourceDirectories());
            multiLocaleResourceManager = multiLocaleResourceManager.nextResourceManager();
        }
        return v;
    }
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.