|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsbr.items.NewQuestion
public class NewQuestion
Contains the methods to create the html code for each of the question times other than visual analog scales.
| Constructor Summary | |
|---|---|
NewQuestion()
|
|
| Method Summary | |
|---|---|
java.lang.String |
checkBox(java.lang.String quest,
java.lang.String[] items,
boolean horz,
int questNum)
Create the html code for a new checkbox question type which allows only one option to be selected. |
java.lang.String[] |
doDemographics(boolean[] whichDemo,
int start)
Add the standard formatted demographics to the survey. |
java.lang.String |
getHTML(java.lang.String[][][] items,
int start)
This method will take the information to create all of the items in the survey and transform it into html. |
java.lang.String |
likert(java.lang.String quest,
int numItems,
java.lang.String lAnchor,
java.lang.String rAnchor,
int questNum)
Create the html code for a new Likert question type. |
java.lang.String |
longText(java.lang.String quest,
int rows,
int cols,
int questNum)
Add a question which allows for unlimited text entry. |
java.lang.String |
menu(java.lang.String quest,
java.lang.String[] items,
boolean notDo,
int questNum)
Create a new drop-down menu question type which allows only one option to be selected. |
java.lang.String |
radio(java.lang.String quest,
java.lang.String[] items,
boolean horz,
int questNum)
Create the html code for a new radio button question type which allows only one option to be selected. |
java.lang.String |
shortText(java.lang.String text,
int length,
int max,
int questNum)
Add a short test item that limits the number of characters in the entry |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NewQuestion()
| Method Detail |
|---|
public java.lang.String likert(java.lang.String quest,
int numItems,
java.lang.String lAnchor,
java.lang.String rAnchor,
int questNum)
quest - The text of the itemnumItems - the number of options in the questionlAnchor - the left side anchorrAnchor - the right side anchorquestNum - the current question number, used in giving the variable name
public java.lang.String radio(java.lang.String quest,
java.lang.String[] items,
boolean horz,
int questNum)
quest - The text of the itemitems - the text to be included next to each button. Also indicates
the number of items in the questionhorz - the direction of the scale true means horizontalquestNum - the current question number, used in giving the variable name
public java.lang.String checkBox(java.lang.String quest,
java.lang.String[] items,
boolean horz,
int questNum)
quest - The text of the itemitems - the text to be included next to each button. Also indicates
the number of items in the questionhorz - the direction of the scale true means horizontalquestNum - the current question number, used in giving the variable name
public java.lang.String menu(java.lang.String quest,
java.lang.String[] items,
boolean notDo,
int questNum)
quest - The text of the itemitems - the text to be included next to each button. Also indicates
the number of items in the questionnotDo - option to indicate if add option for user to decline to answerquestNum - the current question number, used in giving the variable name
public java.lang.String shortText(java.lang.String text,
int length,
int max,
int questNum)
text - the text of the questionlength - the length of the fieldmax - the maximum number of characters that can be enteredquestNum - the question number in the survey
public java.lang.String longText(java.lang.String quest,
int rows,
int cols,
int questNum)
quest - the text of the questionrows - the number of rows for the text areacols - the width of the text areaquestNum - the number of the question
public java.lang.String[] doDemographics(boolean[] whichDemo,
int start)
whichDemo - flags to indicate which
demographic questions to do.lastNum - the last number used in the survey
public java.lang.String getHTML(java.lang.String[][][] items,
int start)
items - This is the array of the survey items to be
converted into html code.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||