Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.tapestry
Class AbstractComponent  view AbstractComponent download AbstractComponent.java

java.lang.Object
  extended byorg.apache.hivemind.impl.BaseLocatable
      extended byorg.apache.tapestry.AbstractComponent
All Implemented Interfaces:
IComponent, IRender, org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder
Direct Known Subclasses:
BaseComponent

public abstract class AbstractComponent
extends org.apache.hivemind.impl.BaseLocatable
implements IComponent

Abstract base class implementing the IComponentinterface.


Field Summary
static com.cortexeb.tools.clover.d __CLOVER_0_0
           
private  java.util.Map _assets
          The components' asset map.
private  IBeanProvider _beans
          A bean provider; these are lazily created as needed.
private  java.util.Map _bindings
          A java.util.Mapof all bindings (for which there isn't a corresponding JavaBeans property); the keys are the names of formal and informal parameters.
private  IRender[] _body
          An aray of elements in the body of this component.
private  int _bodyCount
          The number of IRenderobjects in the body of this component.
private  java.util.Map _components
           
private  IComponent _container
          The component which contains the component.
private  java.lang.String _id
          The simple id of this component.
private  java.lang.String _idPath
          The fully qualified id of this component.
private  org.apache.tapestry.listener.ListenerMap _listeners
          A mapping that allows public instance methods to be dressed up as IActionListener listener objects.
private  INamespace _namespace
           
private  IPage _page
          The page that contains the component, possibly itself (if the component is in fact, a page).
private  org.apache.tapestry.param.ParameterManager _parameterManager
          Manages setting and clearing parameter properties for the component.
private  org.apache.tapestry.spec.IComponentSpecification _specification
          The specification used to originally build the component.
private  org.apache.hivemind.Messages _strings
          Provides access to localized Strings for this component.
private static int BODY_INIT_SIZE
           
private static java.lang.String CLEANUPAFTERRENDER_METHOD_ID
          Used to check that subclasses invoke this implementation of cleanupAfterRender().
private static java.util.Map EMPTY_MAP
          Used in place of JDK 1.3's Collections.EMPTY_MAP (which is not available in JDK 1.2).
private static int MAP_SIZE
           
private static java.lang.String PREPAREFORRENDER_METHOD_ID
          Used to check that subclasses invoke this implementation of prepareForRender().
 
Fields inherited from class org.apache.hivemind.impl.BaseLocatable
 
Constructor Summary
AbstractComponent()
           
 
Method Summary
 void addAsset(java.lang.String name, IAsset asset)
          Adds an asset to the component.
 void addBody(IRender element)
          Adds an element (which may be static text or a component) as a body element of this component.
 void addComponent(IComponent component)
          Adds a component to a container.
protected  void cleanupAfterRender(IRequestCycle cycle)
          Invoked by render(IMarkupWriter, IRequestCycle) 55 after the component renders, to clear any parameters back to null (or 0, or false, or whatever the correct default is).
protected  void finishLoad()
          Invoked, as a convienience, from finishLoad(IRequestCycle, IPageLoader, IComponentSpecification) 55 .
 void finishLoad(IRequestCycle cycle, org.apache.tapestry.engine.IPageLoader loader, org.apache.tapestry.spec.IComponentSpecification specification)
          Registers this component as a listener of the page if it implements org.apache.tapestry.event.PageDetachListeneror org.apache.tapestry.event.PageRenderListener.
 java.lang.String format(java.lang.String key, java.lang.Object argument)
          Convienience method for invoking IMessages.format(String, Object) 55
 java.lang.String format(java.lang.String key, java.lang.Object[] arguments)
          Formats a localized message string, using IMessages.format(java.lang.String, java.lang.Object[]) 55 .
 java.lang.String format(java.lang.String key, java.lang.Object argument1, java.lang.Object argument2)
          Convienience method for invoking IMessages.format(String, Object, Object) 55 .
 java.lang.String format(java.lang.String key, java.lang.Object argument1, java.lang.Object argument2, java.lang.Object argument3)
          Convienience method for IMessages.format(String, Object, Object, Object) 55 .
 java.lang.String formatString(java.lang.String key, java.lang.Object argument)
          Deprecated. To be removed in 3.1. Use format(String, Object) 55 instead.
 java.lang.String formatString(java.lang.String key, java.lang.Object[] arguments)
          Deprecated. To be removed in 3.1. Use format(String, Object[]) 55 instead.
 java.lang.String formatString(java.lang.String key, java.lang.Object argument1, java.lang.Object argument2)
          Deprecated. To be removed in 3.1. Use format(String, Object, Object) 55 instead.
 java.lang.String formatString(java.lang.String key, java.lang.Object argument1, java.lang.Object argument2, java.lang.Object argument3)
          Deprecated. To be removed in 3.1. Use format(String, Object, Object, Object) 55 instead.
 IAsset getAsset(java.lang.String name)
          Returns the named asset, or null if not found.
 java.util.Map getAssets()
          Returns the asset map for the component, which may be empty but will not be null.
 IBeanProvider getBeans()
          Returns the IBeanProviderfor this component.
 IBinding getBinding(java.lang.String name)
          Returns the named binding, or null if it doesn't exist.
 java.util.Collection getBindingNames()
          Returns a java.util.Collection of the names of all bindings (which includes bindings for both formal and informal parameters).
 java.util.Map getBindings()
          Returns a java.util.Mapof all bindings for this component.
 IRender[] getBody()
          Returns the body of the component, the element (which may be static HTML or components) that the component immediately wraps.
 int getBodyCount()
          Returns the active number of elements in the the body, which may be zero.
 org.apache.tapestry.event.ChangeObserver getChangeObserver()
          Deprecated. To be removed in 3.1; use IPage.getChangeObserver() 55 .
private  org.apache.hivemind.ClassResolver getClassResolver()
          Returns an object used to resolve classes.
 IComponent getComponent(java.lang.String id)
          Retrieves an contained component by its id.
 java.util.Map getComponents()
          Returns an unmodifiable java.util.Mapof components, keyed on component id.
 IComponent getContainer()
          Returns the component which embeds the receiver.
 java.lang.String getExtendedId()
          Returns the name of the page, a slash, and this component's id path.
 java.lang.String getId()
          Returns the simple id of the component, as defined in its specification.
 java.lang.String getIdPath()
          Returns the qualified id of the component.
 org.apache.tapestry.listener.ListenerMap getListeners()
          Returns a org.apache.tapestry.listener.ListenerMapfor the component.
 java.lang.String getMessage(java.lang.String key)
          Returns a localized string message.
 org.apache.hivemind.Messages getMessages()
          Returns component strings for the component.
 INamespace getNamespace()
          Returns the INamespace in which the component was defined (as an alias).
 IPage getPage()
          Returns the page which ultimately contains the receiver.
 java.lang.Object getProperty(java.lang.String propertyName)
          Gets a property of a component.
 org.apache.tapestry.spec.IComponentSpecification getSpecification()
          Returns the specification which defines the component.
 java.lang.String getString(java.lang.String key)
          Obtains the IMessagesfor this component (if necessary), and gets the string from it.
 void pageEndRender(org.apache.tapestry.event.PageEvent event)
          Empty implementation of PageRenderListener.pageEndRender(PageEvent)>PageRenderListener.pageEndRender(PageEvent) 55 .
protected  void prepareForRender(IRequestCycle cycle)
          Invoked by render(IMarkupWriter, IRequestCycle) 55 to prepare the component to render.
 void render(IMarkupWriter writer, IRequestCycle cycle)
          The main method used to render the component.
 void renderBody(IMarkupWriter writer, IRequestCycle cycle)
          Renders all elements wrapped by the receiver.
protected abstract  void renderComponent(IMarkupWriter writer, IRequestCycle cycle)
          Invoked by render(IMarkupWriter, IRequestCycle) 55 to actually render the component (with any parameter values already set).
protected  void renderInformalParameters(IMarkupWriter writer, IRequestCycle cycle)
          Converts informal parameters into additional attributes on the curently open tag.
 void setBinding(java.lang.String name, IBinding binding)
          Adds the binding with the given name, replacing any existing binding with that name.
 void setContainer(IComponent value)
          Sets the container of the component.
 void setId(java.lang.String value)
          Sets the id of the component.
 void setNamespace(INamespace namespace)
          Sets the INamespace for the component.
 void setPage(IPage value)
          Sets the page which ultimiately contains the component.
 void setProperty(java.lang.String propertyName, java.lang.Object value)
          Sets a property of a component.
 void setSpecification(org.apache.tapestry.spec.IComponentSpecification value)
          Sets the specification used by the component.
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class org.apache.hivemind.impl.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.hivemind.LocationHolder
setLocation
 
Methods inherited from interface org.apache.hivemind.Locatable
getLocation
 

Field Detail

__CLOVER_0_0

public static com.cortexeb.tools.clover.d __CLOVER_0_0

PREPAREFORRENDER_METHOD_ID

private static final java.lang.String PREPAREFORRENDER_METHOD_ID
Used to check that subclasses invoke this implementation of prepareForRender().

Since:
3.0
See Also:
Tapestry.checkMethodInvocation(Object, String, Object) 55 , Constant Field Values

CLEANUPAFTERRENDER_METHOD_ID

private static final java.lang.String CLEANUPAFTERRENDER_METHOD_ID
Used to check that subclasses invoke this implementation of cleanupAfterRender().

Since:
3.0
See Also:
Tapestry.checkMethodInvocation(Object, String, Object) 55 , Constant Field Values

_specification

private org.apache.tapestry.spec.IComponentSpecification _specification
The specification used to originally build the component.


_page

private IPage _page
The page that contains the component, possibly itself (if the component is in fact, a page).


_container

private IComponent _container
The component which contains the component. This will only be null if the component is actually a page.


_id

private java.lang.String _id
The simple id of this component.


_idPath

private java.lang.String _idPath
The fully qualified id of this component. This is calculated the first time it is needed, then cached for later.


MAP_SIZE

private static final int MAP_SIZE
See Also:
Constant Field Values

_bindings

private java.util.Map _bindings
A java.util.Mapof all bindings (for which there isn't a corresponding JavaBeans property); the keys are the names of formal and informal parameters.


_components

private java.util.Map _components

BODY_INIT_SIZE

private static final int BODY_INIT_SIZE
See Also:
Constant Field Values

_namespace

private INamespace _namespace

EMPTY_MAP

private static final java.util.Map EMPTY_MAP
Used in place of JDK 1.3's Collections.EMPTY_MAP (which is not available in JDK 1.2).


_bodyCount

private int _bodyCount
The number of IRenderobjects in the body of this component.


_body

private IRender[] _body
An aray of elements in the body of this component.


_assets

private java.util.Map _assets
The components' asset map.


_listeners

private org.apache.tapestry.listener.ListenerMap _listeners
A mapping that allows public instance methods to be dressed up as IActionListener listener objects.

Since:
1.0.2

_beans

private IBeanProvider _beans
A bean provider; these are lazily created as needed.

Since:
1.0.4

_parameterManager

private org.apache.tapestry.param.ParameterManager _parameterManager
Manages setting and clearing parameter properties for the component.

Since:
2.0.3

_strings

private org.apache.hivemind.Messages _strings
Provides access to localized Strings for this component.

Since:
2.0.4
Constructor Detail

AbstractComponent

public AbstractComponent()
Method Detail

addAsset

public void addAsset(java.lang.String name,
                     IAsset asset)
Description copied from interface: IComponent
Adds an asset to the component. This is invoked from the page loader.

Specified by:
addAsset in interface IComponent

addComponent

public void addComponent(IComponent component)
Description copied from interface: IComponent
Adds a component to a container. Should only be called during the page loading process, which is responsible for any checking.

Specified by:
addComponent in interface IComponent

addBody

public void addBody(IRender element)
Adds an element (which may be static text or a component) as a body element of this component. Such elements are rendered by renderBody(IMarkupWriter, IRequestCycle) 55 .

Specified by:
addBody in interface IComponent
Since:
2.2

finishLoad

public void finishLoad(IRequestCycle cycle,
                       org.apache.tapestry.engine.IPageLoader loader,
                       org.apache.tapestry.spec.IComponentSpecification specification)
Registers this component as a listener of the page if it implements org.apache.tapestry.event.PageDetachListeneror org.apache.tapestry.event.PageRenderListener.

Invokes finishLoad() 55 . Subclasses may overide as needed, but must invoke this implementation. BaseComponentloads its HTML template.

Specified by:
finishLoad in interface IComponent

renderInformalParameters

protected void renderInformalParameters(IMarkupWriter writer,
                                        IRequestCycle cycle)
Converts informal parameters into additional attributes on the curently open tag.

Invoked from subclasses to allow additional attributes to be specified within a tag (this works best when there is a one-to-one corespondence between an IComponentand a HTML element.

Iterates through the bindings for this component. Filters out bindings when the name matches a formal parameter (as of 1.0.5, informal bindings are weeded out at page load / template load time, if they match a formal parameter, or a specificied reserved name). For the most part, all the bindings here are either informal parameter, or formal parameter without a corresponding JavaBeans property.

For each acceptible key, the value is extracted using IBinding.getObject() 55 . If the value is null, no attribute is written.

If the value is an instance of IAsset, then IAsset.buildURL(IRequestCycle) 55 is invoked to convert the asset to a URL.

Finally, IMarkupWriter.attribute(String,String) 55 is invoked with the value (or the URL).

The most common use for informal parameters is to support the HTML class attribute (for use with cascading style sheets) and to specify JavaScript event handlers.

Components are only required to generate attributes on the result phase; this can be skipped during the rewind phase.


getClassResolver

private org.apache.hivemind.ClassResolver getClassResolver()
Returns an object used to resolve classes.

Since:
3.0

getBinding

public IBinding getBinding(java.lang.String name)
Returns the named binding, or null if it doesn't exist.

This method looks for a JavaBeans property with an appropriate name, of type IBinding. The property should be named nameBinding. If it exists and is both readable and writable, then it is accessor method is invoked. Components which implement such methods can access their own binding through their instance variables instead of invoking this method, a performance optimization.

Specified by:
getBinding in interface IComponent

getChangeObserver

public org.apache.tapestry.event.ChangeObserver getChangeObserver()
Deprecated. To be removed in 3.1; use IPage.getChangeObserver() 55 .

Return's the page's change observer. In practical terms, this will be an org.apache.tapestry.engine.IPageRecorder.


getComponent

public IComponent getComponent(java.lang.String id)
Description copied from interface: IComponent
Retrieves an contained component by its id. Contained components have unique ids within their container.

Specified by:
getComponent in interface IComponent

getContainer

public IComponent getContainer()
Description copied from interface: IComponent
Returns the component which embeds the receiver. All components are contained within other components, with the exception of the root page component.

A page returns null.

Specified by:
getContainer in interface IComponent

setContainer

public void setContainer(IComponent value)
Description copied from interface: IComponent
Sets the container of the component. This is write-once, an attempt to change it later will throw an ApplicationRuntimeException.

Specified by:
setContainer in interface IComponent

getExtendedId

public java.lang.String getExtendedId()
Returns the name of the page, a slash, and this component's id path. Pages are different, they simply return their name.

Specified by:
getExtendedId in interface IComponent

getId

public java.lang.String getId()
Description copied from interface: IComponent
Returns the simple id of the component, as defined in its specification.

An id will be unique within the component which contains this component.

A page will always return null.

Specified by:
getId in interface IComponent

setId

public void setId(java.lang.String value)
Description copied from interface: IComponent
Sets the id of the component. This is write-once, an attempt to change it later will throw an ApplicationRuntimeException.

Specified by:
setId in interface IComponent

getIdPath

public java.lang.String getIdPath()
Description copied from interface: IComponent
Returns the qualified id of the component. This represents a path from the page to this component, showing how components contain each other.

A page will always return null. A component contained on a page returns its simple id. Other components return their container's id path followed by a period and their own name.

Specified by:
getIdPath in interface IComponent

getPage

public IPage getPage()
Description copied from interface: IComponent
Returns the page which ultimately contains the receiver. A page will return itself.

Specified by:
getPage in interface IComponent

setPage

public void setPage(IPage value)
Description copied from interface: IComponent
Sets the page which ultimiately contains the component. This is write-once, an attempt to change it later will throw an ApplicationRuntimeException.

Specified by:
setPage in interface IComponent

getSpecification

public org.apache.tapestry.spec.IComponentSpecification getSpecification()
Description copied from interface: IComponent
Returns the specification which defines the component.

Specified by:
getSpecification in interface IComponent

setSpecification

public void setSpecification(org.apache.tapestry.spec.IComponentSpecification value)
Description copied from interface: IComponent
Sets the specification used by the component. This is write-once, an attempt to change it later will throw an ApplicationRuntimeException.

Specified by:
setSpecification in interface IComponent

renderBody

public void renderBody(IMarkupWriter writer,
                       IRequestCycle cycle)
Renders all elements wrapped by the receiver.

Specified by:
renderBody in interface IComponent

setBinding

public void setBinding(java.lang.String name,
                       IBinding binding)
Adds the binding with the given name, replacing any existing binding with that name.

This method checks to see if a matching JavaBeans property (with a name of nameBinding and a type of IBinding) exists. If so, that property is updated. An optimized component can simply implement accessor and mutator methods and then access its bindings via its own instance variables, rather than going through getBinding(String) 55 .

Informal parameters should not be stored in instance variables if renderInformalParameters(IMarkupWriter, IRequestCycle) 55 is to be used. It relies on using the collection of bindings (to store informal parameters).

Specified by:
setBinding in interface IComponent

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).


getComponents

public java.util.Map getComponents()
Returns an unmodifiable java.util.Mapof components, keyed on component id. Never returns null, but may return an empty map. The returned map is immutable.

Specified by:
getComponents in interface IComponent

getAssets

public java.util.Map getAssets()
Description copied from interface: IComponent
Returns the asset map for the component, which may be empty but will not be null.

The return value is unmodifiable.

Specified by:
getAssets in interface IComponent

getAsset

public IAsset getAsset(java.lang.String name)
Description copied from interface: IComponent
Returns the named asset, or null if not found.

Specified by:
getAsset in interface IComponent

getBindingNames

public java.util.Collection getBindingNames()
Description copied from interface: IComponent
Returns a java.util.Collection of the names of all bindings (which includes bindings for both formal and informal parameters).

The return value is unmodifiable. It will be null for a page, or may simply be empty for a component with no bindings.

Specified by:
getBindingNames in interface IComponent

getBindings

public java.util.Map getBindings()
Returns a java.util.Mapof all bindings for this component. This implementation is expensive, since it has to merge the disassociated bindings (informal parameters, and parameters without a JavaBeans property) with the associated bindings (formal parameters with a JavaBeans property).

Specified by:
getBindings in interface IComponent
Since:
1.0.5

getListeners

public org.apache.tapestry.listener.ListenerMap getListeners()
Returns a org.apache.tapestry.listener.ListenerMapfor the component. A org.apache.tapestry.listener.ListenerMapcontains a number of synthetic read-only properties that implement the IActionListenerinterface, but in fact, cause public instance methods to be invoked.

Since:
1.0.2

getBeans

public IBeanProvider getBeans()
Returns the IBeanProviderfor this component. This is lazily created the first time it is needed.

Since:
1.0.4

finishLoad

protected void finishLoad()
Invoked, as a convienience, from finishLoad(IRequestCycle, IPageLoader, IComponentSpecification) 55 . This implemenation does nothing. Subclasses may override without invoking this implementation.

Since:
1.0.5

render

public final void render(IMarkupWriter writer,
                         IRequestCycle cycle)
The main method used to render the component. Invokes prepareForRender(IRequestCycle) 55 , then renderComponent(IMarkupWriter, IRequestCycle) 55 . cleanupAfterRender(IRequestCycle) 55 is invoked in a finally block.

Subclasses should not override this method; instead they will implement renderComponent(IMarkupWriter, IRequestCycle) 55 .

Specified by:
render in interface IRender
Since:
2.0.3

prepareForRender

protected void prepareForRender(IRequestCycle cycle)
Invoked by render(IMarkupWriter, IRequestCycle) 55 to prepare the component to render. This implementation sets JavaBeans properties from matching bound parameters. Subclasses that override this method must invoke this implementation as well.

Since:
2.0.3

renderComponent

protected abstract void renderComponent(IMarkupWriter writer,
                                        IRequestCycle cycle)
Invoked by render(IMarkupWriter, IRequestCycle) 55 to actually render the component (with any parameter values already set). This is the method that subclasses must implement.

Since:
2.0.3

cleanupAfterRender

protected void cleanupAfterRender(IRequestCycle cycle)
Invoked by render(IMarkupWriter, IRequestCycle) 55 after the component renders, to clear any parameters back to null (or 0, or false, or whatever the correct default is). Primarily, this is used to ensure that the component doesn't hold onto any objects that could otherwise be garbage collected.

Subclasses may override this implementation, but must also invoke it.

Since:
2.0.3

getMessages

public org.apache.hivemind.Messages getMessages()
Description copied from interface: IComponent
Returns component strings for the component.

Specified by:
getMessages in interface IComponent
Since:
3.0 *

getString

public java.lang.String getString(java.lang.String key)
Obtains the IMessagesfor this component (if necessary), and gets the string from it.

Specified by:
getString in interface IComponent

getMessage

public java.lang.String getMessage(java.lang.String key)
Description copied from interface: IComponent
Returns a localized string message. Each component has an optional set of localized message strings that are read from properties files.

Specified by:
getMessage in interface IComponent

formatString

public java.lang.String formatString(java.lang.String key,
                                     java.lang.Object[] arguments)
Deprecated. To be removed in 3.1. Use format(String, Object[]) 55 instead.

Formats a message string, using IMessages.format(java.lang.String, java.lang.Object[]) 55 .

Since:
2.2

format

public java.lang.String format(java.lang.String key,
                               java.lang.Object[] arguments)
Formats a localized message string, using IMessages.format(java.lang.String, java.lang.Object[]) 55 .

Since:
3.0

formatString

public java.lang.String formatString(java.lang.String key,
                                     java.lang.Object argument)
Deprecated. To be removed in 3.1. Use format(String, Object) 55 instead.

Convienience method for invoking IMessages.format(String, Object[]) 55

Since:
2.2

format

public java.lang.String format(java.lang.String key,
                               java.lang.Object argument)
Convienience method for invoking IMessages.format(String, Object) 55

Since:
3.0

formatString

public java.lang.String formatString(java.lang.String key,
                                     java.lang.Object argument1,
                                     java.lang.Object argument2)
Deprecated. To be removed in 3.1. Use format(String, Object, Object) 55 instead.

Convienience method for invoking IMessages.format(String, Object, Object) 55 .

Since:
2.2

format

public java.lang.String format(java.lang.String key,
                               java.lang.Object argument1,
                               java.lang.Object argument2)
Convienience method for invoking IMessages.format(String, Object, Object) 55 .

Since:
3.0

formatString

public java.lang.String formatString(java.lang.String key,
                                     java.lang.Object argument1,
                                     java.lang.Object argument2,
                                     java.lang.Object argument3)
Deprecated. To be removed in 3.1. Use format(String, Object, Object, Object) 55 instead.

Convienience method for IMessages.format(String, Object, Object, Object) 55 .

Since:
2.2

format

public java.lang.String format(java.lang.String key,
                               java.lang.Object argument1,
                               java.lang.Object argument2,
                               java.lang.Object argument3)
Convienience method for IMessages.format(String, Object, Object, Object) 55 .

Since:
3.0

getNamespace

public INamespace getNamespace()
Description copied from interface: IComponent
Returns the INamespace in which the component was defined (as an alias).

Specified by:
getNamespace in interface IComponent

setNamespace

public void setNamespace(INamespace namespace)
Description copied from interface: IComponent
Sets the INamespace for the component. The namespace should only be set once.

Specified by:
setNamespace in interface IComponent

getBody

public IRender[] getBody()
Returns the body of the component, the element (which may be static HTML or components) that the component immediately wraps. May return null. Do not modify the returned array. The array may be padded with nulls.

Since:
2.3

getBodyCount

public int getBodyCount()
Returns the active number of elements in the the body, which may be zero.

Since:
2.3

pageEndRender

public void pageEndRender(org.apache.tapestry.event.PageEvent event)
Empty implementation of PageRenderListener.pageEndRender(PageEvent)>PageRenderListener.pageEndRender(PageEvent) 55 . This allows classes to implement org.apache.tapestry.event.PageRenderListenerand only implement the PageRenderListener.pageBeginRender(PageEvent)>PageRenderListener.pageBeginRender(PageEvent) 55 method.

Since:
3.0

setProperty

public void setProperty(java.lang.String propertyName,
                        java.lang.Object value)
Sets a property of a component.

Specified by:
setProperty in interface IComponent
Since:
3.0

getProperty

public java.lang.Object getProperty(java.lang.String propertyName)
Gets a property of a component.

Specified by:
getProperty in interface IComponent
Since:
3.0