APIdia Launch Partner
Top Description Methods
java.awt.desktop

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 TypeMethod and Description
public void
screenAboutToSleep(ScreenSleepEvent
the screen sleep event
e
)

Called when the system displays have entered power save sleep.

public void
screenAwoke(ScreenSleepEvent
the screen sleep event
e
)

Called when the system displays have awoken from power save sleep.

Method Detail

screenAboutToSleepback to summary
public void screenAboutToSleep(ScreenSleepEvent e)

Called when the system displays have entered power save sleep.

Parameters
e:ScreenSleepEvent

the screen sleep event

screenAwokeback to summary
public void screenAwoke(ScreenSleepEvent e)

Called when the system displays have awoken from power save sleep.

Parameters
e:ScreenSleepEvent

the screen sleep event