com.primix.tapestry.form
Interface IFormComponent

All Superinterfaces:
IComponent, IRender
All Known Implementing Classes:
AbstractFormComponent, AbstractValidatingTextField, Palette

public interface IFormComponent
extends IComponent

A common interface implemented by all form components (components that create interactive elements in the rendered page).


Method Summary
 IForm getForm()
          Returns the Form which contains the component.
 java.lang.String getName()
          Returns the name of the component, which is automatically generated during renderring.
 
Methods inherited from interface com.primix.tapestry.IComponent
addAsset, addComponent, addWrapped, finishLoad, getAsset, getAssets, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainer, getExtendedId, getId, getIdPath, getPage, getSpecification, renderWrapped, setBinding, setContainer, setId, setPage, setSpecification
 
Methods inherited from interface com.primix.tapestry.IRender
render
 

Method Detail

getForm

public IForm getForm()
Returns the Form which contains the component.

getName

public java.lang.String getName()
Returns the name of the component, which is automatically generated during renderring.

This value is set inside the component's render method and is not cleared. If the component is inside a Foreach, the value returned is the most recent name generated for the component.

This property is made available to facilitate writing JavaScript that allows components (in the client web browser) to interact.

In practice, a Script component works with the Body component to get the JavaScript code inserted and referenced.