org.wizard4j.monitor
Interface FlowchartMonitor

All Known Implementing Classes:
FlowchartMonitorDummy

public interface FlowchartMonitor

An application that wants to monitor the flowchart sessions can develop a FlowchartMonitor that must implement this interface.

To activate the monitoring one needs to set the Monitor via FlowchartSession.setFlowchartMonitor(FlowchartMonitor).


Method Summary
 void eventCancel()
          This method is called by a monitored flowchart session when the session is canceled by the user .
 void eventEnd()
          This method is called by a monitored flowchart session each time a flowchart is finished.
 void eventGotoIndex()
          This method is called by a monitored flowchart session each time the user performs a 'index' action.
 void eventGotoState()
          This method is called by a monitored flowchart session each time the user performs a 'state' action.
 void eventNext()
          This method is called by a monitored flowchart session each time the user performs a 'next' action.
 void eventPrevious()
          This method is called by a monitored flowchart session each time the user performs a 'previous' action.
 void eventRate(int rating)
          This method is called by a monitored flowchart session each time the user performs a 'rate' action.
 void eventSave(ResultNode rootResultNode)
          This method is called by a monitored flowchart session each time a 'save' action is performed (either an explicit save by the user or an automatic save when automaticSave is enabled).
 void eventStart()
          This method is called by a monitored flowchart session each time a flowchart is (re)started by the user.
 int getMaxRating()
           
 int getMinRating()
           
 

Method Detail

eventStart

void eventStart()
This method is called by a monitored flowchart session each time a flowchart is (re)started by the user.


eventEnd

void eventEnd()
This method is called by a monitored flowchart session each time a flowchart is finished. Note that during a single session a flowchart can be executed multiple times.


eventCancel

void eventCancel()
This method is called by a monitored flowchart session when the session is canceled by the user .


eventNext

void eventNext()
This method is called by a monitored flowchart session each time the user performs a 'next' action.


eventPrevious

void eventPrevious()
This method is called by a monitored flowchart session each time the user performs a 'previous' action.


eventGotoIndex

void eventGotoIndex()
This method is called by a monitored flowchart session each time the user performs a 'index' action.


eventGotoState

void eventGotoState()
This method is called by a monitored flowchart session each time the user performs a 'state' action.


eventSave

void eventSave(ResultNode rootResultNode)
This method is called by a monitored flowchart session each time a 'save' action is performed (either an explicit save by the user or an automatic save when automaticSave is enabled).


eventRate

void eventRate(int rating)
This method is called by a monitored flowchart session each time the user performs a 'rate' action.


getMinRating

int getMinRating()
Returns:
minimum value of a rating

getMaxRating

int getMaxRating()
Returns:
maximum value of a rating