Focus changed interface of Switch class