|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.faces.component.UIComponent javax.faces.component.UIComponentBase com.sun.rave.web.ui.component.TemplateComponentBase com.sun.rave.web.ui.component.TreeNodeBase
The TreeNode
component is designed to be used as a child
of a Tree
or another TreeNode
component.
This allows TreeNode
s to form a tree structure. When the
tree structure is rendered, the TreeNode
component
represents a "node" in the tree. The TreeNode
component
is responsible for rendering:
IconHyperlink
if there is atleast
1 child TreeNode
(this will show or hide its child
TreeNode
(s)).ImageHyperlink
that pertains to the
content of the tree node.Hyperlink
for the content of the
TreeNode
. Portions of the TreeNode
may be overriden using facets.
The following facets are supported:
image
--
ImageHyperlink
which pertains to the
content of the TreeNode
. When used properties that
pertain to the ImageHyperlink
will not have any
effect.content
--
Hyperlink
area. When used
properties that pertain to this area will not have any
effect. None (although the Tree
component does contain JavaScript functions).
For an example, please see the documentation for the Tree
Tag.
Auto-generated component class. Do NOT modify; all changes will be lost!
Field Summary |
Fields inherited from interface javax.faces.component.NamingContainer |
SEPARATOR_CHAR |
Constructor Summary | |
TreeNodeBase()
Construct a new TreeNodeBase . |
Method Summary | |
javax.faces.el.MethodBinding |
getAction()
Specifies the action for the Hyperlink and
for the HyperlinkImage of this component. |
javax.faces.el.MethodBinding |
getActionListener()
Method binding to a method that is invoked when this tree node is toggled open or close |
java.lang.String |
getFamily()
Return the family for this component. |
java.lang.String |
getImageURL()
Specifies imageURL for the ImageHyperlink
of this component. |
java.lang.String |
getStyle()
CSS style(s) to be applied when this component is rendered. |
java.lang.String |
getStyleClass()
CSS style class(es) to be applied when this component is rendered. |
java.lang.String |
getTarget()
Specifies the target for the Hyperlink and the
ImageHyperlink of this component. |
java.lang.String |
getText()
Specifies the text for this component. |
java.lang.String |
getToolTip()
Display the text as a tooltip for this component |
java.lang.String |
getUrl()
Specifies the url for the Hyperlink and the
ImageHyperlink for this component. |
boolean |
isExpanded()
Specifies if this TreeNode will be expanded or collapsed,
in other words if its child TreeNode s should be
displayed. |
boolean |
isVisible()
Use the visible attribute to indicate whether the component should be viewable by the user in the rendered HTML page. |
void |
restoreState(javax.faces.context.FacesContext _context,
java.lang.Object _state)
Restore the state of this component. |
java.lang.Object |
saveState(javax.faces.context.FacesContext _context)
Save the state of this component. |
void |
setAction(javax.faces.el.MethodBinding action)
Specifies the action for the Hyperlink and
for the HyperlinkImage of this component. |
void |
setActionListener(javax.faces.el.MethodBinding actionListener)
Method binding to a method that is invoked when this tree node is toggled open or close |
void |
setExpanded(boolean expanded)
Specifies if this TreeNode will be expanded or collapsed,
in other words if its child TreeNode s should be
displayed. |
void |
setImageURL(java.lang.String imageURL)
Specifies imageURL for the ImageHyperlink
of this component. |
void |
setStyle(java.lang.String style)
CSS style(s) to be applied when this component is rendered. |
void |
setStyleClass(java.lang.String styleClass)
CSS style class(es) to be applied when this component is rendered. |
void |
setTarget(java.lang.String target)
Specifies the target for the Hyperlink and the
ImageHyperlink of this component. |
void |
setText(java.lang.String text)
Specifies the text for this component. |
void |
setToolTip(java.lang.String toolTip)
Display the text as a tooltip for this component |
void |
setUrl(java.lang.String url)
Specifies the url for the Hyperlink and the
ImageHyperlink for this component. |
void |
setVisible(boolean visible)
Use the visible attribute to indicate whether the component should be viewable by the user in the rendered HTML page. |
Methods inherited from class com.sun.rave.web.ui.component.TemplateComponentBase |
getChild, getChild, getLayoutDefinition, getLayoutDefinitionKey, setLayoutDefinitionKey |
Methods inherited from class javax.faces.component.UIComponentBase |
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TreeNodeBase()
Construct a new TreeNodeBase
.
Method Detail |
public java.lang.String getFamily()
Return the family for this component.
public javax.faces.el.MethodBinding getAction()
Specifies the action
for the Hyperlink
and
for the HyperlinkImage
of this component. The
Hyperlink
may alternately be defined via the
"content
" facet, and the image via the
"image
" facet. See Hyperlink
documentation
for more information on how to use action
.
This property will not apply to the facets when a facet is used.
public void setAction(javax.faces.el.MethodBinding action)
Specifies the action
for the Hyperlink
and
for the HyperlinkImage
of this component. The
Hyperlink
may alternately be defined via the
"content
" facet, and the image via the
"image
" facet. See Hyperlink
documentation
for more information on how to use action
.
This property will not apply to the facets when a facet is used.
getAction()
public javax.faces.el.MethodBinding getActionListener()
Method binding to a method that is invoked when this tree node is toggled open or close
public void setActionListener(javax.faces.el.MethodBinding actionListener)
Method binding to a method that is invoked when this tree node is toggled open or close
getActionListener()
public boolean isExpanded()
Specifies if this TreeNode
will be expanded or collapsed,
in other words if its child TreeNode
s should be
displayed.
public void setExpanded(boolean expanded)
Specifies if this TreeNode
will be expanded or collapsed,
in other words if its child TreeNode
s should be
displayed.
isExpanded()
public java.lang.String getImageURL()
Specifies imageURL
for the ImageHyperlink
of this component. The image may alternately be defined
via the "image
" facet. The "image
" facet may
be an IconHyperlink
component to utilize
Theme
images.
public void setImageURL(java.lang.String imageURL)
Specifies imageURL
for the ImageHyperlink
of this component. The image may alternately be defined
via the "image
" facet. The "image
" facet may
be an IconHyperlink
component to utilize
Theme
images.
getImageURL()
public java.lang.String getStyle()
CSS style(s) to be applied when this component is rendered.
public void setStyle(java.lang.String style)
CSS style(s) to be applied when this component is rendered.
getStyle()
public java.lang.String getStyleClass()
CSS style class(es) to be applied when this component is rendered.
public void setStyleClass(java.lang.String styleClass)
CSS style class(es) to be applied when this component is rendered.
getStyleClass()
public java.lang.String getTarget()
Specifies the target for the Hyperlink
and the
ImageHyperlink
of this component. The
Hyperlink
may alternately be defined via the
"content
" facet of this tree node, and the image via the
"image
" facet.
This property will not apply to the facet when a facet is used.
public void setTarget(java.lang.String target)
Specifies the target for the Hyperlink
and the
ImageHyperlink
of this component. The
Hyperlink
may alternately be defined via the
"content
" facet of this tree node, and the image via the
"image
" facet.
This property will not apply to the facet when a facet is used.
getTarget()
public java.lang.String getText()
Specifies the text
for this component. If a
url
or action
is also specified, these
properties will be used to create a Hyperlink
as the
content of this component. If neither the
action
or url
properties are specified, this
property will be used to display static text as the content for this
component.
Alternately, the "content
" facet may be used to specify
the content for this component. If this facet is used, this
property has no effect.
public void setText(java.lang.String text)
Specifies the text
for this component. If a
url
or action
is also specified, these
properties will be used to create a Hyperlink
as the
content of this component. If neither the
action
or url
properties are specified, this
property will be used to display static text as the content for this
component.
Alternately, the "content
" facet may be used to specify
the content for this component. If this facet is used, this
property has no effect.
getText()
public java.lang.String getToolTip()
Display the text as a tooltip for this component
public void setToolTip(java.lang.String toolTip)
Display the text as a tooltip for this component
getToolTip()
public java.lang.String getUrl()
Specifies the url
for the Hyperlink
and the
ImageHyperlink
for this component. The
Hyperlink
may alternately be defined via the
"content
" facet, and the image via the
"image
" facet.
This property will not apply to the facet when a facet is used.
public void setUrl(java.lang.String url)
Specifies the url
for the Hyperlink
and the
ImageHyperlink
for this component. The
Hyperlink
may alternately be defined via the
"content
" facet, and the image via the
"image
" facet.
This property will not apply to the facet when a facet is used.
getUrl()
public boolean isVisible()
Use the visible attribute to indicate whether the component should be viewable by the user in the rendered HTML page. If set to false, the HTML code for the component is present in the page, but the component is hidden with style attributes. By default, visible is set to true, so HTML for the component HTML is included and visible to the user. If the component is not visible, it can still be processed on subsequent form submissions because the HTML is present.
public void setVisible(boolean visible)
Use the visible attribute to indicate whether the component should be viewable by the user in the rendered HTML page. If set to false, the HTML code for the component is present in the page, but the component is hidden with style attributes. By default, visible is set to true, so HTML for the component HTML is included and visible to the user. If the component is not visible, it can still be processed on subsequent form submissions because the HTML is present.
isVisible()
public void restoreState(javax.faces.context.FacesContext _context, java.lang.Object _state)
Restore the state of this component.
restoreState
in interface javax.faces.component.StateHolder
restoreState
in class TemplateComponentBase
_context
- The FacesContext_state
- The serialized Statepublic java.lang.Object saveState(javax.faces.context.FacesContext _context)
Save the state of this component.
saveState
in interface javax.faces.component.StateHolder
saveState
in class TemplateComponentBase
_context
- The FacesContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |