|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--kotkabeans.WizardBean
Title: WizardBean
Description:
Copyright: Copyright (c) KORPPI-PROJEKTIRYHMÄ 2003
Company: Jyu
Usage:
Field Summary | |
protected CourseInstance |
ci
|
protected boolean |
computeGrade
|
java.lang.String |
CREDITS_FIELD
|
protected boolean |
creditsFieldWanted
|
java.lang.String |
DEMO_BONUS_FIELD
|
java.lang.String |
DEMO_FIELD
|
java.lang.String |
DEMO_FORM
|
java.lang.String |
DEMO_SUM_FIELD
|
protected boolean |
demoBonusWanted
|
protected boolean |
demosWanted
|
java.lang.String |
EXAM_FIELD
|
java.lang.String |
EXAM_FORM
|
java.lang.String |
EXAM_SUM_FIELD
|
protected boolean |
examWanted
|
java.lang.String |
EXERCISE_BONUS_FIELD
|
java.lang.String |
EXERCISE_FIELD
|
java.lang.String |
EXERCISE_FORM
|
protected boolean |
exerciseBonusWanted
|
protected boolean |
exerciseCompulsory
|
protected boolean |
exerciseWanted
|
protected int |
fieldsInDemoForm
|
protected int |
fieldsInExamForm
|
protected int |
fieldsInTestForm
|
protected kotkabeans.WizardBean.EvaluationFunction |
function
|
java.lang.String |
FUNCTION
|
java.lang.String |
GRADE_FIELD
|
java.lang.String |
GRADE_FORM
|
protected boolean |
gradeFormShows
|
protected double |
maxDemoBonusPercent
|
protected int |
maxDemoBonusPoints
|
protected int |
maxDemoPoints
|
protected double |
minDemoBonusPercent
|
protected int |
minDemoBonusPoints
|
protected int |
nbrOfTestForms
|
protected boolean |
newCi
|
java.lang.String |
POINTS_FIELD
|
java.lang.String |
TEST_FIELD
|
java.lang.String |
TEST_FORM
|
protected boolean |
testWanted
|
protected boolean |
translated
|
protected User |
user
|
Constructor Summary | |
WizardBean()
Dummy constructor. |
|
WizardBean(User u)
Constructor with user to set. |
Method Summary | |
void |
addFieldToForm(FieldGroup form,
java.lang.String fieldName,
int fieldType)
Adds new field to certain form. |
void |
addFieldToForm(java.lang.String formName,
java.lang.String fieldName,
int fieldType)
Adds new field to certain form. |
void |
createForm(java.lang.String formName,
int nbrOfForms,
java.lang.String fieldName,
int nbrOfFields,
int fieldType,
int teacherAccessRight,
int studentAccessRight,
boolean addSumField)
|
void |
createForm(java.lang.String formName,
int nbrOfForms,
java.lang.String fieldName,
java.lang.String nbrOfFields,
int fieldType,
int teacherAccessRight,
int studentAccessRight,
boolean addSumField)
|
void |
createForm(java.lang.String formName,
java.lang.String nbrOfForms,
java.lang.String fieldName,
int nbrOfFields,
int fieldType,
int teacherAccessRight,
int studentAccessRight,
boolean addSumField)
|
void |
createForm(java.lang.String formName,
java.lang.String nbrOfForms,
java.lang.String fieldName,
java.lang.String nbrOfFields,
int fieldType,
int teacherAccessRight,
int studentAccessRight,
boolean addSumField)
Creates fieldgroup to course instance. |
void |
createFunction()
Creates evaluationfunction with attributes given earlier. |
void |
createGradeForm()
Creates fieldgroup to course instance. |
CourseInstance |
getCi()
|
int |
getFieldsInDemoForm()
|
int |
getFieldsInExamForm()
|
int |
getFieldsInTestForm()
|
java.lang.String |
getFunctionName()
|
java.lang.String |
getFunctionSummary()
Returns description of created evaluation function based on saved attributes. |
double |
getMaxDemoBonusPercent()
|
int |
getMaxDemoBonusPoints()
|
int |
getMaxDemoPoints()
|
double |
getMinDemoBonusPercent()
|
int |
getMinDemoBonusPoints()
|
int |
getNbrOfTestForms()
|
java.lang.String |
getPreFunctionSummary()
Returns description of created pre function based on saved attributes. |
void |
init()
Initializes attributes. |
boolean |
isComputeGrade()
|
boolean |
isCreditsFieldWanted()
|
boolean |
isDemoBonusWanted()
|
boolean |
isDemosWanted()
|
boolean |
isExamWanted()
|
boolean |
isExerciseBonusWanted()
|
boolean |
isExerciseCompulsory()
|
boolean |
isExerciseWanted()
|
boolean |
isGradeFormShows()
|
boolean |
isNewCi()
|
boolean |
isTestWanted()
|
boolean |
isTranslated()
|
void |
markAllChanged(boolean changed)
Marks courseinstances and fieldgroups and its fields all attributes as changed |
int |
removeForms(java.lang.String formName,
int nbrOfForms)
|
void |
saveCourseDescription()
Saves this wizard object's courseinstance's description to db. |
void |
saveFunction()
Saves created function. |
void |
saveFunction(java.lang.String name)
Saves created function to given name. |
protected void |
saveFunction(kotkabeans.WizardBean.EvaluationFunction f,
java.lang.String name)
Saves created function. |
void |
setCi(CourseInstance newCi)
|
void |
setComputeGrade(boolean b)
|
void |
setCreditsFieldWanted(boolean b)
|
void |
setDemoBonusWanted(boolean b)
|
void |
setDemosWanted(boolean b)
|
void |
setExamWanted(boolean b)
|
void |
setExerciseBonusWanted(boolean b)
|
void |
setExerciseCompulsory(boolean b)
|
void |
setExerciseWanted(boolean b)
|
void |
setFieldsInDemoForm(int nbr)
|
void |
setFieldsInDemoForm(java.lang.String nbr)
|
void |
setFieldsInExamForm(int nbr)
|
void |
setFieldsInExamForm(java.lang.String nbr)
|
void |
setFieldsInTestForm(int nbr)
|
void |
setFieldsInTestForm(java.lang.String nbr)
|
void |
setFunctionName(java.lang.String name)
Sets new name to the evaluation function. |
void |
setGradeFormShows(boolean b)
|
void |
setMaxDemoBonusPercent(double percent)
|
void |
setMaxDemoBonusPercent(java.lang.String percent)
|
void |
setMaxDemoBonusPoints(int points)
|
void |
setMaxDemoBonusPoints(java.lang.String points)
|
void |
setMaxDemoPoints(int points)
|
void |
setMaxDemoPoints(java.lang.String points)
|
void |
setMinDemoBonusPercent(double percent)
|
void |
setMinDemoBonusPercent(java.lang.String percent)
|
void |
setMinDemoBonusPoints(int points)
|
void |
setMinDemoBonusPoints(java.lang.String points)
|
void |
setNbrOfTestForms(int nbr)
|
void |
setNbrOfTestForms(java.lang.String nbr)
|
void |
setNewCi(boolean b)
|
void |
setTestWanted(boolean b)
|
void |
setUser(User u)
Sets user for this WizardBean object and translates translateable attributes if they aren't translated yet |
void |
toHtml(javax.servlet.jsp.JspWriter out)
Just for the debug Prints out this object's values of attributes |
void |
translate()
Translates translateable attributes if not translated yet. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public java.lang.String GRADE_FORM
public java.lang.String GRADE_FIELD
public java.lang.String CREDITS_FIELD
public java.lang.String POINTS_FIELD
public java.lang.String EXERCISE_FORM
public java.lang.String EXERCISE_FIELD
public java.lang.String EXERCISE_BONUS_FIELD
public java.lang.String TEST_FORM
public java.lang.String TEST_FIELD
public java.lang.String EXAM_FORM
public java.lang.String EXAM_FIELD
public java.lang.String EXAM_SUM_FIELD
public java.lang.String DEMO_FORM
public java.lang.String DEMO_FIELD
public java.lang.String DEMO_BONUS_FIELD
public java.lang.String DEMO_SUM_FIELD
public java.lang.String FUNCTION
protected boolean translated
protected boolean computeGrade
protected boolean gradeFormShows
protected boolean creditsFieldWanted
protected boolean demosWanted
protected boolean demoBonusWanted
protected boolean exerciseWanted
protected boolean exerciseCompulsory
protected boolean exerciseBonusWanted
protected boolean testWanted
protected boolean examWanted
protected boolean newCi
protected int maxDemoPoints
protected int maxDemoBonusPoints
protected int minDemoBonusPoints
protected double maxDemoBonusPercent
protected double minDemoBonusPercent
protected CourseInstance ci
protected User user
protected kotkabeans.WizardBean.EvaluationFunction function
protected int fieldsInDemoForm
protected int nbrOfTestForms
protected int fieldsInTestForm
protected int fieldsInExamForm
Constructor Detail |
public WizardBean()
init()
public WizardBean(User u)
setUser(User)
,
init()
Method Detail |
public void setUser(User u)
translate()
public CourseInstance getCi()
public void setCi(CourseInstance newCi)
public boolean isComputeGrade()
public boolean isGradeFormShows()
public boolean isCreditsFieldWanted()
public boolean isDemosWanted()
public boolean isDemoBonusWanted()
public boolean isExerciseWanted()
public boolean isExerciseCompulsory()
public boolean isExerciseBonusWanted()
public boolean isTestWanted()
public boolean isExamWanted()
public int getMaxDemoPoints()
public int getMaxDemoBonusPoints()
public int getMinDemoBonusPoints()
public double getMaxDemoBonusPercent()
public double getMinDemoBonusPercent()
public void setComputeGrade(boolean b)
public void setGradeFormShows(boolean b)
public void setCreditsFieldWanted(boolean b)
public void setDemosWanted(boolean b)
public void setDemoBonusWanted(boolean b)
public void setMaxDemoPoints(int points)
public void setMaxDemoPoints(java.lang.String points)
public void setMaxDemoBonusPoints(int points)
public void setMaxDemoBonusPoints(java.lang.String points)
public void setMinDemoBonusPoints(int points)
public void setMinDemoBonusPoints(java.lang.String points)
public void setMaxDemoBonusPercent(double percent)
public void setMaxDemoBonusPercent(java.lang.String percent)
public void setMinDemoBonusPercent(double percent)
public void setMinDemoBonusPercent(java.lang.String percent)
public void setExerciseWanted(boolean b)
public void setExerciseCompulsory(boolean b)
public void setExerciseBonusWanted(boolean b)
public void setTestWanted(boolean b)
public void setExamWanted(boolean b)
public void setNewCi(boolean b)
public boolean isNewCi()
public void setFieldsInDemoForm(int nbr)
public void setFieldsInDemoForm(java.lang.String nbr)
public int getFieldsInDemoForm()
public void setNbrOfTestForms(int nbr)
public void setNbrOfTestForms(java.lang.String nbr)
public int getNbrOfTestForms()
public void setFieldsInTestForm(int nbr)
public void setFieldsInTestForm(java.lang.String nbr)
public int getFieldsInTestForm()
public void setFieldsInExamForm(int nbr)
public void setFieldsInExamForm(java.lang.String nbr)
public int getFieldsInExamForm()
public boolean isTranslated()
public void toHtml(javax.servlet.jsp.JspWriter out) throws java.io.IOException
java.io.IOException
public void init()
translate()
public void translate() throws java.lang.Exception
java.lang.Exception
- if user is not set.isTranslated()
public void markAllChanged(boolean changed)
#CourseInstance.setAttributesChanged(boolean)
,
#FieldGroup.setAllChanged(boolean)
,
#Field.setAllChanged(boolean)
public void saveCourseDescription()
public void createGradeForm() throws java.lang.Exception
java.lang.Exception
#CourseInstance.createFieldGroup(String,int,int)
public void createForm(java.lang.String formName, java.lang.String nbrOfForms, java.lang.String fieldName, java.lang.String nbrOfFields, int fieldType, int teacherAccessRight, int studentAccessRight, boolean addSumField) throws java.lang.Exception
formName
- nbrOfForms
- fieldName
- nbrOfFields
- fieldType
- teacherAccessRight
- studentAccessRight
-
java.lang.Exception
#CourseInstance.createFieldGroup(String,int,int)
,
addFieldToForm(FieldGroup,String,int)
public void createForm(java.lang.String formName, int nbrOfForms, java.lang.String fieldName, java.lang.String nbrOfFields, int fieldType, int teacherAccessRight, int studentAccessRight, boolean addSumField) throws java.lang.Exception
java.lang.Exception
public void createForm(java.lang.String formName, java.lang.String nbrOfForms, java.lang.String fieldName, int nbrOfFields, int fieldType, int teacherAccessRight, int studentAccessRight, boolean addSumField) throws java.lang.Exception
java.lang.Exception
public void createForm(java.lang.String formName, int nbrOfForms, java.lang.String fieldName, int nbrOfFields, int fieldType, int teacherAccessRight, int studentAccessRight, boolean addSumField) throws java.lang.Exception
java.lang.Exception
public int removeForms(java.lang.String formName, int nbrOfForms)
public void addFieldToForm(java.lang.String formName, java.lang.String fieldName, int fieldType) throws java.lang.Exception
formName
- name of form where to add new fieldfieldName
- name of field to addfieldType
- type of field to add
java.lang.Exception
FieldType
public void addFieldToForm(FieldGroup form, java.lang.String fieldName, int fieldType) throws java.lang.Exception
form
- form where to add new fieldfieldName
- name of field to addfieldType
- type of field to add
java.lang.Exception
#FieldType
public void createFunction() throws java.lang.Exception
java.lang.Exception
- if courseinstance is not in db yetisNewCi()
public void saveFunction(java.lang.String name) throws java.lang.Exception
java.lang.Exception
public void saveFunction() throws java.lang.Exception
java.lang.Exception
protected void saveFunction(kotkabeans.WizardBean.EvaluationFunction f, java.lang.String name) throws java.lang.Exception
java.lang.Exception
- is something goes wrong#cSQL.hasCourseFunction(String,String)
,
public java.lang.String getFunctionSummary()
public java.lang.String getPreFunctionSummary()
public java.lang.String getFunctionName()
public void setFunctionName(java.lang.String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |