org.telscenter.pas.steps
Class Pedraw

java.lang.Object
  extended by java.beans.beancontext.BeanContextChildSupport
      extended by org.telscenter.pas.beans.PasStep
          extended by org.telscenter.pas.steps.Pedraw
All Implemented Interfaces:
java.beans.beancontext.BeanContextChild, java.beans.beancontext.BeanContextChildComponentProxy, java.beans.beancontext.BeanContextServiceRevokedListener, java.beans.beancontext.BeanContextServicesListener, java.io.Serializable, java.util.EventListener, net.sf.sail.common.beansupport.ITitleAware, IAuthorNotation, IHelp, IWorkReporter, IntroductionHtmlAware

public class Pedraw
extends PasStep
implements IWorkReporter, IntroductionHtmlAware

Implementation of the Pas step type, PasDraw 2.

Author:
turadg
See Also:
Serialized Form

Field Summary
static java.net.URL errorImageURL
           
 
Fields inherited from class java.beans.beancontext.BeanContextChildSupport
beanContext, beanContextChildPeer, pcSupport, rejectedSetBCOnce, vcSupport
 
Constructor Summary
Pedraw()
           
 
Method Summary
protected  void consumeService(java.beans.beancontext.BeanContextServices bcs, java.lang.Class<? extends java.lang.Object> serviceClass)
           
 java.awt.Component getComponent()
           
 java.util.List<javax.swing.JLabel> getCurrentAnswers()
           
 java.util.List<java.lang.String> getCurrentPrompts()
           
 java.util.List<javax.swing.JPanel> getCurrentStepParts()
           
 java.util.Map<java.lang.String,java.lang.String> getEntityToPromptMap()
          Returns a mapping(s) for this step Note that steps like Note can have multiple Rims because if it were a multi-part note step.
 java.lang.String getIntroductionHtml()
           
 java.lang.Integer getPossibleScore()
           
 javax.swing.JPanel getReportForLearner()
          A JPanel presenting a report of the learner's work suitable for the learner themself.
 javax.swing.JPanel getReportForLearner(NavigateAction navigateAction)
          for special navigation options
 com.lowagie.text.pdf.PdfPCell getReportForLearnerPDF()
           
 com.lowagie.text.pdf.PdfPCell getReportForLearnerPDF(net.sf.sail.core.beans.service.AnnotationService annotationService)
           
 javax.swing.JPanel getReportForLearnerWithAnnotations()
           
 javax.swing.JPanel getReportForLearnerWithAnnotations(NavigateAction navigateAction)
          for special navigation options
 net.sf.sail.core.entity.Rim<java.lang.String> getStarterRim()
           
 java.lang.String getType()
          Replaced by hoverString property
 net.sf.sail.core.entity.Rim<java.lang.String> getWorkRim()
           
protected  void initializePasStep(java.beans.beancontext.BeanContextServices bcs)
           Called by initializeBeanContextResources() during the unmarshalling phase, before the assembly phase.
 void initStepParts()
           
 void setIntroductionHtml(java.lang.String introductionHtml)
           
 void setPossibleScore(java.lang.Integer possibleScore)
           
 void setStarterRim(net.sf.sail.core.entity.Rim<java.lang.String> starterRim)
           
 void setWorkRim(net.sf.sail.core.entity.Rim<java.lang.String> workRim)
           
 
Methods inherited from class org.telscenter.pas.beans.PasStep
addPropertyChangeListener, afterComponentAdded, beforeSessionStart, getAuthorNotes, getHelpId, getHintSet, getHoverString, getTitle, hasHints, initializeBeanContextResources, removePropertyChangeListener, serviceAvailable, setAuthorNotes, setBeanContext, setHintSet, setHoverString, setTitle, stepEnter, stepExit, toString
 
Methods inherited from class java.beans.beancontext.BeanContextChildSupport
addPropertyChangeListener, addVetoableChangeListener, firePropertyChange, fireVetoableChange, getBeanContext, getBeanContextChildPeer, isDelegated, releaseBeanContextResources, removePropertyChangeListener, removeVetoableChangeListener, serviceRevoked, validatePendingSetBeanContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

errorImageURL

public static final java.net.URL errorImageURL
Constructor Detail

Pedraw

public Pedraw()
Method Detail

initializePasStep

protected void initializePasStep(java.beans.beancontext.BeanContextServices bcs)
Description copied from class: PasStep

Called by initializeBeanContextResources() during the unmarshalling phase, before the assembly phase. Thus, at this point the object can't make use of anything outside its own context Pod.

By default, does nothing. Override in child.

Overrides:
initializePasStep in class PasStep

getType

public java.lang.String getType()
Description copied from class: PasStep
Replaced by hoverString property

Overrides:
getType in class PasStep
Returns:

consumeService

protected void consumeService(java.beans.beancontext.BeanContextServices bcs,
                              java.lang.Class<? extends java.lang.Object> serviceClass)
Overrides:
consumeService in class PasStep

getComponent

public java.awt.Component getComponent()
Specified by:
getComponent in interface java.beans.beancontext.BeanContextChildComponentProxy

getIntroductionHtml

public java.lang.String getIntroductionHtml()
Specified by:
getIntroductionHtml in interface IntroductionHtmlAware

setIntroductionHtml

public void setIntroductionHtml(java.lang.String introductionHtml)
Specified by:
setIntroductionHtml in interface IntroductionHtmlAware

getStarterRim

public net.sf.sail.core.entity.Rim<java.lang.String> getStarterRim()

setStarterRim

public void setStarterRim(net.sf.sail.core.entity.Rim<java.lang.String> starterRim)

getWorkRim

public net.sf.sail.core.entity.Rim<java.lang.String> getWorkRim()

setWorkRim

public void setWorkRim(net.sf.sail.core.entity.Rim<java.lang.String> workRim)

getReportForLearner

public javax.swing.JPanel getReportForLearner()
Description copied from interface: IWorkReporter
A JPanel presenting a report of the learner's work suitable for the learner themself.

Specified by:
getReportForLearner in interface IWorkReporter
Returns:

getReportForLearnerPDF

public com.lowagie.text.pdf.PdfPCell getReportForLearnerPDF()

getReportForLearnerWithAnnotations

public javax.swing.JPanel getReportForLearnerWithAnnotations()
Specified by:
getReportForLearnerWithAnnotations in interface IWorkReporter

getCurrentAnswers

public java.util.List<javax.swing.JLabel> getCurrentAnswers()
Specified by:
getCurrentAnswers in interface IWorkReporter

getCurrentPrompts

public java.util.List<java.lang.String> getCurrentPrompts()
Specified by:
getCurrentPrompts in interface IWorkReporter

getCurrentStepParts

public java.util.List<javax.swing.JPanel> getCurrentStepParts()
Specified by:
getCurrentStepParts in interface IWorkReporter

initStepParts

public void initStepParts()
Specified by:
initStepParts in interface IWorkReporter

getEntityToPromptMap

public java.util.Map<java.lang.String,java.lang.String> getEntityToPromptMap()
Description copied from interface: IWorkReporter
Returns a mapping(s) for this step Note that steps like Note can have multiple Rims because if it were a multi-part note step.

Specified by:
getEntityToPromptMap in interface IWorkReporter
Returns:
Map rimname<->prompt mapping for this step.

getPossibleScore

public java.lang.Integer getPossibleScore()
Specified by:
getPossibleScore in interface IWorkReporter

setPossibleScore

public void setPossibleScore(java.lang.Integer possibleScore)
Specified by:
setPossibleScore in interface IWorkReporter

getReportForLearner

public javax.swing.JPanel getReportForLearner(NavigateAction navigateAction)
Description copied from interface: IWorkReporter
for special navigation options

Specified by:
getReportForLearner in interface IWorkReporter
Parameters:
navigateAction - - navigates the project to that step
Returns:

getReportForLearnerWithAnnotations

public javax.swing.JPanel getReportForLearnerWithAnnotations(NavigateAction navigateAction)
Description copied from interface: IWorkReporter
for special navigation options

Specified by:
getReportForLearnerWithAnnotations in interface IWorkReporter
Parameters:
navigateAction - - navigates the project to that step
Returns:

getReportForLearnerPDF

public com.lowagie.text.pdf.PdfPCell getReportForLearnerPDF(net.sf.sail.core.beans.service.AnnotationService annotationService)
Specified by:
getReportForLearnerPDF in interface IWorkReporter


Copyright © 2004-2008 TELS Center. All Rights Reserved.