A descendant of ITPQuestion, representing a time question on a form. Tranforms simple input box into two, one for the hours and one for the minutes. Only accepts hours in [0, 23] and minutes in [0, 59].
constructor |
|
ITPTimeQuestion |
Trivial |
public methods |
|
- |
|
overrides |
|
initScreenElements() |
Replaces the simple input element by an hour and a minute input element. Binds events and associated JQuery classes. |
setInternalAnswer(pAnswer) |
Applies pAnswer to the internalanswer variable and to the hidden input box. |
getScreenAnswer() |
Returns the answer on the screen in the format hh:mm:00 |
setScreenAnswer(pAnswer) |
Splits pAnswer on ":" and applies the first to parts to the hour and minute input elements, respectively. |
validate(pAnswer) |
Validates the hours and minutes of pAnswer to be numerical and within their proper ranges. |
other methods |
|
- |
|