tutorial.jsf.component.ajaxtree
Class AjaxTree

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by tutorial.jsf.component.ajaxtree.AjaxTree
All Implemented Interfaces:
javax.faces.component.StateHolder, AjaxComponent

public class AjaxTree
extends javax.faces.component.UIComponentBase
implements AjaxComponent

Created: Nov 3, 2007
Title: AjaxComponent
Description:

Author:
Matt Tyson

Note: It should be very easy to swap in a new 'look-and-feel' by replacing the style sheet and the icons. The stylesheet (ajaxtree.css) only need be replaced if the icon sizes are changing. It is obvious in the stylesheet where that info needs to be changed to match the size of the icons you are providing.


Field Summary
static java.lang.String COMPONENT_FAMILY
           
static java.lang.String COMPONENT_TYPE
           
static java.lang.String DEFAULT_RENDERER_TYPE
           
 
Fields inherited from class javax.faces.component.UIComponent
bindings
 
Constructor Summary
AjaxTree()
           
 
Method Summary
 AjaxTreeDataProvider getDataProvider()
           
 java.lang.String getFamily()
           
 void handleAjaxRequest(javax.faces.context.FacesContext context)
          This method is executed by the Ajax listener when an Ajax call for this component is detected.
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getContainerClientId, getValueExpression, setValueExpression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_RENDERER_TYPE

public static final java.lang.String DEFAULT_RENDERER_TYPE
See Also:
Constant Field Values

COMPONENT_FAMILY

public static final java.lang.String COMPONENT_FAMILY
See Also:
Constant Field Values

COMPONENT_TYPE

public static final java.lang.String COMPONENT_TYPE
See Also:
Constant Field Values
Constructor Detail

AjaxTree

public AjaxTree()
Method Detail

getDataProvider

public AjaxTreeDataProvider getDataProvider()

getFamily

public java.lang.String getFamily()
Specified by:
getFamily in class javax.faces.component.UIComponent

handleAjaxRequest

public void handleAjaxRequest(javax.faces.context.FacesContext context)
This method is executed by the Ajax listener when an Ajax call for this component is detected.

Specified by:
handleAjaxRequest in interface AjaxComponent


Copyright © 2008. All Rights Reserved.