protected open fun onBeforeDetach(panelView: View!, revertChanges: Boolean): Int
Overrides AbstractToolPanel.onBeforeDetach