|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hivemind.impl.BaseLocatable org.apache.tapestry.AbstractComponent org.apache.tapestry.BaseComponent net.sf.tacos.tree.Tree
Base component for providing Tree-like semantics for displaying data.
Constructor Summary | |
Tree()
|
Method Summary | |
void |
beforeRenderBody(IMarkupWriter writer,
IRequestCycle cycle,
Serializable partId,
boolean isRendering)
Invoked before this blocks body is rendered. |
void |
contentExpansion(IRequestCycle cycle)
Invoked by contentLinkToggle component, will invoke expansion(IRequestCycle) first before checking
if the invoking component specified an IActionListener and
any optional parameters it may need. |
void |
expansion(IRequestCycle cycle)
Called to request the expansion of a tree node. |
abstract ITreeContentProvider |
getContentProvider()
Injected content provider |
IKeyProvider |
getIdentityKeyProvider()
The default IdentityKeyProvider . |
abstract IKeyProvider |
getKeyProvider()
Injected key provider |
abstract IActionListener |
getLinkListener()
Listener to invoke |
abstract ListenerInvoker |
getListenerInvoker()
For invoking linkToggleListener, if it exists |
ITreeManager |
getManager()
|
PartialRenderBlock |
getPartialTreeBlock()
Used to pass self into PartialForeach . |
IMarkupWriter |
getPartWriter(Serializable partId)
Returns the IMarkupWriter to use to print
the contents of the specified part area. The returned
writer doesn't necessarily need to be directly associated with
the specified part. |
abstract EvenOdd |
getRowStyle()
Optional EvenOdd component |
abstract Comparator |
getSorter()
Injected sort Comparator |
abstract Set |
getState()
Gets default/specified state |
net.sf.tacos.tree.TreeIterator |
getTreeIterator()
The default TreeIterator provided
if no other is specified. |
abstract Object |
getValue()
Current value being rendered |
void |
incrementNonRenderBlock()
Called to give components a chance to increment anything they may be doing in a looping structure for part blocks that don't actually get called because they aren't in the current partial cycle. Currently being used to increment things like EvenOdd tapestry beans. |
boolean |
isExpanded(Object element)
|
protected void |
renderComponent(IMarkupWriter writer,
IRequestCycle cycle)
|
abstract void |
setState(Set state)
Saves tree state |
Methods inherited from class org.apache.tapestry.BaseComponent |
addOuter, finishLoad |
Methods inherited from class org.apache.tapestry.AbstractComponent |
addAsset, addBody, addComponent, checkActiveLock, cleanupAfterRender, enterActiveState, finishLoad, format, format, format, format, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getComponent, getComponent, getComponents, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isInActiveState, isParameterBound, isRendering, pageEndRender, prepareForRender, render, renderBody, renderInformalParameters, setBinding, setContainer, setId, setNamespace, setPage, setProperty, toString |
Methods inherited from class org.apache.hivemind.impl.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, enterActiveState, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getComponent, getComponent, getComponents, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isRendering, renderBody, setBinding, setContainer, setId, setNamespace, setPage, setProperty |
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 |
public Tree()
Method Detail |
public IKeyProvider getIdentityKeyProvider()
IdentityKeyProvider
.
public net.sf.tacos.tree.TreeIterator getTreeIterator()
TreeIterator
provided
if no other is specified.
TreeIterator
protected void renderComponent(IMarkupWriter writer, IRequestCycle cycle)
public void expansion(IRequestCycle cycle)
cycle
- public void contentExpansion(IRequestCycle cycle)
expansion(IRequestCycle)
first before checking
if the invoking component specified an IActionListener
and
any optional parameters it may need.
cycle
- public boolean isExpanded(Object element)
element
- to test expanded of
public ITreeManager getManager()
ITreeManager
for this tree.public void beforeRenderBody(IMarkupWriter writer, IRequestCycle cycle, Serializable partId, boolean isRendering)
beforeRenderBody
in interface PartialRenderBlock
writer
- cycle
- partId
- isRendering
- True if render is being requested with a valid writerpublic void incrementNonRenderBlock()
EvenOdd
tapestry beans.
incrementNonRenderBlock
in interface PartialRenderBlock
public IMarkupWriter getPartWriter(Serializable partId)
IMarkupWriter
to use to print
the contents of the specified part area. The returned
writer doesn't necessarily need to be directly associated with
the specified part.
getPartWriter
in interface PartialRenderBlock
partId
- The Part
or area of contents unique id.
public PartialRenderBlock getPartialTreeBlock()
PartialForeach
.
public abstract Object getValue()
public abstract Set getState()
public abstract void setState(Set state)
public abstract ITreeContentProvider getContentProvider()
public abstract IKeyProvider getKeyProvider()
public abstract Comparator getSorter()
Comparator
public abstract EvenOdd getRowStyle()
public abstract ListenerInvoker getListenerInvoker()
public abstract IActionListener getLinkListener()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |