org.formulacompiler.runtime.event
Class CellComputationEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.formulacompiler.runtime.event.CellComputationEvent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
SpreadsheetCellComputationEvent

public class CellComputationEvent
extends java.util.EventObject

This event is emitted after a cell has been computed.

Author:
Vladimir Korenev
See Also:
CellComputationListener, Computation.Config.cellComputationListener, Serialized Form

Constructor Summary
CellComputationEvent(java.lang.Object _cell, java.lang.Object _value, boolean _input, boolean _output)
          Creates a new event.
 
Method Summary
 java.lang.Object getValue()
          Returns the computed cell value.
 boolean isInput()
          Reports if a cell is bound to an input method.
 boolean isOutput()
          Reports if a cell is bound to an output method.
 java.lang.String toString()
           
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CellComputationEvent

public CellComputationEvent(java.lang.Object _cell,
                            java.lang.Object _value,
                            boolean _input,
                            boolean _output)
Creates a new event.

Parameters:
_cell - the cell which contains the computation.
_value - the computed value.
_input - true if the cell is bound to an input method, false otherwise.
_output - true if the cell is bound to an output method, false otherwise.
Method Detail

getValue

public java.lang.Object getValue()
Returns the computed cell value.

Returns:
computed value.

isInput

public boolean isInput()
Reports if a cell is bound to an input method.

Returns:
true if the cell is bound to an input method, false otherwise.

isOutput

public boolean isOutput()
Reports if a cell is bound to an output method.

Returns:
true if the cell is bound to an output method, false otherwise.

toString

public java.lang.String toString()
Overrides:
toString in class java.util.EventObject