当前位置: 首页>>代码示例>>Java>>正文


Java UIViewRootEx.getEncodeProperty方法代码示例

本文整理汇总了Java中com.ibm.xsp.component.UIViewRootEx.getEncodeProperty方法的典型用法代码示例。如果您正苦于以下问题:Java UIViewRootEx.getEncodeProperty方法的具体用法?Java UIViewRootEx.getEncodeProperty怎么用?Java UIViewRootEx.getEncodeProperty使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.ibm.xsp.component.UIViewRootEx的用法示例。


在下文中一共展示了UIViewRootEx.getEncodeProperty方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: addEncodeResource

import com.ibm.xsp.component.UIViewRootEx; //导入方法依赖的package包/类
@SuppressWarnings("unchecked") // $NON-NLS-1$
public static void addEncodeResource(UIViewRootEx rootEx, Resource resource) {
    if(ExtLibUtil.isXPages852()) {
        // The XPages runtime add all the resources and does a check when it starts to
        // generate all the resources at the very end.
        // For performance reasons, and until the XPages runtime optimizes this, we ensure
        // that the same resource (the exact same object - identity comparison) is not
        // added multiple times.
        // Already optimized in post 852
        IdentityHashMap<Resource, Boolean> m = (IdentityHashMap<Resource, Boolean>)rootEx.getEncodeProperty("extlib.EncodeResource"); // $NON-NLS-1$
        if(m==null) {
            m = new IdentityHashMap<Resource, Boolean>();
        } else {
            if(m.containsKey(resource)) {
                return;
            }
        }
        m.put(resource, Boolean.TRUE);
    }
    rootEx.addEncodeResource(resource);
}
 
开发者ID:OpenNTF,项目名称:XPagesExtensionLibrary,代码行数:22,代码来源:ExtLibResources.java

示例2: addEncodeResource

import com.ibm.xsp.component.UIViewRootEx; //导入方法依赖的package包/类
@SuppressWarnings("unchecked")
public static void addEncodeResource(UIViewRootEx rootEx, Resource resource) {
	IdentityHashMap<Resource, Boolean> m = (IdentityHashMap<Resource, Boolean>) rootEx.getEncodeProperty("starter.EncodeResource");
	if (m == null) {
		m = new IdentityHashMap<Resource, Boolean>();
	} else {
		if (m.containsKey(resource)) {
			return;
		}
	}
	m.put(resource, Boolean.TRUE);

	rootEx.addEncodeResource(resource);
}
 
开发者ID:OpenNTF,项目名称:BuildAndTestPattern4Xpages,代码行数:15,代码来源:Resources.java

示例3: shouldWriteModule

import com.ibm.xsp.component.UIViewRootEx; //导入方法依赖的package包/类
protected boolean shouldWriteModule(FacesContext context, UIViewRootEx viewEx, FacesDojoComponent dojoComponent, String dojoType) {
    if (StringUtil.isNotEmpty(dojoType)) {
        if(viewEx.getEncodeProperty(dojoType)==null) {
            viewEx.putEncodeProperty(dojoType, Boolean.TRUE);
            return true;
        }
    }
    return false;
}
 
开发者ID:OpenNTF,项目名称:XPagesExtensionLibrary,代码行数:10,代码来源:DojoFormWidgetRenderer.java

示例4: addEncodeResource

import com.ibm.xsp.component.UIViewRootEx; //导入方法依赖的package包/类
@SuppressWarnings("unchecked")
public static void addEncodeResource(UIViewRootEx rootEx, Resource resource) {
	IdentityHashMap<Resource, Boolean> m = (IdentityHashMap<Resource, Boolean>) rootEx
			.getEncodeProperty("genesis.EncodeResource");
	if (m == null) {
		m = new IdentityHashMap<Resource, Boolean>();
	} else {
		if (m.containsKey(resource)) {
			return;
		}
	}
	m.put(resource, Boolean.TRUE);

	rootEx.addEncodeResource(resource);
}
 
开发者ID:OpenNTF,项目名称:xsp.extlib,代码行数:16,代码来源:Resources.java


注:本文中的com.ibm.xsp.component.UIViewRootEx.getEncodeProperty方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。