/** * Gets the expand/collapse control that can be used to handle expand/collapse nodes. This is only used in server-side * mode. It allows the nagivation controls (if any) to be clickable as well as any commandLinks the user has set up in * their JSP. * * @return UICommand */ public UICommand getExpandControl() { if (_expandControl == null){ _expandControl = new HtmlCommandLink(); _expandControl.setParent(this); } return _expandControl; }
public THtmlTree() { setRendererType(DEFAULT_RENDERER_TYPE); expandControl = new HtmlCommandLink(); expandControl.setParent(this); preserveToggle = Boolean.TRUE; showRootNode = Boolean.TRUE; showNav = Boolean.TRUE; showLines = Boolean.TRUE; }
UIComponent component; if ("commandLink".equals(renderType)) { final HtmlCommandLink link = new HtmlCommandLink(); link.setStyleClass(tableLink); link.setActionExpression(this.actionGenerated.getActionExpression());