com.jp.comp.calculator
Interface CalculatorListener

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
CalculatorField, CalculatorPanel

public interface CalculatorListener
extends java.util.EventListener

A listener interface for receiving Calculator's events. The class that is interested in processing a Calculator event implements this interface, and the object created with that class is registered with a Calculator, using its addCalculatorListener method. When an action event occurs, that object's particular method is invoked


Method Summary
 void fractionDigitsChanged(CalculatorEvent anEvent)
          Invoked when a change in the number of fraction digits occurs
 void resultChanged(CalculatorEvent anEvent)
          Invoked when a change in the calculation result occurs
 

Method Detail

resultChanged

public void resultChanged(CalculatorEvent anEvent)
Invoked when a change in the calculation result occurs

Parameters:
anEvent - copy of the class event

fractionDigitsChanged

public void fractionDigitsChanged(CalculatorEvent anEvent)
Invoked when a change in the number of fraction digits occurs

Parameters:
anEvent - copy of the class event