Methods Summary |
---|
public java.lang.String | getComponentType()Returns "com.mycompany.Tree".
return "com.mycompany.Tree";
|
public java.lang.String | getRendererType()Returns "com.mycompany.Tree".
return "com.mycompany.Tree";
|
protected void | setProperties(javax.faces.component.UIComponent component)Configures the component based on the tag handler property
values.
super.setProperties(component);
FacesContext context = getFacesContext();
if (value != null) {
ValueBinding vb =
context.getApplication().createValueBinding(value);
component.setValueBinding("value", vb);
}
if (var != null) {
((UITree) component).setVar(var);
}
if (varNodeToggler != null) {
((UITree) component).setVarNodeToggler(varNodeToggler);
}
|
public void | setValue(java.lang.String value)Sets the component's value, which must be a JSF value binding
expression for a "com.mycompany.jsf.model.TreeModel" or a
"com.mycompany.jsf.model.TreeNode" instance.
this.value = value;
|
public void | setVar(java.lang.String var)Sets the value of the "var" property, i.e., the name of
the request scope variable that holds the current node
being processed.
this.var = var;
|
public void | setVarNodeToggler(java.lang.String varNodeToggler)Sets the value of the "varNodeToggler" property, i.e., the name of
the request scope variable that holds an instance of a class
with a toggleExpanded() action method that toggles the value
of the "expanded" property for the node it's bound to.
this.varNodeToggler = varNodeToggler;
|