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

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.TreeDataView
All Implemented Interfaces:
ITreeRowSource, IComponent, ILocatable, ILocationHolder, IRender

public class TreeDataView
extends BaseComponent
implements ITreeRowSource

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

Field Summary
 
Fields inherited from interface org.apache.tapestry.contrib.tree.model.ITreeRowSource
TREE_ROW_SOURCE_ATTRIBUTE
 
Constructor Summary
TreeDataView()
           
 
Method Summary
 int getTreeDeep()
           
 TreeRowObject getTreeRow()
          Method getTreeRow
 TreeRowObject getTreeRowObject()
           
 TreeView getTreeView()
           
 IBinding getTreeViewBinding()
          Returns the treeViewBinding.
 void initialize()
           
 void renderComponent(IMarkupWriter writer, IRequestCycle cycle)
          Renders the top level components contained by the receiver.
 void setTreeRowObject(TreeRowObject object)
           
 void setTreeViewBinding(IBinding treeViewBinding)
          Sets the treeViewBinding.
 void walkTree(Object objParent, Object objParentUID, int nDepth, ITreeModel objTreeModel, IMarkupWriter writer, IRequestCycle cycle)
           
 
Methods inherited from class org.apache.tapestry.BaseComponent
addOuter, finishLoad
 
Methods inherited from class org.apache.tapestry.AbstractComponent
addAsset, addBody, addComponent, cleanupAfterRender, finishLoad, 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, pageEndRender, 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.ILocationHolder
setLocation
 
Methods inherited from interface org.apache.tapestry.ILocatable
getLocation
 

Constructor Detail

TreeDataView

public TreeDataView()
Method Detail

initialize

public void initialize()

getTreeViewBinding

public IBinding getTreeViewBinding()
Returns the treeViewBinding.

Returns:
IBinding

setTreeViewBinding

public void setTreeViewBinding(IBinding treeViewBinding)
Sets the treeViewBinding.

Parameters:
treeViewBinding - The treeViewBinding to set

getTreeView

public TreeView getTreeView()

renderComponent

public void renderComponent(IMarkupWriter writer,
                            IRequestCycle cycle)
Description copied from class: BaseComponent
Renders the top level components contained by the receiver.

Overrides:
renderComponent in class BaseComponent

walkTree

public void walkTree(Object objParent,
                     Object objParentUID,
                     int nDepth,
                     ITreeModel objTreeModel,
                     IMarkupWriter writer,
                     IRequestCycle cycle)

getTreeDeep

public int getTreeDeep()

getTreeRow

public TreeRowObject getTreeRow()
Description copied from interface: ITreeRowSource
Method getTreeRow

Specified by:
getTreeRow in interface ITreeRowSource
Returns:
Object the current tree row object.
See Also:
ITreeRowSource.getTreeRow()

getTreeRowObject

public TreeRowObject getTreeRowObject()

setTreeRowObject

public void setTreeRowObject(TreeRowObject object)