org.apache.tapestry.contrib.inspector
Class ShowSpecification

java.lang.Object
  extended by org.apache.tapestry.spec.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, PageRenderListener, IComponent, ILocatable, ILocationHolder, IRender

public class ShowSpecification
extends BaseComponent
implements PageRenderListener

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

Version:
$Id: ShowSpecification.java 243791 2004-02-19 17:38:13Z hlship $
Author:
Howard Lewis Ship

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.
 IComponent getComponent()
           
 String getComponentType()
          Returns the type of the component, as specified in the container's specification (i.e., the component alias if known).
 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)
           
 void setComponent(IComponent value)
           
 void setParameterName(String value)
           
 void setPropertyName(String value)
           
 
Methods inherited from class org.apache.tapestry.BaseComponent
addOuter, finishLoad, renderComponent
 
Methods inherited from class org.apache.tapestry.AbstractComponent
addAsset, addBody, addComponent, cleanupAfterRender, finishLoad, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, format, format, format, format, formatString, formatString, formatString, formatString, generateAttributes, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getChangeObserver, getComponent, getComponents, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, getString, prepareForRender, render, renderBody, renderInformalParameters, setBinding, setContainer, setId, setNamespace, setPage, setProperty, setSpecification, toString
 
Methods inherited from class org.apache.tapestry.spec.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.ILocationHolder
setLocation
 
Methods inherited from interface org.apache.tapestry.ILocatable
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 PageRenderListener
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 PageRenderListener
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()

setComponent

public void setComponent(IComponent value)

getComponent

public IComponent getComponent()

getComponentType

public String getComponentType()
Returns the type of the component, as specified in the container's specification (i.e., the component alias if known).


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()