org.JCaiF.CoreComponents
Class FormattedInputQuestion
java.lang.Object
org.JCaiF.CoreComponents.SimpleSurveyQuestion
org.JCaiF.CoreComponents.TextInputQuestion
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
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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)
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