com.partnersoft.gui.forms
Class AbstractFormTextField<T>
java.lang.Object
com.partnersoft.gui.forms.AbstractFormField<T>
com.partnersoft.gui.forms.AbstractFormTextField<T>
- All Implemented Interfaces:
- FormField<T>
- Direct Known Subclasses:
- FormDateAndTimeField, FormDurationField, FormIntegerField, FormNumberField, FormStringField, FormTimeField
public class AbstractFormTextField<T>
- extends AbstractFormField<T>
A FormField for single-line entry of values that can be represented as a text primitive.
Includes a facility for
providing a javax.swing.text.Document, which it uses to control the contents.
See FormValidatedDocument, FormIntegerDocument, etc. for examples. Subclasses FormStringField, FormIntegerField, FormNumberField, etc.
are provided as well.javax.swing.text.Document
Copyright 2004-2008 Partner Software, Inc.
- Version:
- $Id$
- Author:
- Paul Reavis
|
Method Summary |
javax.swing.JTextField |
getJTextField()
|
T |
getValue()
Returns the current value for this field. |
void |
setValue(T newValue)
Sets the current value for this field. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractFormTextField
public AbstractFormTextField()
AbstractFormTextField
public AbstractFormTextField(javax.swing.text.Document document)
getValue
public T getValue()
- Returns the current value for this field.
setValue
public void setValue(T newValue)
- Sets the current value for this field.
getJTextField
public javax.swing.JTextField getJTextField()