org.apache.tapestry5.corelib.components
Class TextField
java.lang.Object
org.apache.tapestry5.corelib.base.AbstractField
org.apache.tapestry5.corelib.base.AbstractTextField
org.apache.tapestry5.corelib.components.TextField
- All Implemented Interfaces:
- ClientElement, Field
public class TextField
- extends AbstractTextField
TextField component corresponds to <input type="text"> element. The value parameter will be editted. TextField
is generally used with string values, but other values are acceptible, as long as they can be freely converted back
and forth to strings.
Includes the size
attribute, if a Width
annotation is present on
the property bound to the value parameter.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextField
public TextField()
writeFieldTag
protected void writeFieldTag(MarkupWriter writer,
String value)
- Description copied from class:
AbstractTextField
- Invoked from
AbstractTextField.begin(MarkupWriter)
to write out the element and attributes (typically, <input>). The
controlName and clientId
properties will already have been set or updated.
Generally, the subclass will invoke MarkupWriter.element(String, Object[])
, and will be responsible for
including an AfterRender
phase method to invoke MarkupWriter.end()
.
- Specified by:
writeFieldTag
in class AbstractTextField
- Parameters:
writer
- markup write to send output tovalue
- the value (either obtained and translated from the value parameter, or obtained from the tracker)
Copyright © 2003-2011 The Apache Software Foundation.