org.telscenter.pas.steps
Class Generic

java.lang.Object
  extended by java.beans.beancontext.BeanContextChildSupport
      extended by org.telscenter.pas.beans.PasStep
          extended by org.telscenter.pas.steps.Generic
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

public class Generic
extends PasStep
implements IWorkReporter

A generic Pas step type, used for testing and demonstration purposes.

Author:
turadg
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.beans.beancontext.BeanContextChildSupport
beanContext, beanContextChildPeer, pcSupport, rejectedSetBCOnce, vcSupport
 
Constructor Summary
Generic()
           
 
Method Summary
 java.awt.Color getColor1()
           
 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.Date getDate1()
           
 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.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(net.sf.sail.core.beans.service.AnnotationService annotationService)
           
 com.lowagie.text.pdf.PdfPCell getReportForLearnerPDF(boolean withAnnotations)
           
 javax.swing.JPanel getReportForLearnerWithAnnotations()
           
 javax.swing.JPanel getReportForLearnerWithAnnotations(NavigateAction navigateAction)
          for special navigation options
 java.lang.String getString1()
           
 void initStepParts()
           
 void setColor1(java.awt.Color color1)
           
 void setDate1(java.util.Date date1)
           
 void setPossibleScore(java.lang.Integer possibleScore)
           
 void setString1(java.lang.String string1)
           
 
Methods inherited from class org.telscenter.pas.beans.PasStep
addPropertyChangeListener, afterComponentAdded, beforeSessionStart, consumeService, getAuthorNotes, getHelpId, getHintSet, getHoverString, getTitle, getType, hasHints, initializeBeanContextResources, initializePasStep, 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
 

Constructor Detail

Generic

public Generic()
Method Detail

getColor1

public java.awt.Color getColor1()

setColor1

public void setColor1(java.awt.Color color1)

getDate1

public java.util.Date getDate1()

setDate1

public void setDate1(java.util.Date date1)

getString1

public java.lang.String getString1()

setString1

public void setString1(java.lang.String string1)

getComponent

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

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(boolean withAnnotations)

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.
See Also:
IWorkReporter.getEntityToPromptMap()

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.