com.primix.tapestry.inspector
Class ShowSpecification

java.lang.Object
  |
  +--com.primix.tapestry.AbstractComponent
        |
        +--com.primix.tapestry.BaseComponent
              |
              +--com.primix.tapestry.inspector.ShowSpecification
All Implemented Interfaces:
java.util.EventListener, IComponent, IRender, PageRenderListener

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,v 1.12 2001/08/28 20:33:42 hship Exp $
Author:
Howard Ship

Fields inherited from class com.primix.tapestry.BaseComponent
outer, OUTER_INIT_SIZE, outerCount
 
Fields inherited from class com.primix.tapestry.AbstractComponent
id, page, specification, wrapped, wrappedCount
 
Constructor Summary
ShowSpecification()
           
 
Method Summary
protected  void finishLoad()
          Registers this component as a PageRenderListener.
 IAsset getAsset()
          Returns the IAsset corresponding to the value of the assetName property.
 java.lang.String getAssetName()
           
 java.util.List getAssetNames()
          Returns a sorted list of asset names, or null if the component contains no assets.
 java.lang.String getBeanName()
           
 java.util.List getBeanNames()
           
 BeanSpecification getBeanSpecification()
           
 IBinding getBinding()
          Returns the IBinding corresponding to the value of the parameterName property.
 IComponent getComponent()
           
 java.lang.String getComponentType()
          Returns the type of the component, as specified in the container's specification (i.e., the component alias if known).
 java.util.List getFormalParameterNames()
          Returns a sorted list of formal parameter names.
 java.util.List getInformalParameterNames()
          Returns a sorted list of informal parameter names.
 IComponent getInspectedComponent()
           
 ComponentSpecification getInspectedSpecification()
           
 java.lang.String getParameterName()
           
 ParameterSpecification getParameterSpecification()
          Returns the ParameterSpecification corresponding to the value of the parameterName property.
 java.lang.String getPropertyName()
           
 java.lang.String getPropertyValue()
           
 java.util.List getSortedComponents()
           
 java.util.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(java.lang.String value)
           
 void setBeanName(java.lang.String value)
           
 void setComponent(IComponent value)
           
 void setParameterName(java.lang.String value)
           
 void setPropertyName(java.lang.String value)
           
 
Methods inherited from class com.primix.tapestry.BaseComponent
addOuter, finishLoad, readTemplate, render
 
Methods inherited from class com.primix.tapestry.AbstractComponent
addAsset, addComponent, addWrapped, cleanupAfterRender, cleanupComponent, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, generateAttributes, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getChangeObserver, getComponent, getComponents, getContainer, getExtendedId, getId, getIdPath, getListeners, getPage, getSpecification, prepareForRender, renderWrapped, reset, setBinding, setContainer, setId, setPage, setSpecification, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ShowSpecification

public ShowSpecification()
Method Detail

finishLoad

protected void finishLoad()
Registers this component as a PageRenderListener.
Overrides:
finishLoad in class AbstractComponent
Since:
1.0.5

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
Since:
1.0.5

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

getFormalParameterNames

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

getInformalParameterNames

public java.util.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 java.lang.String getParameterName()

setParameterName

public void setParameterName(java.lang.String value)

getParameterSpecification

public ParameterSpecification 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(java.lang.String value)

getAssetName

public java.lang.String getAssetName()

getAsset

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

getAssetNames

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

getSortedComponents

public java.util.List getSortedComponents()

setComponent

public void setComponent(IComponent value)

getComponent

public IComponent getComponent()

getComponentType

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

getSortedPropertyNames

public java.util.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(java.lang.String value)

getPropertyName

public java.lang.String getPropertyName()

getPropertyValue

public java.lang.String getPropertyValue()

getBeanNames

public java.util.List getBeanNames()

setBeanName

public void setBeanName(java.lang.String value)

getBeanName

public java.lang.String getBeanName()

getBeanSpecification

public BeanSpecification getBeanSpecification()