Interface ScreenSleepListener
- All Superinterfaces:
-
EventListener
,SystemEventListener
public interface ScreenSleepListener extends SystemEventListener
Implementors receive notification when the displays attached to the system have entered power save sleep.
This notification is useful for discontinuing a costly animation, or indicating that the user is no longer present on a network service.
- Since:
- 9
Method Summary
Modifier and Type | Method | Description |
---|---|---|
void |
screenAboutToSleep |
Called when the system displays have entered power save sleep. |
void |
screenAwoke |
Called when the system displays have awoken from power save sleep. |
Method Details
screenAboutToSleep
void screenAboutToSleep(ScreenSleepEvent e)
Called when the system displays have entered power save sleep.
- Parameters:
-
e
- the screen sleep event
screenAwoke
void screenAwoke(ScreenSleepEvent e)
Called when the system displays have awoken from power save sleep.
- Parameters:
-
e
- the screen sleep event
© 1993, 2021, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/java/awt/desktop/ScreenSleepListener.html