|
||||||||||
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.ajax.components.tree.Tree
public abstract class Tree
Base component for providing Tree-like semantics for displaying data.
Constructor Summary | |
---|---|
Tree()
|
Method Summary | |
---|---|
void |
beforeRenderBody(org.apache.tapestry.IMarkupWriter writer,
org.apache.tapestry.IRequestCycle cycle,
Serializable partId,
boolean isRendering)
Invoked before this blocks body is rendered. |
void |
contentExpansion(org.apache.tapestry.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(org.apache.tapestry.IRequestCycle cycle)
Called to request the expansion of a tree node. |
abstract org.apache.tapestry.engine.IEngineService |
getAjaxEngine()
Injected ajax engine |
abstract AjaxWebRequest |
getAjaxWebRequest()
Injected ajax request |
abstract ITreeContentProvider |
getContentProvider()
Injected content provider |
IKeyProvider |
getIdentityKeyProvider()
The default IdentityKeyProvider . |
abstract IKeyProvider |
getKeyProvider()
Injected key provider |
abstract org.apache.tapestry.IActionListener |
getLinkListener()
Listener to invoke |
abstract org.apache.tapestry.listener.ListenerInvoker |
getListenerInvoker()
For invoking linkToggleListener, if it exists |
abstract String |
getLoadElement()
Delayed loading display element id |
ITreeManager |
getManager()
|
abstract String |
getPartialBlockClass()
Partial block class |
PartialRenderBlock |
getPartialTreeBlock()
Used to pass self into PartialForeach . |
org.apache.tapestry.IMarkupWriter |
getPartWriter(Serializable partId)
Returns the IMarkupWriter to use to print the contents of the
specified part area. |
abstract org.apache.tapestry.bean.EvenOdd |
getRowStyle()
Optional EvenOdd component |
abstract org.apache.tapestry.IScript |
getScript()
Injected script |
abstract Comparator |
getSorter()
Injected sort Comparator |
abstract Set |
getState()
Gets default/specified state |
net.sf.tacos.ajax.components.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. |
abstract boolean |
isDelayedLoad()
Delayed loading parameter |
boolean |
isExpanded(Object element)
|
abstract boolean |
isRowStyleInOuterDiv()
Where to apply the row style |
boolean |
isStateful()
|
protected void |
renderComponent(org.apache.tapestry.IMarkupWriter writer,
org.apache.tapestry.IRequestCycle cycle)
|
abstract void |
setState(Set state)
Saves tree state |
void |
trigger(org.apache.tapestry.IRequestCycle cycle)
|
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, getComponents, getContainedComponent, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isInActiveState, isParameterBound, isRendering, pageEndRender, prepareForRender, render, renderBody, renderInformalParameters, setBinding, setContainedComponent, 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, finishLoad, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainedComponent, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isRendering, renderBody, setBinding, setContainedComponent, 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.ajax.components.tree.TreeIterator getTreeIterator()
TreeIterator
provided if no other is specified.
TreeIterator
protected void renderComponent(org.apache.tapestry.IMarkupWriter writer, org.apache.tapestry.IRequestCycle cycle)
renderComponent
in class org.apache.tapestry.BaseComponent
public void expansion(org.apache.tapestry.IRequestCycle cycle)
cycle
- public void contentExpansion(org.apache.tapestry.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(org.apache.tapestry.IMarkupWriter writer, org.apache.tapestry.IRequestCycle cycle, Serializable partId, boolean isRendering)
beforeRenderBody
in interface PartialRenderBlock
isRendering
- True if render is being requested with a valid writerpublic void incrementNonRenderBlock()
EvenOdd
tapestry beans.
incrementNonRenderBlock
in interface PartialRenderBlock
public org.apache.tapestry.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 boolean isStateful()
isStateful
in interface org.apache.tapestry.IDirect
public void trigger(org.apache.tapestry.IRequestCycle cycle)
trigger
in interface org.apache.tapestry.IDirect
public abstract org.apache.tapestry.IScript getScript()
public abstract org.apache.tapestry.engine.IEngineService getAjaxEngine()
public abstract AjaxWebRequest getAjaxWebRequest()
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 org.apache.tapestry.bean.EvenOdd getRowStyle()
public abstract boolean isRowStyleInOuterDiv()
public abstract String getPartialBlockClass()
public abstract org.apache.tapestry.listener.ListenerInvoker getListenerInvoker()
public abstract org.apache.tapestry.IActionListener getLinkListener()
public abstract boolean isDelayedLoad()
public abstract String getLoadElement()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |