com.threerings.antidote.field.text
Class SingleLineTextField
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
com.threerings.antidote.field.BaseComponent
com.threerings.antidote.field.BaseField
com.threerings.antidote.field.text.TextField
com.threerings.antidote.field.text.SingleLineTextField
- All Implemented Interfaces:
- Field, ReferenceField, RequiresValidation, Cloneable
- Direct Known Subclasses:
- Arch, EnumTextField, Name, Section, SimpleTextField, Version
public abstract class SingleLineTextField
- extends TextField
A TextField
that enforces the text data is always set, not zero length, and has
no newlines or tabs.
Method Summary |
protected String |
getText()
Override getText() so that the initial steps of validateField() must have happened before
access. |
protected void |
validateField()
Give each subclass a chance to do field specific validation. |
protected abstract void |
validateTextField()
Provide concrete classes a method for additional validation. |
Methods inherited from class com.threerings.antidote.field.BaseComponent |
appendViolation, appendViolationList, getReferencedField, isReference, registerField, reportConflictingProperties, reportUnsetDependentFields, reportUnsetDependentProperties, reportUnsetField, setReference, validate, validateChildFields, validateChildFields, validateOptionalProperties, validateProperties, validateProperties |
Methods inherited from class org.apache.tools.ant.Task |
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, log, log, maybeConfigure, perform, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
SingleLineTextField
public SingleLineTextField()
validateField
protected final void validateField()
- Description copied from class:
BaseComponent
- Give each subclass a chance to do field specific validation.
- Specified by:
validateField
in class BaseComponent
getText
protected String getText()
- Override getText() so that the initial steps of validateField() must have happened before
access.
- Overrides:
getText
in class TextField
validateTextField
protected abstract void validateTextField()
- Provide concrete classes a method for additional validation.
Copyright © 2007-2008 Three Rings Design, Inc.
All Rights Reserved. Released under a BSD license.