protected boolean isEventDisabled(XEvent e){
  if (enableLog.isLoggable(PlatformLogger.Level.FINEST)) {
    enableLog.finest("Component is {1}, checking for disabled event {0}",e,(isEnabled() ? "enabled" : "disable"));
  }
  if (!isEnabled()) {
switch (e.get_type()) {
case XConstants.ButtonPress:
case XConstants.ButtonRelease:
case XConstants.KeyPress:
case XConstants.KeyRelease:
case XConstants.EnterNotify:
case XConstants.LeaveNotify:
case XConstants.MotionNotify:
      if (enableLog.isLoggable(PlatformLogger.Level.FINER)) {
        enableLog.finer("Event {0} is disable",e);
      }
    return true;
}
}
switch (e.get_type()) {
case XConstants.MapNotify:
case XConstants.UnmapNotify:
return true;
}
return super.isEventDisabled(e);
}

protected boolean isEventDisabled ( XEvent e ) { if ( enableLog . isLoggable ( PlatformLogger . Level . FINEST ) ) { enableLog . finest ( "Component is {1}, checking for disabled event {0}" , e , ( isEnabled ( ) ? "enabled" : "disable" ) ) ; } if ( ! isEnabled ( ) ) { switch ( e . get_type ( ) ) { case XConstants . ButtonPress : case XConstants . ButtonRelease : case XConstants . KeyPress : case XConstants . KeyRelease : case XConstants . EnterNotify : case XConstants . LeaveNotify : case XConstants . MotionNotify : if ( enableLog . isLoggable ( PlatformLogger . Level . FINER ) ) { enableLog . finer ( "Event {0} is disable" , e ) ; } return true ; } } switch ( e . get_type ( ) ) { case XConstants . MapNotify : case XConstants . UnmapNotify : return true ; } return super . isEventDisabled ( e ) ; }
returns true if this event is disabled and shouldn ' t be processed by window currently if target component is disabled the following event will be disabled on window : buttonpress , buttonrelease , keypress , keyrelease , enternotify , leavenotify , motionnotify
