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

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

public class TreeNodeView
extends BaseComponent
implements PageDetachListener

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

Constructor Summary
TreeNodeView()
           
 
Method Summary
 void finishLoad(IRequestCycle objCycle, IPageLoader arg0, ComponentSpecification arg1)
           
 String getCleanSelectedID()
           
 IAsset getCloseNodeImage()
          Returns the closeNodeImage.
 IRender getCurrentRenderer()
           
 boolean getMakeNodeDirect()
          Returns the makeNodeDirect.
 IBinding getMakeNodeDirectBinding()
          Returns the makeNodeDirectBinding.
 boolean getMakeNodeNoDirect()
           
 Object[] getNodeContext()
           
 IAsset getNodeImage()
          Returns the openNodeImage.
 INodeRenderFactory getNodeRenderFactory()
           
 IBinding getNodeRenderFactoryBinding()
          Returns the nodeRenderFactoryBinding.
 String getNodeStyleClass()
           
 String getOffsetStyle()
           
 IAsset getOpenNodeImage()
          Returns the openNodeImage.
 String getSelectedID()
           
 boolean getShowImages()
           
 IBinding getShowNodeImagesBinding()
          Returns the ShowNodeImagesBinding.
 boolean getShowWithoutImages()
           
 ITreeModelSource getTreeModelSource()
           
 ITreeRowSource getTreeRowSource()
           
 boolean isNodeOpen()
           
 Boolean isShowNodeImages()
          Returns the ShowNodeImages.
 void nodeSelect(IRequestCycle cycle)
          Called when a node in the tree is clicked by the user.
 void pageDetached(PageEvent arg0)
          Invoked by the page from its IPage.detach() method.
protected  void renderComponent(IMarkupWriter arg0, IRequestCycle arg1)
          Renders the top level components contained by the receiver.
 void setCloseNodeImage(IAsset closeNodeImage)
          Sets the closeNodeImage.
 void setMakeNodeDirectBinding(IBinding makeNodeDirectBinding)
          Sets the makeNodeDirectBinding.
 void setNodeRenderFactoryBinding(IBinding nodeRenderFactoryBinding)
          Sets the nodeRenderFactoryBinding.
 void setOpenNodeImage(IAsset openNodeImage)
          Sets the openNodeImage.
 void setShowNodeImagesBinding(IBinding ShowNodeImagesBinding)
          Sets the ShowNodeImagesBinding.
 
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

TreeNodeView

public TreeNodeView()
Method Detail

getCurrentRenderer

public IRender getCurrentRenderer()

getNodeContext

public Object[] getNodeContext()

nodeSelect

public void nodeSelect(IRequestCycle cycle)
Called when a node in the tree is clicked by the user. If the node is expanded, it will be collapsed, and vice-versa, that is, the tree state model is retrieved, and it is told to collapse or expand the node.

Parameters:
cycle - The Tapestry request cycle object.

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

finishLoad

public void finishLoad(IRequestCycle objCycle,
                       IPageLoader arg0,
                       ComponentSpecification arg1)

isNodeOpen

public boolean isNodeOpen()

getNodeImage

public IAsset getNodeImage()
Returns the openNodeImage.

Returns:
IAsset

getCloseNodeImage

public IAsset getCloseNodeImage()
Returns the closeNodeImage.

Returns:
IAsset

getOpenNodeImage

public IAsset getOpenNodeImage()
Returns the openNodeImage.

Returns:
IAsset

setCloseNodeImage

public void setCloseNodeImage(IAsset closeNodeImage)
Sets the closeNodeImage.

Parameters:
closeNodeImage - The closeNodeImage to set

setOpenNodeImage

public void setOpenNodeImage(IAsset openNodeImage)
Sets the openNodeImage.

Parameters:
openNodeImage - The openNodeImage to set

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:
AbstractComponent.renderComponent(IMarkupWriter, IRequestCycle)

getShowNodeImagesBinding

public IBinding getShowNodeImagesBinding()
Returns the ShowNodeImagesBinding.

Returns:
IBinding

setShowNodeImagesBinding

public void setShowNodeImagesBinding(IBinding ShowNodeImagesBinding)
Sets the ShowNodeImagesBinding.

Parameters:
ShowNodeImagesBinding - The ShowNodeImagesBinding to set

isShowNodeImages

public Boolean isShowNodeImages()
Returns the ShowNodeImages.

Returns:
Boolean

getShowImages

public boolean getShowImages()

getShowWithoutImages

public boolean getShowWithoutImages()

getOffsetStyle

public String getOffsetStyle()

getNodeRenderFactoryBinding

public IBinding getNodeRenderFactoryBinding()
Returns the nodeRenderFactoryBinding.

Returns:
IBinding

setNodeRenderFactoryBinding

public void setNodeRenderFactoryBinding(IBinding nodeRenderFactoryBinding)
Sets the nodeRenderFactoryBinding.

Parameters:
nodeRenderFactoryBinding - The nodeRenderFactoryBinding to set

getNodeRenderFactory

public INodeRenderFactory getNodeRenderFactory()

getMakeNodeDirectBinding

public IBinding getMakeNodeDirectBinding()
Returns the makeNodeDirectBinding.

Returns:
IBinding

setMakeNodeDirectBinding

public void setMakeNodeDirectBinding(IBinding makeNodeDirectBinding)
Sets the makeNodeDirectBinding.

Parameters:
makeNodeDirectBinding - The makeNodeDirectBinding to set

getMakeNodeDirect

public boolean getMakeNodeDirect()
Returns the makeNodeDirect.

Returns:
Boolean

getMakeNodeNoDirect

public boolean getMakeNodeNoDirect()

getCleanSelectedID

public String getCleanSelectedID()

getSelectedID

public String getSelectedID()

getNodeStyleClass

public String getNodeStyleClass()

getTreeRowSource

public ITreeRowSource getTreeRowSource()

getTreeModelSource

public ITreeModelSource getTreeModelSource()