Serializable
public final class UserSessionEvent extends AppEvent
Modifier and Type | Class | Description |
---|---|---|
static enum |
UserSessionEvent.Reason |
Kinds of available reasons of user session change. |
source
Constructor | Description |
---|---|
UserSessionEvent |
Constructs a UserSessionEvent . |
Modifier and Type | Method | Description |
---|---|---|
UserSessionEvent.Reason |
getReason() |
Gets a reason of the user session change. |
getSource, toString
public UserSessionEvent(UserSessionEvent.Reason reason)
UserSessionEvent
.reason
- the reason of the user session changeHeadlessException
- if GraphicsEnvironment.isHeadless()
returns true
UnsupportedOperationException
- if Desktop API is not supported on the current platformpublic UserSessionEvent.Reason getReason()
© 1993, 2023, 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/21/docs/api/java.desktop/java/awt/desktop/UserSessionEvent.html