org.apache.tapestry.contrib.tree.components.table
Class TreeTableDataView

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.table.TreeTableDataView
All Implemented Interfaces:
EventListener, ITreeRowSource, PageDetachListener, IComponent, ILocatable, ILocationHolder, IRender

public class TreeTableDataView
extends BaseComponent
implements ITreeRowSource, PageDetachListener

Version:
$Id: TreeTableDataView.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
TreeTableDataView()
           
 
Method Summary
protected  void finishLoad()
          Invoked, as a convienience, from AbstractComponent.finishLoad(IRequestCycle, IPageLoader, IComponentSpecification).
 ArrayList generateNodeList()
           
 int getEntriesPerTablePage()
           
 ITableColumn[] getTableColunms()
           
 ArrayList getTableColunmsFromBinding()
           
 ITableModel getTableModel()
           
 ITableSessionStateManager getTableSessionStateManager()
           
 int getTreeDeep()
          Returns the treeDeep.
 ITreeModelSource getTreeModelSource()
           
 TreeRowObject getTreeRow()
          Method getTreeRow
 TreeRowObject getTreeRowObject()
           
 void initialize()
           
 void pageDetached(PageEvent arg0)
          Invoked by the page from its IPage.detach() method.
 void renderBody(IMarkupWriter arg0, IRequestCycle cycle)
          Renders all elements wrapped by the receiver.
protected  void renderComponent(IMarkupWriter arg0, IRequestCycle cycle)
          Renders the top level components contained by the receiver.
 void setTreeRowObject(TreeRowObject object)
           
 void walkTree(ArrayList arrAllExpandedNodes, Object objParent, Object objParentUID, int nDepth, ITreeModel objTreeModel)
           
 
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, pageEndRender, prepareForRender, render, 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

TreeTableDataView

public TreeTableDataView()
Method Detail

initialize

public void initialize()

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(org.apache.tapestry.event.PageEvent)

getTreeModelSource

public ITreeModelSource getTreeModelSource()

generateNodeList

public ArrayList generateNodeList()

walkTree

public void walkTree(ArrayList arrAllExpandedNodes,
                     Object objParent,
                     Object objParentUID,
                     int nDepth,
                     ITreeModel objTreeModel)

getTreeDeep

public int getTreeDeep()
Returns the treeDeep.

Returns:
int

getTableModel

public ITableModel getTableModel()

getTableColunms

public ITableColumn[] getTableColunms()

getTableColunmsFromBinding

public ArrayList getTableColunmsFromBinding()

getEntriesPerTablePage

public int getEntriesPerTablePage()

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()

getTableSessionStateManager

public ITableSessionStateManager getTableSessionStateManager()

renderComponent

protected void renderComponent(IMarkupWriter arg0,
                               IRequestCycle cycle)
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)

renderBody

public void renderBody(IMarkupWriter arg0,
                       IRequestCycle cycle)
Description copied from class: AbstractComponent
Renders all elements wrapped by the receiver.

Specified by:
renderBody in interface IComponent
Overrides:
renderBody in class AbstractComponent
See Also:
AbstractComponent.renderBody(org.apache.tapestry.IMarkupWriter, org.apache.tapestry.IRequestCycle)

getTreeRowObject

public TreeRowObject getTreeRowObject()

setTreeRowObject

public void setTreeRowObject(TreeRowObject object)