org.sakaiproject.tool.assessment.ui.listener.author
Class ItemAddListener

java.lang.Object
  extended by org.sakaiproject.tool.assessment.ui.listener.author.ItemAddListener
All Implemented Interfaces:
EventListener, javax.faces.event.ActionListener, javax.faces.event.FacesListener

public class ItemAddListener
extends Object
implements javax.faces.event.ActionListener

Title: Samigo

Description: Sakai Assessment Manager

Organization: Sakai Project


Constructor Summary
ItemAddListener()
           
 
Method Summary
 void checkMC(boolean isSingleSelect)
           
 boolean isColumnslessthan2()
           
 boolean isCorrectChoice(ItemBean bean, String label)
          returns if the multile choice label is the correct choice, bean.getCorrAnswers() returns a string[] of labels bean.getCorrAnswer() returns a string of label
 boolean isErrorFIB()
           
 boolean isErrorFIN()
           
 boolean isRowEmpty()
           
protected  HashSet prepareMetaData(ItemFacade item, ItemBean bean)
           
protected  Set preparePublishedMetaData(ItemFacade item, ItemBean bean)
           
 void processAction(javax.faces.event.ActionEvent ae)
          Standard process action method.
 void saveItem(ItemAuthorBean itemauthor)
           
 void shiftSequences(ItemService delegate, SectionFacade sectfacade, Integer currSeq)
          shift sequence number down when inserting or reordering
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemAddListener

public ItemAddListener()
Method Detail

processAction

public void processAction(javax.faces.event.ActionEvent ae)
                   throws javax.faces.event.AbortProcessingException
Standard process action method.

Specified by:
processAction in interface javax.faces.event.ActionListener
Parameters:
ae - ActionEvent
Throws:
javax.faces.event.AbortProcessingException

checkMC

public void checkMC(boolean isSingleSelect)

isErrorFIB

public boolean isErrorFIB()

isErrorFIN

public boolean isErrorFIN()

isRowEmpty

public boolean isRowEmpty()

isColumnslessthan2

public boolean isColumnslessthan2()

saveItem

public void saveItem(ItemAuthorBean itemauthor)
              throws FinFormatException
Throws:
FinFormatException

prepareMetaData

protected HashSet prepareMetaData(ItemFacade item,
                                  ItemBean bean)

preparePublishedMetaData

protected Set preparePublishedMetaData(ItemFacade item,
                                       ItemBean bean)

isCorrectChoice

public boolean isCorrectChoice(ItemBean bean,
                               String label)
returns if the multile choice label is the correct choice, bean.getCorrAnswers() returns a string[] of labels bean.getCorrAnswer() returns a string of label


shiftSequences

public void shiftSequences(ItemService delegate,
                           SectionFacade sectfacade,
                           Integer currSeq)
shift sequence number down when inserting or reordering



Copyright © 2005-2012 Sakai Project. All Rights Reserved.