本文整理汇总了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);
}
示例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);
}
示例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;
}
示例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);
}