APIdia Launch Partner
Top Description Methods
java.awt.desktop

public Interface UserSessionListener

extends SystemEventListener

Implementors receive notification when the user session changes.

This notification is useful for discontinuing a costly animation, or indicating that the user is no longer present on a network service.

Some systems may provide a reason of the user session change.

Since
9
See Also
UserSessionEvent.Reason#UNSPECIFIED, UserSessionEvent.Reason#CONSOLE, UserSessionEvent.Reason#REMOTE, UserSessionEvent.Reason#LOCK

Method Summary

Modifier and TypeMethod and Description
public void
userSessionActivated(UserSessionEvent
the user session switch event
e
)

Called when the user session has been switched to.

public void
userSessionDeactivated(UserSessionEvent
the user session switch event
e
)

Called when the user session has been switched away.

Method Detail

userSessionActivatedback to summary
public void userSessionActivated(UserSessionEvent e)

Called when the user session has been switched to.

Parameters
e:UserSessionEvent

the user session switch event

userSessionDeactivatedback to summary
public void userSessionDeactivated(UserSessionEvent e)

Called when the user session has been switched away.

Parameters
e:UserSessionEvent

the user session switch event