private RenderContext(Writer temp, Writer perm, boolean crawlable, boolean included) { this.temp = temp; this.perm = perm; if (crawlable && WebApps.getFeature("ee")) { this.crawlable = crawlable; } else this.crawlable = false; this.included = included; } }
private static boolean disableFeature() { return !WebApps.getFeature("ee"); }
/** Sets whether this Web application is crawlable. * Make a Web application that allows search engines to crawl the application. * Notice that there is some performance loss for huge web pages. (EE only) * @since 5.0.0 */ public void setCrawlable(boolean crawlable) { if (crawlable && !WebApps.getFeature("ee")) { log.warn("The crawlable setting is for EE edtion only!"); return; } _crawlable = crawlable; }
/** * Generates the ZK feature information * @since 6.5.1 */ public static final String outFeature() { final StringBuffer sb = new StringBuffer(32); sb.append("if(!zk.feature)zk.feature = {standard:true"); if (WebApps.getFeature("ee")) sb.append(",ee:true"); else if (WebApps.getFeature("pe")) sb.append(",pe:true"); sb.append("};"); return sb.toString(); }
/** * Returns Specifies how many pages (of treeitems) to keep rendered in memory * (on the server side) when navigating the tree using pagination. * <p> * Default: 1. (Since 7.0.0) * <p> * It is used only if live data ({@link #setModel(ListModel)} and in paging mold * ({@link #getPagingChild}. */ private int maxRodPageSize() { if (WebApps.getFeature("ee")) { return Utils.getIntAttribute(this, "org.zkoss.zul.tree.maxRodPageSize", INIT_LIMIT, true); } return -1; }
/** * Returns the number of items rendered when the Tree first render. * <p> * Default: 50. (Since 7.0.0) * <p> * It is used only if live data ({@link #setModel(ListModel)} and not paging * ({@link #getPagingChild}. */ private int initRodSize() { if (WebApps.getFeature("ee")) { // ZK-2165: should return page size in paging mold if (inPagingMold()) return getPageSize(); else return Utils.getIntAttribute(this, "org.zkoss.zul.tree.initRodSize", INIT_LIMIT, true); } return -1; }
if (WebApps.getFeature("ee")) sb.append("ed:'e',"); else if (WebApps.getFeature("pe")) sb.append("ed:'p',");
if (WebApps.getFeature("ee")) sb.append(" EE"); else if (WebApps.getFeature("pe")) sb.append(" PE"); sb.append(' ').append(wapp.getBuild());
((Pageable) _model).setActivePage(pe.getPageable().getActivePage()); if (WebApps.getFeature("ee") && getModel() != null) { if (_rodPagingIndex == null) _rodPagingIndex = new LinkedList<Integer>();
if (!open && model != null && WebApps.getFeature("ee")) { int activePage = tree.getActivePage(); getChildren().clear();