org.almendra.janet.cas.demo.fibonacci
Class FibonacciCallbackHandler

java.lang.Object
  extended by org.almendra.janet.cas.demo.fibonacci.FibonacciCallbackHandler
All Implemented Interfaces:
ICallbackHandler, IHistorizableCallbackHandler, IHistorizable

public class FibonacciCallbackHandler
extends java.lang.Object
implements IHistorizableCallbackHandler

Author:
Oliver

Field Summary
protected  java.util.List historyItems
           
protected  LoggerAccessor logAccessor
           
protected  int nthFibonacciNumber
           
protected  JTextPaneHolder textPaneHolder
           
protected  HistoryTotalsCreator totalsCreator
           
 
Constructor Summary
FibonacciCallbackHandler(int nthFibonacciNumber, LoggerAccessor logAccessor, HistoryTotalsCreator totalsCreator, JTextPaneHolder textPaneHolderOrNull)
          Creates a new FibonacciCallbackHandler object.
 
Method Summary
 void addHistoryItems(java.util.List items)
           
 void createHistorySummary(IHistorySummary historySummary)
           
 java.util.List getHistoryItems()
           
 void handle(java.lang.Object callbackParameter)
           
 void handle(java.lang.Object parameter, java.util.List historyItems)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logAccessor

protected LoggerAccessor logAccessor

historyItems

protected java.util.List historyItems

totalsCreator

protected HistoryTotalsCreator totalsCreator

textPaneHolder

protected JTextPaneHolder textPaneHolder

nthFibonacciNumber

protected int nthFibonacciNumber
Constructor Detail

FibonacciCallbackHandler

public FibonacciCallbackHandler(int nthFibonacciNumber,
                                LoggerAccessor logAccessor,
                                HistoryTotalsCreator totalsCreator,
                                JTextPaneHolder textPaneHolderOrNull)
Creates a new FibonacciCallbackHandler object.

Method Detail

handle

public void handle(java.lang.Object callbackParameter)
Specified by:
handle in interface ICallbackHandler

getHistoryItems

public java.util.List getHistoryItems()
Specified by:
getHistoryItems in interface IHistorizable

addHistoryItems

public void addHistoryItems(java.util.List items)
Specified by:
addHistoryItems in interface IHistorizable

createHistorySummary

public void createHistorySummary(IHistorySummary historySummary)
Specified by:
createHistorySummary in interface IHistorizable

handle

public void handle(java.lang.Object parameter,
                   java.util.List historyItems)
Specified by:
handle in interface IHistorizableCallbackHandler