org.apache.tapestry.contrib.tree.components
Class TreeView

java.lang.Object
  extended by org.apache.tapestry.spec.BaseLocatable
      extended by org.apache.tapestry.AbstractComponent
          extended by org.apache.tapestry.BaseComponent
              extended by org.apache.tapestry.contrib.tree.components.TreeView
All Implemented Interfaces:
EventListener, ITreeModelSource, PageDetachListener, PageRenderListener, IComponent, ILocatable, ILocationHolder, IRender

public class TreeView
extends BaseComponent
implements PageDetachListener, PageRenderListener, ITreeModelSource

Version:
$Id: TreeView.java 243791 2004-02-19 17:38:13Z hlship $

Field Summary
 
Fields inherited from interface org.apache.tapestry.contrib.tree.model.ITreeModelSource
TREE_MODEL_SOURCE_ATTRIBUTE
 
Constructor Summary
TreeView()
           
 
Method Summary
protected  void finishLoad()
          Invoked, as a convienience, from AbstractComponent.finishLoad(IRequestCycle, IPageLoader, IComponentSpecification).
 ComponentAddress getComponentPath()
           
 String getSelectedNodeStyleID()
           
 IBinding getSessionStateManagerBinding()
          Returns the sessionStateManagerBinding.
 ISessionStoreManager getSessionStoreManager()
          Returns the SessionStoreManager.
 IBinding getSessionStoreManagerBinding()
          Returns the SessionStoreManagerBinding.
 ITreeModel getTreeModel()
          Returns the treeModel.
 IBinding getTreeModelBinding()
          Returns the treeModelBinding.
 Object getTreeSessionState()
          Returns the treeSessionState.
 ITreeSessionStateManager getTreeSessionStateMgr()
          Returns the wizardSessionStateMgr.
 ITreeStateListener getTreeStateListener()
           
 void pageBeginRender(PageEvent arg0)
          Invoked before just before the page renders a response.
 void pageDetached(PageEvent arg0)
          Invoked by the page from its IPage.detach() method.
 void pageEndRender(PageEvent arg0)
          Empty implementation of PageRenderListener.pageEndRender(PageEvent).
protected  void renderComponent(IMarkupWriter arg0, IRequestCycle arg1)
          Renders the top level components contained by the receiver.
 void resetState()
           
 void setSessionStateManagerBinding(IBinding sessionStateManagerBinding)
          Sets the sessionStateManagerBinding.
 void setSessionStoreManagerBinding(IBinding sessionStoreManagerBinding)
          Sets the SessionStoreManagerBinding.
 void setTreeModel(ITreeModel treeModel)
          Sets the treeModel.
 void setTreeModelBinding(IBinding treeModelBinding)
          Sets the treeModelBinding.
 void setTreeSessionState(Object treeSessionState)
          Sets the treeSessionState.
 
Methods inherited from class org.apache.tapestry.BaseComponent
addOuter, finishLoad
 
Methods inherited from class org.apache.tapestry.AbstractComponent
addAsset, addBody, addComponent, cleanupAfterRender, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, format, format, format, format, formatString, formatString, formatString, formatString, generateAttributes, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getChangeObserver, getComponent, getComponents, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, getString, prepareForRender, render, renderBody, renderInformalParameters, setBinding, setContainer, setId, setNamespace, setPage, setProperty, setSpecification, toString
 
Methods inherited from class org.apache.tapestry.spec.BaseLocatable
getLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.tapestry.IComponent
addAsset, addBody, addComponent, finishLoad, getAsset, getAssets, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainer, getExtendedId, getId, getIdPath, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, getString, renderBody, setBinding, setContainer, setId, setNamespace, setPage, setProperty, setSpecification
 
Methods inherited from interface org.apache.tapestry.IRender
render
 
Methods inherited from interface org.apache.tapestry.ILocationHolder
setLocation
 
Methods inherited from interface org.apache.tapestry.ILocatable
getLocation
 

Constructor Detail

TreeView

public TreeView()
Method Detail

finishLoad

protected void finishLoad()
Description copied from class: AbstractComponent
Invoked, as a convienience, from AbstractComponent.finishLoad(IRequestCycle, IPageLoader, IComponentSpecification). This implemenation does nothing. Subclasses may override without invoking this implementation.

Overrides:
finishLoad in class AbstractComponent
See Also:
AbstractComponent.finishLoad()

pageDetached

public void pageDetached(PageEvent arg0)
Description copied from interface: PageDetachListener
Invoked by the page from its IPage.detach() method.

Specified by:
pageDetached in interface PageDetachListener
See Also:
PageDetachListener.pageDetached(PageEvent)

pageBeginRender

public void pageBeginRender(PageEvent arg0)
Description copied from interface: PageRenderListener
Invoked before just before the page renders a response. This provides listeners with a last chance to initialize themselves for the render. This initialization can include modifying peristent page properties.

Specified by:
pageBeginRender in interface PageRenderListener
See Also:
PageRenderListener.pageBeginRender(PageEvent)

pageEndRender

public void pageEndRender(PageEvent arg0)
Description copied from class: AbstractComponent
Empty implementation of PageRenderListener.pageEndRender(PageEvent). This allows classes to implement PageRenderListener and only implement the PageRenderListener.pageBeginRender(PageEvent) method.

Specified by:
pageEndRender in interface PageRenderListener
Overrides:
pageEndRender in class AbstractComponent
See Also:
PageRenderListener.pageEndRender(PageEvent)

getTreeModelBinding

public IBinding getTreeModelBinding()
Returns the treeModelBinding.

Returns:
IBinding

setTreeModelBinding

public void setTreeModelBinding(IBinding treeModelBinding)
Sets the treeModelBinding.

Parameters:
treeModelBinding - The treeModelBinding to set

getSessionStoreManagerBinding

public IBinding getSessionStoreManagerBinding()
Returns the SessionStoreManagerBinding.

Returns:
IBinding

getSessionStateManagerBinding

public IBinding getSessionStateManagerBinding()
Returns the sessionStateManagerBinding.

Returns:
IBinding

setSessionStoreManagerBinding

public void setSessionStoreManagerBinding(IBinding sessionStoreManagerBinding)
Sets the SessionStoreManagerBinding.

Parameters:
sessionStoreManagerBinding - The SessionStoreManagerBinding to set

setSessionStateManagerBinding

public void setSessionStateManagerBinding(IBinding sessionStateManagerBinding)
Sets the sessionStateManagerBinding.

Parameters:
sessionStateManagerBinding - The sessionStateManagerBinding to set

resetState

public void resetState()
See Also:
ITreeComponent.resetState()

getSessionStoreManager

public ISessionStoreManager getSessionStoreManager()
Returns the SessionStoreManager.

Returns:
ISessionStoreManager

getTreeSessionStateMgr

public ITreeSessionStateManager getTreeSessionStateMgr()
Returns the wizardSessionStateMgr.

Returns:
IWizardSessionStateManager

getComponentPath

public ComponentAddress getComponentPath()

getTreeModel

public ITreeModel getTreeModel()
Returns the treeModel.

Specified by:
getTreeModel in interface ITreeModelSource
Returns:
ITreeModel

setTreeModel

public void setTreeModel(ITreeModel treeModel)
Sets the treeModel.

Parameters:
treeModel - The treeModel to set

getTreeSessionState

public Object getTreeSessionState()
Returns the treeSessionState.

Returns:
Object

setTreeSessionState

public void setTreeSessionState(Object treeSessionState)
Sets the treeSessionState.

Parameters:
treeSessionState - The treeSessionState to set

getSelectedNodeStyleID

public String getSelectedNodeStyleID()

renderComponent

protected void renderComponent(IMarkupWriter arg0,
                               IRequestCycle arg1)
Description copied from class: BaseComponent
Renders the top level components contained by the receiver.

Overrides:
renderComponent in class BaseComponent
See Also:
BaseComponent.renderComponent(org.apache.tapestry.IMarkupWriter, org.apache.tapestry.IRequestCycle)

getTreeStateListener

public ITreeStateListener getTreeStateListener()
Specified by:
getTreeStateListener in interface ITreeModelSource
See Also:
ITreeModelSource.getTreeStateListener()