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

java.lang.Object
  extended by org.apache.hivemind.impl.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, org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder, PageDetachListener, IComponent, IDirectEvent, Component, IRender, ITemplateComponent

public abstract class TreeNodeView
extends BaseComponent
implements PageDetachListener

Author:
tsveltin?

Field Summary
 
Fields inherited from class org.apache.tapestry.AbstractComponent
_body, _bodyCount
 
Constructor Summary
TreeNodeView()
          Creates tree .
 
Method Summary
 void finishLoad(IRequestCycle objCycle, IPageLoader arg0, ComponentSpecification arg1)
           
 String getCleanSelectedID()
           
 IAsset getCloseNodeImage()
          Returns the closeNodeImage.
 IAsset getConnectImage()
          Returns the openNodeImage.
 int getCurrentForeachConnectImageValue()
           
 IRender getCurrentRenderer()
           
 boolean getDisableLink()
           
 int[] getForeachConnectImageList()
           
abstract  boolean getMakeNodeDirect()
           
 boolean getMakeNodeNoDirect()
           
 Object[] getNodeContext()
           
 IAsset getNodeImage()
          Returns the openNodeImage.
 IAsset getNodeImageOld()
           
 INodeRenderFactory getNodeRenderFactory()
           
abstract  INodeRenderFactory getNodeRenderFactoryParameter()
           
 String getNodeStyleClass()
           
 String getOffsetStyle()
           
 IAsset getOpenNodeImage()
          Returns the openNodeImage.
 String getSelectedID()
           
 boolean getShowConnectImage()
           
 boolean getShowImages()
           
abstract  Boolean getShowNodeImages()
           
 boolean getShowWithoutImages()
           
 ITreeModelSource getTreeModelSource()
           
 ITreeRowSource getTreeRowSource()
           
 boolean isNodeOpen()
           
 Boolean isShowNodeImages()
          Returns the ShowNodeImages.
 void nodeExpandCollaps(IRequestCycle cycle)
          Called when a node in the tree is clicked by the user.
 void nodeSelect(IRequestCycle cycle)
          Called when a node in the tree is selected 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 setCurrentForeachConnectImageValue(int currentForeachConnectImageValue)
           
 void setOpenNodeImage(IAsset openNodeImage)
          Sets the openNodeImage.
 
Methods inherited from class org.apache.tapestry.BaseComponent
addOuter, finishLoad, getContainedRenderers, getInnerRenderers
 
Methods inherited from class org.apache.tapestry.AbstractComponent
addAsset, addBody, addComponent, checkActiveLock, cleanupAfterRender, enterActiveState, equals, finishLoad, generateClientId, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getBoundId, getClientId, getComponent, getComponents, getContainedComponent, getContainer, getEventInvoker, getExtendedId, getId, getIdPath, getListeners, getMessages, getNamespace, getPage, getRenderWorker, getSpecification, getSpecifiedId, getTemplateTagName, hasEvents, hashCode, isInActiveState, isParameterBound, isRendering, isStateful, pageEndRender, peekClientId, prepareForRender, render, renderBody, renderIdAttribute, renderInformalParameters, setBinding, setClientId, setContainedComponent, setContainer, setHasEvents, setId, setNamespace, setPage, setTemplateTagName, toString, triggerEvent
 
Methods inherited from class org.apache.hivemind.impl.BaseLocatable
getLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.tapestry.IComponent
addAsset, addBody, addComponent, enterActiveState, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getClientId, getComponent, getComponents, getContainedComponent, getContainer, getEventInvoker, getExtendedId, getId, getIdPath, getListeners, getMessages, getNamespace, getPage, getSpecification, getSpecifiedId, getTemplateTagName, isRendering, peekClientId, renderBody, setBinding, setClientId, setContainedComponent, setContainer, setId, setNamespace, setPage, setTemplateTagName
 
Methods inherited from interface org.apache.tapestry.IRender
render
 
Methods inherited from interface org.apache.hivemind.LocationHolder
setLocation
 
Methods inherited from interface org.apache.hivemind.Locatable
getLocation
 

Constructor Detail

TreeNodeView

public TreeNodeView()
Creates tree .

Method Detail

getNodeRenderFactoryParameter

public abstract INodeRenderFactory getNodeRenderFactoryParameter()

getShowNodeImages

public abstract Boolean getShowNodeImages()

getCurrentRenderer

public IRender getCurrentRenderer()

getNodeContext

public Object[] getNodeContext()

nodeExpandCollaps

public void nodeExpandCollaps(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.

nodeSelect

public void nodeSelect(IRequestCycle cycle)
Called when a node in the tree is selected by the user. the tree state model is retrieved, and it is told to select 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

getNodeImageOld

public IAsset getNodeImageOld()

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)

isShowNodeImages

public Boolean isShowNodeImages()
Returns the ShowNodeImages.

Returns:
Boolean

getShowImages

public boolean getShowImages()

getShowWithoutImages

public boolean getShowWithoutImages()

getOffsetStyle

public String getOffsetStyle()

getNodeRenderFactory

public INodeRenderFactory getNodeRenderFactory()

getMakeNodeDirect

public abstract boolean getMakeNodeDirect()

getMakeNodeNoDirect

public boolean getMakeNodeNoDirect()

getCleanSelectedID

public String getCleanSelectedID()

getSelectedID

public String getSelectedID()

getNodeStyleClass

public String getNodeStyleClass()

getTreeRowSource

public ITreeRowSource getTreeRowSource()

getTreeModelSource

public ITreeModelSource getTreeModelSource()

getShowConnectImage

public boolean getShowConnectImage()

getForeachConnectImageList

public int[] getForeachConnectImageList()

getDisableLink

public boolean getDisableLink()

getConnectImage

public IAsset getConnectImage()
Returns the openNodeImage.

Returns:
IAsset nevalidno neshto

getCurrentForeachConnectImageValue

public int getCurrentForeachConnectImageValue()
Returns:
Returns the m_CurrentForeachConnectImageValue.

setCurrentForeachConnectImageValue

public void setCurrentForeachConnectImageValue(int currentForeachConnectImageValue)
Parameters:
currentForeachConnectImageValue - The m_CurrentForeachConnectImageValue to set.


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.