wtanaka.praya
Class StringFilledField

java.lang.Object
  |
  +--wtanaka.praya.StringFilledField
All Implemented Interfaces:
FilledField

public class StringFilledField
extends java.lang.Object
implements FilledField

This will be by far the most common filled field. It represents arbitrary (single-line?) textual data. Things like To, From, Subject in email, icq uid, etc.

Return to Sourceforge or the Praya Homepage

Version:
$Name: $ $Date: 2001/10/14 18:07:13 $
Author:
$Author: wtanaka $

Field Summary
private  int m_lengthHint
          A guess at the length of the data in the field.
private  java.lang.String m_value
           
 
Constructor Summary
StringFilledField(java.lang.String initial, int lengthHint)
          Constructs a StringFilledField with the given initial string and a guess as to how many characters long the data in this field will be.
 
Method Summary
 int getLengthHint()
           
 java.lang.String getValue()
           
 void setValue(java.lang.String newValue)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

m_value

private java.lang.String m_value

m_lengthHint

private int m_lengthHint
A guess at the length of the data in the field. (e.g. ICQ will always be < 20 characters, for instance, whereas subject will not necessarily)
Constructor Detail

StringFilledField

public StringFilledField(java.lang.String initial,
                         int lengthHint)
Constructs a StringFilledField with the given initial string and a guess as to how many characters long the data in this field will be.
Method Detail

setValue

public void setValue(java.lang.String newValue)

getValue

public java.lang.String getValue()

getLengthHint

public int getLengthHint()