com.primix.tapestry.form
Class TextField
java.lang.Object
|
+--com.primix.tapestry.AbstractComponent
|
+--com.primix.tapestry.form.AbstractFormComponent
|
+--com.primix.tapestry.form.AbstractTextField
|
+--com.primix.tapestry.form.TextField
- All Implemented Interfaces:
- IComponent, IFormComponent, IRender
- public class TextField
- extends AbstractTextField
Implements a component that manages an HTML <input type=text> or
<input type=password> form element.
Parameter |
Type |
Read / Write |
Required |
Default |
Description |
text |
java.lang.String |
R / W |
yes |
|
The text inside the text field. The binding is only updated
when the the component is not disabled.
Corresponds to the value HTML attribute. |
hidden |
boolean |
R |
no |
false |
If true, then the text field is written as a
<input type=password> form element. |
disabled |
boolean |
R |
no |
false |
Controls whether the text field 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. |
displayWidth |
integer |
R |
no |
|
Controls the display width of the text control in the client browser. If
unspecified or zero, then the width is left to the client browser to
determine.
Corresponds to the size HTML attribute. |
maximumLength |
integer |
R |
no |
|
Controls the maximum characters that the text control will accept. 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, but the component may not contain a body.
- Version:
- $Id: TextField.java,v 1.8 2001/07/09 15:20:10 hship Exp $
- Author:
- Howard Ship
Methods inherited from class com.primix.tapestry.form.AbstractTextField |
beforeCloseTag, getDisabledBinding, getDisplayWidthBinding, getHiddenBinding, getMaximumLengthBinding, getName, render, setDisabledBinding, setDisplayWidthBinding, setHiddenBinding, setMaximumLengthBinding |
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 |
TextField
public TextField()
getTextBinding
public IBinding getTextBinding()
setTextBinding
public void setTextBinding(IBinding value)
readValue
public java.lang.String readValue()
- Description copied from class:
AbstractTextField
- Invoked by
AbstractTextField.render(IResponseWriter writer, IRequestCycle cycle)
when rendering a response.
- Overrides:
readValue
in class AbstractTextField
updateValue
public void updateValue(java.lang.String value)
- Description copied from class:
AbstractTextField
- Invoked by
AbstractTextField.render(IResponseWriter writer, IRequestCycle cycle)
when a value is obtained from the
HttpServletRequest
.
- Overrides:
updateValue
in class AbstractTextField