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
squareChanged
void squareChanged(ColorSquare sq,
int oldValue,
int newValue)
- Called by
ColorSquare
when clicked and value changes.
- Parameters:
sq
- The square being changedoldValue
- The previous value before clickingnewValue
- The new value after clicking; for boolean squares,
unchecked/no is 0 and checked/yes is 1.