Class RMActivationAdapter

  • All Implemented Interfaces:
    java.awt.event.AWTEventListener, java.util.EventListener

    public class RMActivationAdapter
    extends java.lang.Object
    implements java.awt.event.AWTEventListener
    An AWTEventListener to listen for app activate/deactivate and modal dialog activate/deactivate to hide or show hide-on-deactivate windows and disable always-on-top for always-on-top windows.
    • Constructor Summary

      Constructors 
      Constructor Description
      RMActivationAdapter​(java.awt.Window aWindow, boolean hideOnDeactivate)
      Creates a new activation adaptor for given window.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void appActivated()
      Called when app activates.
      void appDeactivated()
      Called when app deactivates.
      void eventDispatched​(java.awt.AWTEvent anEvent)
      AWTEventListener method to catch window activated/deactivated and interpret as app/modal activate/deactivate.
      void modalActivated()
      Called when a modal window is activated.
      void modalDeactivated()
      Called when a modal window is deactivated.
      void setEnabled​(boolean aValue)
      Sets the adapter to be installed or removed from toolkit.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RMActivationAdapter

        public RMActivationAdapter​(java.awt.Window aWindow,
                                   boolean hideOnDeactivate)
        Creates a new activation adaptor for given window.
    • Method Detail

      • setEnabled

        public void setEnabled​(boolean aValue)
        Sets the adapter to be installed or removed from toolkit.
      • eventDispatched

        public void eventDispatched​(java.awt.AWTEvent anEvent)
        AWTEventListener method to catch window activated/deactivated and interpret as app/modal activate/deactivate.
        Specified by:
        eventDispatched in interface java.awt.event.AWTEventListener
      • appActivated

        public void appActivated()
        Called when app activates.
      • appDeactivated

        public void appDeactivated()
        Called when app deactivates.
      • modalActivated

        public void modalActivated()
        Called when a modal window is activated.
      • modalDeactivated

        public void modalDeactivated()
        Called when a modal window is deactivated.