com.primix.tapestry.valid
Class FieldLabel
java.lang.Object
|
+--com.primix.tapestry.AbstractComponent
|
+--com.primix.tapestry.valid.FieldLabel
- All Implemented Interfaces:
- IComponent, IRender
- public class FieldLabel
- extends AbstractComponent
Used to label an IValidatingTextField
. Because such fields
know their displayName (user-presentable name), there's no reason
to hard code the label in a page's HTML template (this also helps
with localization).
A FieldLabel
may also have a delegate
that
modifies the formatting of the label to match the state of the
field (i.e., if the field is required or in error).
Parameter |
Type |
Read / Write |
Required |
Default |
Description |
field |
IValidatingTextField |
R |
yes |
|
The field to be labeled. |
delegate |
IValidationDelegate |
R |
no |
|
An optional delegate that may provide additional formatting
for the label. |
Informal parameters are not allowed. A body is not allowed.
- Version:
- $Id: FieldLabel.java,v 1.5 2001/05/02 14:15:17 hship Exp $
- Author:
- Howard Ship
Methods inherited from class com.primix.tapestry.AbstractComponent |
addAsset, addComponent, addWrapped, cleanupAfterRender, cleanupComponent, finishLoad, finishLoad, 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 |
FieldLabel
public FieldLabel()
setFieldBinding
public void setFieldBinding(IBinding value)
getFieldBinding
public IBinding getFieldBinding()
setDelegateBinding
public void setDelegateBinding(IBinding value)
getDelegateBinding
public IBinding getDelegateBinding()
render
public void render(IResponseWriter writer,
IRequestCycle cycle)
throws RequestCycleException
- Gets the
IValidatingTextField
and optional delegate
,
then renders the label obtained from the field.