public interface Field extends ClientElement
getControlName()
will only be accurate after it has rendered. In some cases, when generating
JavaScript for example, it is necessary to wait
until the end of the current Heartbeat to ensure that all components have had their chance to render.Modifier and Type | Method and Description |
---|---|
String |
getControlName()
Returns the value used as the name attribute of the rendered element.
|
String |
getLabel()
Returns a user presentable (localized) label for the field, which may be used inside <label> elements on
the client, and inside client or server-side validation error messages.
|
boolean |
isDisabled()
Returns true if the field is disabled; A disabled field will render a disabled attribute so that it is
non-responsive on the client (at least, until its disabled status is changed on the client using JavaScript).
|
boolean |
isRequired()
Returns true if this field required (as per
FieldValidator.isRequired() ). |
getClientId
String getControlName()
String getLabel()
Label
boolean isDisabled()
boolean isRequired()
FieldValidator.isRequired()
).${project.version} - Copyright © 2003-2015 The Apache Software Foundation.