public String getValue(Component cmp) { return ((HtmlBasedComponent) cmp).getHflex(); } });
/** Sets the width. If null, the best fit is used. * @see #setWidthDirectly * @see #disableClientUpdate */ public void setWidth(String width) { if (getHflex() != null && !(width == null || getHflex().equals("min"))) { throw new UiException("Not allowed to set hflex and width at the same time except hflex=\"min\""); } setWidth0(width); }
protected void renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer) throws java.io.IOException { super.renderProperties(renderer); for (Component child = getFirstChild(); child != null; child = child.getNextSibling()) { if (child instanceof HtmlBasedComponent && (((HtmlBasedComponent) child).getHflex() != null || ((HtmlBasedComponent) child).getVflex() != null)) log.warn("Using hflex/vflex inside NoDOM component is not supported"); } } }
protected void renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer) throws java.io.IOException { super.renderProperties(renderer); if (this.getMold() == "nodom") { for (Component child = getFirstChild(); child != null; child = child.getNextSibling()) { if (child instanceof HtmlBasedComponent && (((HtmlBasedComponent) child).getHflex() != null || ((HtmlBasedComponent) child).getVflex() != null)) log.warn("You should not use hflex/vflex inside Idspace component with \"nodom\" mold."); } } } }