com.partnersoft.gui.forms
Class AbstractFormTextField<T>

java.lang.Object
  extended by com.partnersoft.gui.forms.AbstractFormField<T>
      extended by 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

Field Summary
 
Fields inherited from class com.partnersoft.gui.forms.AbstractFormField
gui
 
Constructor Summary
AbstractFormTextField()
           
AbstractFormTextField(javax.swing.text.Document document)
           
 
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 com.partnersoft.gui.forms.AbstractFormField
addFieldListener, doAction, fireActionRequested, fireValueChanged, getGui, isDisabled, removeFieldListener, setDisabled, setToolTipText, valueChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFormTextField

public AbstractFormTextField()

AbstractFormTextField

public AbstractFormTextField(javax.swing.text.Document document)
Method Detail

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()