Package com.inductiveautomation.rm.swing
Class RMActivationAdapter
java.lang.Object
com.inductiveautomation.rm.swing.RMActivationAdapter
- All Implemented Interfaces:
AWTEventListener
,EventListener
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
ConstructorsConstructorDescriptionRMActivationAdapter
(Window aWindow, boolean hideOnDeactivate) Creates a new activation adaptor for given window. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Called when app activates.void
Called when app deactivates.void
eventDispatched
(AWTEvent anEvent) AWTEventListener method to catch window activated/deactivated and interpret as app/modal activate/deactivate.void
Called when a modal window is activated.void
Called when a modal window is deactivated.void
setEnabled
(boolean aValue) Sets the adapter to be installed or removed from toolkit.
-
Constructor Details
-
RMActivationAdapter
Creates a new activation adaptor for given window.
-
-
Method Details
-
setEnabled
public void setEnabled(boolean aValue) Sets the adapter to be installed or removed from toolkit. -
eventDispatched
AWTEventListener method to catch window activated/deactivated and interpret as app/modal activate/deactivate.- Specified by:
eventDispatched
in interfaceAWTEventListener
-
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.
-