public enum NotificationDurationChoices extends java.lang.Enum<NotificationDurationChoices>
| Enum Constant and Description |
|---|
FIVE_SECONDS |
NEVER |
TEN_SECONDS |
THIRTY_SECONDS |
| Modifier and Type | Method and Description |
|---|---|
javafx.util.Duration |
getDuration()
Returns the
Duration value for the enum entry. |
java.lang.String |
getName()
Returns the name for the enum entry.
|
java.lang.String |
toString() |
static NotificationDurationChoices |
valueOf(javafx.util.Duration duration)
Returns the
NotificationDurationChoices value corresponding to the provided duration or NotificationDurationChoices.NEVER if there isn't one. |
static NotificationDurationChoices |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NotificationDurationChoices[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NotificationDurationChoices FIVE_SECONDS
public static final NotificationDurationChoices TEN_SECONDS
public static final NotificationDurationChoices THIRTY_SECONDS
public static final NotificationDurationChoices NEVER
public static NotificationDurationChoices[] values()
for (NotificationDurationChoices c : NotificationDurationChoices.values()) System.out.println(c);
public static NotificationDurationChoices valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getName()
public javafx.util.Duration getDuration()
Duration value for the enum entry.Duration value for the enum entry.public java.lang.String toString()
toString in class java.lang.Enum<NotificationDurationChoices>public static NotificationDurationChoices valueOf(javafx.util.Duration duration)
NotificationDurationChoices value corresponding to the provided duration or NotificationDurationChoices.NEVER if there isn't one.duration - the Duration corresponding to a NotificationDurationChoices entry.NotificationDurationChoices value corresponding to the provided duration or NotificationDurationChoices.NEVER if there isn't one.Copyright © 2018 Frederic Thevenet. All rights reserved.