com.primix.tapestry.form
Class Text
java.lang.Object
|
+--com.primix.tapestry.AbstractComponent
|
+--com.primix.tapestry.form.AbstractFormComponent
|
+--com.primix.tapestry.form.Text
- All Implemented Interfaces:
- IComponent, IFormComponent, IRender
- public class Text
- extends AbstractFormComponent
Implements a component that manages an HTML <textarea> form element.
Parameter |
Type |
Read / Write |
Required |
Default |
Description |
text |
java.lang.String |
R / W |
no |
post |
The text inside the textarea. The parameter is only updated
when the the Text component is not disabled. |
disabled |
boolean |
R |
no |
false |
Controls whether the textarea is active or not. If disabled, then
any value that comes up when the form is submitted is ignored.
Corresponds to the disabled HTML attribute. |
columns |
integer |
R |
no |
|
The width of the textarea, in characters. If zero, or unspecified
the value is left to the client browser to determine.
Corresponds to the cols HTML attribute. |
rows |
integer |
R |
no |
|
The number of rows in the textarea. If
unspecified or zero, then the value is left to the client browser to
determine.
Corresponds to the maxlength HTML attribute. |
Informal parameters are allowed. The component may not contain a body.
- Version:
- $Id: Text.java,v 1.8 2001/08/28 20:33:41 hship Exp $
- Author:
- Howard Ship
Constructor Summary |
Text()
|
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 |
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 |
Text
public Text()
getName
public java.lang.String getName()
- Description copied from interface:
IFormComponent
- 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.
- Overrides:
getName
in class AbstractFormComponent
getColumnsBinding
public IBinding getColumnsBinding()
getDisabledBinding
public IBinding getDisabledBinding()
getRowsBinding
public IBinding getRowsBinding()
getTextBinding
public IBinding getTextBinding()
render
public void render(IResponseWriter writer,
IRequestCycle cycle)
throws RequestCycleException
- Renders the form element, or responds when the form containing the element
is submitted (by checking
Form.isRewinding()
.
attribute | value |
name | from IRequestCycle.getNextActionId() |
disabled | ommited, unless the disabled property is
true. |
rows | from rows property |
cols | from columns property |
setColumnsBinding
public void setColumnsBinding(IBinding value)
setDisabledBinding
public void setDisabledBinding(IBinding value)
setRowsBinding
public void setRowsBinding(IBinding value)
setTextBinding
public void setTextBinding(IBinding value)