org.apache.myfaces.tobago.taglib.component
Class TreeTag
java.lang.Object
javax.faces.webapp.UIComponentTag
org.apache.myfaces.tobago.taglib.component.TobagoTag
org.apache.myfaces.tobago.taglib.component.TreeTag
- All Implemented Interfaces:
- JspTag, Tag, TobagoTagDeclaration, TreeTagDeclaration, HasActionListener, HasBinding, HasId, HasIdBindingAndRendered, HasIdReference, HasNameReference, HasState, HasTreeNodeValue, IsRendered, IsRequired
public class TreeTag
- extends TobagoTag
- implements TreeTagDeclaration
Methods inherited from class org.apache.myfaces.tobago.taglib.component.TobagoTag |
doStartTag, getDisabled, getHeight, getHidden, getInline, getLabel, getReadonly, getRendererType, getTitle, getWidth, setDisabled, setHeight, setHidden, setInline, setLabel, setReadonly, setTitle, setWidth |
Methods inherited from class javax.faces.webapp.UIComponentTag |
doEndTag, encodeBegin, encodeChildren, encodeEnd, findComponent, getComponentInstance, getCreated, getDoEndValue, getDoStartValue, getFacesContext, getFacetName, getId, getParent, getParentUIComponentTag, isSuppressed, isValueReference, setBinding, setId, setPageContext, setParent, setRendered, setupResponseWriter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.myfaces.tobago.taglib.decl.HasId |
setId |
TreeTag
public TreeTag()
getComponentType
public String getComponentType()
- Specified by:
getComponentType
in class UIComponentTag
setProperties
protected void setProperties(UIComponent component)
- Overrides:
setProperties
in class TobagoTag
release
public void release()
- Specified by:
release
in interface Tag
- Overrides:
release
in class TobagoTag
getValue
public String getValue()
setValue
public void setValue(String value)
- Description copied from interface:
HasTreeNodeValue
- A javax.swing.tree.TreeNode object to use as rootNode in the tree.
- Specified by:
setValue
in interface HasTreeNodeValue
getState
public String getState()
setState
public void setState(String state)
- Description copied from interface:
HasState
- ValueBindingExpression pointing to a object to save the
component's state.
- Specified by:
setState
in interface HasState
getShowIcons
public String getShowIcons()
setActionListener
public void setActionListener(String actionListener)
- Description copied from interface:
HasActionListener
- MethodBinding representing an action listener method that will be
notified when this component is activated by the user.
The expression must evaluate to a public method that takes an ActionEvent
parameter, with a return type of void.
- Specified by:
setActionListener
in interface HasActionListener
getActionListener
public String getActionListener()
setShowIcons
public void setShowIcons(String showIcons)
- Specified by:
setShowIcons
in interface TreeTagDeclaration
getShowJunctions
public String getShowJunctions()
setShowJunctions
public void setShowJunctions(String showJunctions)
- Specified by:
setShowJunctions
in interface TreeTagDeclaration
getShowRoot
public String getShowRoot()
setShowRoot
public void setShowRoot(String showRoot)
- Specified by:
setShowRoot
in interface TreeTagDeclaration
getShowRootJunction
public String getShowRootJunction()
setShowRootJunction
public void setShowRootJunction(String showRootJunction)
- Specified by:
setShowRootJunction
in interface TreeTagDeclaration
getIdReference
public String getIdReference()
setIdReference
public void setIdReference(String idReference)
- Description copied from interface:
HasIdReference
- Bean property reference to fetch the id for the treeNode's.
Example:
a idReference="userObject.id" try's to invoke
<UITreeNode>.getUserObject().getId() to fetch the id.
- Specified by:
setIdReference
in interface HasIdReference
getSelectable
public String getSelectable()
setSelectable
public void setSelectable(String selectable)
- Description copied from interface:
TreeTagDeclaration
- Flag indicating whether or not this component should be render selectable items.
Possible values are:
- multi : a multisection tree is rendered
- single : a singlesection tree is rendered
- multiLeafOnly : a multisection tree is rendered,
only Leaf's are selectable
- singleLeafOnly : a singlesection tree is rendered,
only Leaf's are selectable
For any other value or if this attribute is omited the items are not selectable.
- Specified by:
setSelectable
in interface TreeTagDeclaration
getMutable
public String getMutable()
setMutable
public void setMutable(String mutable)
- Specified by:
setMutable
in interface TreeTagDeclaration
getNameReference
public String getNameReference()
setNameReference
public void setNameReference(String nameReference)
- Description copied from interface:
HasNameReference
- Bean property reference to fetch the label for the treeNode's.
Example:
a idReference="userObject.name" try's to invoke
<UITreeNode>.getUserObject().getName() to fetch the label.
- Specified by:
setNameReference
in interface HasNameReference
getRequired
public String getRequired()
setRequired
public void setRequired(String required)
- Specified by:
setRequired
in interface IsRequired
Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.