Enhanced PaletteView to call back a listener.