< prev index next >

src/java.desktop/share/classes/java/awt/desktop/ScreenSleepListener.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 24,48 **** */ package java.awt.desktop; /** ! * 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 */ public interface ScreenSleepListener extends SystemEventListener { /** * Called when the system displays have entered power save sleep. * @param e the screen sleep event */ ! public void screenAboutToSleep(final ScreenSleepEvent e); /** * Called when the system displays have awoken from power save sleep. * @param e the screen sleep event */ ! public void screenAwoke(final ScreenSleepEvent e); } --- 24,52 ---- */ package java.awt.desktop; /** ! * Implementors receive notification when the displays attached to the system ! * have entered power save sleep. ! * <p> ! * This notification is useful for discontinuing a costly animation, or ! * indicating that the user is no longer present on a network service. * * @since 9 */ public interface ScreenSleepListener extends SystemEventListener { /** * Called when the system displays have entered power save sleep. + * * @param e the screen sleep event */ ! public void screenAboutToSleep(ScreenSleepEvent e); /** * Called when the system displays have awoken from power save sleep. + * * @param e the screen sleep event */ ! public void screenAwoke(ScreenSleepEvent e); }
< prev index next >