org.JCaiF.CoreComponents
Class FormattedInputQuestion

java.lang.Object
  extended by org.JCaiF.CoreComponents.SimpleSurveyQuestion
      extended by org.JCaiF.CoreComponents.TextInputQuestion
          extended by org.JCaiF.CoreComponents.FormattedInputQuestion
All Implemented Interfaces:
java.lang.Cloneable, SurveyComponent, SurveyObject, SurveyQuestion
Direct Known Subclasses:
NumberInputQuestion

public class FormattedInputQuestion
extends TextInputQuestion

Author:
Michael Hall

Constructor Summary
FormattedInputQuestion()
          Creates a new instance of TextInputQuestion
FormattedInputQuestion(java.lang.String label)
           
FormattedInputQuestion(java.lang.String label, java.lang.String text)
           
FormattedInputQuestion(java.lang.String label, java.lang.String text, java.lang.String pattern)
           
 
Method Summary
 boolean checkFormat()
           
 boolean checkFormat(java.lang.String value)
           
 SurveyQuestion clone()
           
 java.lang.String getPattern()
           
 java.lang.String getValue()
           
 void init()
           
 boolean onContinue()
           
 boolean onLoad()
           
 void setPattern(java.lang.String p)
           
 void setValue(java.lang.String s)
           
 
Methods inherited from class org.JCaiF.CoreComponents.SimpleSurveyQuestion
getId, getParent, getText, setId, setParent, setText, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FormattedInputQuestion

public FormattedInputQuestion()
Creates a new instance of TextInputQuestion


FormattedInputQuestion

public FormattedInputQuestion(java.lang.String label)

FormattedInputQuestion

public FormattedInputQuestion(java.lang.String label,
                              java.lang.String text)

FormattedInputQuestion

public FormattedInputQuestion(java.lang.String label,
                              java.lang.String text,
                              java.lang.String pattern)
Method Detail

getPattern

public java.lang.String getPattern()

setPattern

public void setPattern(java.lang.String p)

checkFormat

public boolean checkFormat()

checkFormat

public boolean checkFormat(java.lang.String value)

getValue

public java.lang.String getValue()
Specified by:
getValue in interface SurveyObject
Overrides:
getValue in class TextInputQuestion

setValue

public void setValue(java.lang.String s)
Specified by:
setValue in interface SurveyObject
Overrides:
setValue in class TextInputQuestion

init

public void init()
Specified by:
init in interface SurveyObject
Overrides:
init in class TextInputQuestion

onLoad

public boolean onLoad()
Specified by:
onLoad in interface SurveyComponent
Overrides:
onLoad in class TextInputQuestion

onContinue

public boolean onContinue()
Specified by:
onContinue in interface SurveyComponent
Overrides:
onContinue in class TextInputQuestion

clone

public SurveyQuestion clone()
Specified by:
clone in interface SurveyComponent
Specified by:
clone in interface SurveyObject
Specified by:
clone in interface SurveyQuestion
Overrides:
clone in class TextInputQuestion