1 /*** 2 * Created on Aug 5, 2005, Copyright UC Regents 3 */ 4 package org.telscenter.pas.steps; 5 6 import java.awt.Component; 7 import java.util.List; 8 import java.util.logging.Logger; 9 10 import javax.swing.JLabel; 11 import javax.swing.JPanel; 12 13 import org.telscenter.pas.beans.IWorkReporter; 14 import org.telscenter.pas.steps.actions.LeaveStudentAssessmentAction; 15 16 import com.lowagie.text.pdf.PdfPCell; 17 18 /*** 19 * @author turadg 20 */ 21 public class StudentAssessment extends Assessment implements 22 IntroductionHtmlAware, IWorkReporter { 23 /*** 24 * Logger for this class 25 */ 26 static final Logger logger = Logger 27 .getLogger(StudentAssessment.class.getName()); 28 29 private static final long serialVersionUID = 1L; 30 31 32 private String introductionHtml; 33 34 35 private StudentAssessmentUI studentAssessmentUI; 36 37 38 public StudentAssessment() { 39 } 40 41 public String getIntroductionHtml() { 42 return introductionHtml; 43 } 44 45 public void setIntroductionHtml(String introductionHtml) { 46 Object old = this.introductionHtml; 47 this.introductionHtml = introductionHtml; 48 pcSupport.firePropertyChange("introductionHtml", old, introductionHtml); 49 } 50 51 public Component getComponent() { 52 53 studentAssessmentUI = new StudentAssessmentUI(this); 54 55 return studentAssessmentUI; 56 } 57 58 public String getType() { 59 return "Student Assessment"; 60 } 61 62 63 64 public void initStepParts(){ 65 super.initStepParts(); 66 } 67 68 public List<JPanel> getCurrentStepParts(){ 69 return super.getCurrentStepParts(); 70 } 71 72 public List<String> getCurrentPrompts(){ 73 return super.getCurrentPrompts(); 74 } 75 76 public List<JLabel> getCurrentAnswers(){ 77 return super.getCurrentAnswers(); 78 } 79 80 public StudentAssessmentUI getStudentAssessmentUI() { 81 return studentAssessmentUI; 82 } 83 84 85 86 /*** 87 * @return the leaveAction 88 */ 89 public LeaveStudentAssessmentAction getLeaveAction() { 90 return studentAssessmentUI.getLeaveAction(); 91 } 92 93 94 }