org.apache.tapestry.contrib.inspector
Class ShowSpecification

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.ShowSpecification
All Implemented Interfaces:
EventListener, org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder, PageBeginRenderListener, PageEndRenderListener, IComponent, IDirectEvent, Component, IRender, ITemplateComponent

public abstract class ShowSpecification
extends BaseComponent
implements PageBeginRenderListener, PageEndRenderListener

Component of the Inspector page used to display the specification, parameters and bindings and assets of the inspected component.

Author:
Howard Lewis Ship

Field Summary
 
Fields inherited from class org.apache.tapestry.AbstractComponent
_body, _bodyCount
 
Constructor Summary
ShowSpecification()
           
 
Method Summary
 IAsset getAsset()
          Returns the IAsset corresponding to the value of the assetName property.
 String getAssetName()
           
 List getAssetNames()
          Returns a sorted list of asset names, or null if the component contains no assets.
 String getBeanName()
           
 List getBeanNames()
           
 IBeanSpecification getBeanSpecification()
           
 IBinding getBinding()
          Returns the IBinding corresponding to the value of the parameterName property.
abstract  IComponent getCurrentComponent()
           
 List getFormalParameterNames()
          Returns a sorted list of formal parameter names.
 List getInformalParameterNames()
          Returns a sorted list of informal parameter names.
 IComponent getInspectedComponent()
           
 IComponentSpecification getInspectedSpecification()
           
 String getParameterName()
           
 IParameterSpecification getParameterSpecification()
          Returns the ParameterSpecification corresponding to the value of the parameterName property.
 String getPropertyName()
           
 String getPropertyValue()
           
 List getSortedComponents()
           
 List getSortedPropertyNames()
          Returns a list of the properties for the component (from its specification), or null if the component has no properties.
 void pageBeginRender(PageEvent event)
          Gets the inspected component and specification from the Inspector page.
 void pageEndRender(PageEvent event)
          Clears all cached information about the component and such after each render (including the rewind phase render used to process the tab view).
 void setAssetName(String value)
           
 void setBeanName(String value)
           
abstract  void setCurrentComponent(IComponent value)
           
 void setParameterName(String value)
           
 void setPropertyName(String value)
           
 
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, isStateful, 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

ShowSpecification

public ShowSpecification()
Method Detail

pageEndRender

public void pageEndRender(PageEvent event)
Clears all cached information about the component and such after each render (including the rewind phase render used to process the tab view).

Specified by:
pageEndRender in interface PageEndRenderListener
Overrides:
pageEndRender in class AbstractComponent
Since:
1.0.5
See Also:
AbstractComponent.pageEndRender(PageEvent)

pageBeginRender

public void pageBeginRender(PageEvent event)
Gets the inspected component and specification from the Inspector page.

Specified by:
pageBeginRender in interface PageBeginRenderListener
Since:
1.0.5

getInspectedComponent

public IComponent getInspectedComponent()

getInspectedSpecification

public IComponentSpecification getInspectedSpecification()

getFormalParameterNames

public List getFormalParameterNames()
Returns a sorted list of formal parameter names.


getInformalParameterNames

public List getInformalParameterNames()
Returns a sorted list of informal parameter names. This is the list of all bindings, with the list of parameter names removed, sorted.


getParameterName

public String getParameterName()

setParameterName

public void setParameterName(String value)

getParameterSpecification

public IParameterSpecification getParameterSpecification()
Returns the ParameterSpecification corresponding to the value of the parameterName property.


getBinding

public IBinding getBinding()
Returns the IBinding corresponding to the value of the parameterName property.


setAssetName

public void setAssetName(String value)

getAssetName

public String getAssetName()

getAsset

public IAsset getAsset()
Returns the IAsset corresponding to the value of the assetName property.


getAssetNames

public List getAssetNames()
Returns a sorted list of asset names, or null if the component contains no assets.


getSortedComponents

public List getSortedComponents()

setCurrentComponent

public abstract void setCurrentComponent(IComponent value)

getCurrentComponent

public abstract IComponent getCurrentComponent()

getSortedPropertyNames

public List getSortedPropertyNames()
Returns a list of the properties for the component (from its specification), or null if the component has no properties.


setPropertyName

public void setPropertyName(String value)

getPropertyName

public String getPropertyName()

getPropertyValue

public String getPropertyValue()

getBeanNames

public List getBeanNames()

setBeanName

public void setBeanName(String value)

getBeanName

public String getBeanName()

getBeanSpecification

public IBeanSpecification getBeanSpecification()


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