Package com.volantis.mcs.layouts

Examples of com.volantis.mcs.layouts.FormatScope


     */
    private FormatScope getFormatScope() {
        final Fragment currentFragment =
            getDeviceLayoutContext().getCurrentFragment();
        if (currentFragment != null) {
            final FormatScope fragmentScope = currentFragment.getFormatScope();
            if (fragmentScope != null) {
                return fragmentScope;
            }
        }
        return getDeviceLayout().getFormatScope();
View Full Code Here


     * @param namespace the namespace of format to retreive
     * @return the format.
     */
    public Format getFormat(String name, FormatNamespace namespace) {
        Format format = null;
        FormatScope formatScope = getFormatScope();
        if (formatScope != null) {
            format = formatScope.retrieveFormat(name, namespace);
        }

        return format;
    }
View Full Code Here

     * @return the format.
     */
    public Format getFormat(String name, FormatNamespace namespace) {
        Format format = null;
        // Get the format scope.
        FormatScope formatScope = null;
        // Attempt to get it from the fragment first
        final Fragment currentFragment = getCurrentFragment();
        if (currentFragment != null) {
            formatScope = currentFragment.getFormatScope();
        }

        // If it doesn't match a fragment, then try in the layout.
        if (formatScope == null) {
            formatScope = getDeviceLayout().getFormatScope();
        }
       
        if (formatScope != null) {
            format = formatScope.retrieveFormat(name, namespace);
        }

        return format;
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.layouts.FormatScope

Copyright © 2018 www.massapicom. 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.