org.trails.component
Class RenderProperties

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.trails.component.TrailsComponent
                  extended by org.trails.component.ClassDescriptorComponent
                      extended by org.trails.component.AbstractObjectRenderComponent
                          extended by org.trails.component.RenderProperties
All Implemented Interfaces:
org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder, org.apache.tapestry.IComponent, org.apache.tapestry.IDirectEvent, org.apache.tapestry.internal.Component, org.apache.tapestry.IRender, org.apache.tapestry.ITemplateComponent
Direct Known Subclasses:
EditProperties, ViewProperties

@ComponentClass
public abstract class RenderProperties
extends AbstractObjectRenderComponent

This component loops over all the properties in the class descriptor and displays a property for each one, deferring to a property override block if there is one.


Field Summary
 
Fields inherited from class org.trails.component.TrailsComponent
DEFAULT
 
Fields inherited from class org.apache.tapestry.AbstractComponent
_body, _bodyCount
 
Constructor Summary
RenderProperties()
           
 
Method Summary
abstract  org.apache.tapestry.IAsset get$template()
          This property indicates where the HTML template for this component is located.
abstract  BlockFinder getBlockFinder()
           
abstract  java.lang.Object getModel()
           
abstract  IPropertyDescriptor getProperty()
          It's used as the @For component "value" parameter.
abstract  boolean isModelNew()
           
abstract  void setModelNew(boolean modelNew)
           
 
Methods inherited from class org.trails.component.AbstractObjectRenderComponent
setModel
 
Methods inherited from class org.trails.component.ClassDescriptorComponent
getBlock, getClassDescriptor, getPropertyDescriptors, getPropertyNames, hasBlock, shouldDisplay
 
Methods inherited from class org.trails.component.TrailsComponent
getMessage, getResourceBundleMessageSource
 
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, 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, 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

RenderProperties

public RenderProperties()
Method Detail

get$template

@Asset(value="/org/trails/component/RenderProperties.html")
public abstract org.apache.tapestry.IAsset get$template()
This property indicates where the HTML template for this component is located. It's explicitly indicated here so all the subclasses can share the same template.

Returns:
Returns the HTML template.

getBlockFinder

@Parameter(required=true)
public abstract BlockFinder getBlockFinder()

getModel

@Parameter(defaultValue="page.model")
public abstract java.lang.Object getModel()
Specified by:
getModel in class AbstractObjectRenderComponent

isModelNew

@Parameter(defaultValue="page.modelNew")
public abstract boolean isModelNew()

setModelNew

public abstract void setModelNew(boolean modelNew)

getProperty

public abstract IPropertyDescriptor getProperty()
It's used as the @For component "value" parameter. It's updated with the current IPropertyDescriptor on each iteration.

Returns:
Returns the current property.


Copyright © 2004-2008. All Rights Reserved.