org.apache.tapestry.contrib.inspector
Class ShowTemplate

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.inspector.ShowTemplate
All Implemented Interfaces:
org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder, IComponent, IDirect, IDirectEvent, IDynamicInvoker, Component, IRender, ITemplateComponent

public abstract class ShowTemplate
extends BaseComponent
implements IDirect

Component of the Inspectorpage used to display the ids and types of all embedded components.

Author:
Howard Lewis Ship

Field Summary
 
Fields inherited from class org.apache.tapestry.AbstractComponent
_body, _bodyCount
 
Constructor Summary
ShowTemplate()
           
 
Method Summary
abstract  IEngineService getDirectService()
           
 boolean getHasTemplate()
           
 IRender getTemplateDelegate()
           
abstract  TemplateSource getTemplateSource()
           
 boolean isStateful()
          Always returns true.
 void trigger(IRequestCycle cycle)
          Invoked when a component id is clicked.
 
Methods inherited from class org.apache.tapestry.BaseComponent
addOuter, finishLoad, getContainedRenderers, getInnerRenderers, renderComponent
 
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, 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, finishLoad, 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
 
Methods inherited from interface org.apache.tapestry.IDynamicInvoker
getUpdateComponents, isAsync, isJson
 

Constructor Detail

ShowTemplate

public ShowTemplate()
Method Detail

getTemplateSource

public abstract TemplateSource getTemplateSource()
Since:
4.0

getDirectService

public abstract IEngineService getDirectService()
Since:
4.1

getHasTemplate

public boolean getHasTemplate()

getTemplateDelegate

public IRender getTemplateDelegate()

trigger

public void trigger(IRequestCycle cycle)
Invoked when a component id is clicked.

Specified by:
trigger in interface IDirect
Parameters:
cycle - The current request.

isStateful

public boolean isStateful()
Always returns true.

Specified by:
isStateful in interface IDirect
Specified by:
isStateful in interface IDirectEvent
Overrides:
isStateful in class AbstractComponent
Returns:
Whether or not invocation should include state information and validate that a valid session exists when triggered.
Since:
2.3


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