sbr.resources
Class ErrorText

java.lang.Object
  extended by sbr.resources.ErrorText

public class ErrorText
extends java.lang.Object

Error handling for text fields for SurveyBuildR.

Version:
0.1
Author:
John H. Krantz, Ph.D.

Constructor Summary
ErrorText()
           
 
Method Summary
 void checkNum(javax.swing.JTextField field)
          Removes all numerals from text fields used for the entry of numerical information.
 void checkShort(javax.swing.JTextField sf, int max)
          Checks the input of the shorttitle (the name of the data file).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorText

public ErrorText()
Method Detail

checkShort

public void checkShort(javax.swing.JTextField sf,
                       int max)
Checks the input of the shorttitle (the name of the data file). It does not allow any characters from letters and number and restricts the length as specified in the input parameters.

Parameters:
sf - the text field in which the short title is being entered.
max - the maximun number of characters allowed in the short title.

checkNum

public void checkNum(javax.swing.JTextField field)
Removes all numerals from text fields used for the entry of numerical information.

Parameters:
field - the text field that is being used to enter numerical data.