soc.client
Interface ColorSquareListener

All Known Implementing Classes:
SquaresPanel

public interface ColorSquareListener

Listen for changes to the value of the color square, when a user clicks or a setter is called.

Author:
Jeremy D Monin

Method Summary
 void squareChanged(ColorSquare sq, int oldValue, int newValue)
          Called by ColorSquare when clicked and value changes.
 

Method Detail

squareChanged

void squareChanged(ColorSquare sq,
                   int oldValue,
                   int newValue)
Called by ColorSquare when clicked and value changes.

Parameters:
sq - The square being changed
oldValue - The previous value before clicking
newValue - The new value after clicking; for boolean squares, unchecked/no is 0 and checked/yes is 1.