How to associate events to the preview/design mode button

This is really no way to be notified of this event, but you can check it through FPMISystem.getMode()