SFXEnumDelegateCompanion

trait SFXEnumDelegateCompanion[E <: Enum[E], S <: SFXEnumDelegate[E]]

Base trait for all Companion objects SFXEnumDelegate subclasses. It mirrors static methods for `Enum`.

Base trait for all Companion objects SFXEnumDelegate subclasses. It mirrors static methods for `Enum`.

Type Params
E

Original JavaFX enum

S

SFXEnumDelegate that wrappers E

class Object
trait Matchable
class Any

Value members

Abstract methods

protected def unsortedValues: Array[S]

Contain constants which will be source for values List

Contain constants which will be source for values List

Concrete methods

def apply(name: String): S

Returns the enum constant of this type with the specified name.

Returns the enum constant of this type with the specified name.

Value Params
name

the name of the constant to return

Throws
IllegalArgumentException

If the specified enum type has no constant with the specified name, or the specified class object does not represent an enum type.

def apply(e: E): S

Converts a JavaFX enum to its respective SFXEnumDelegate.

Converts a JavaFX enum to its respective SFXEnumDelegate.

Value Params
e

JavaFX enum

Returns

[[scalafx.delegate.SFXEnumDelegate]] equivalent to argument.

def jfxEnum2sfx(e: E): S

Converts a JavaFX enum to its respective SFXEnumDelegate.

Converts a JavaFX enum to its respective SFXEnumDelegate.

Value Params
e

JavaFX enum

Returns

[[scalafx.delegate.SFXEnumDelegate]] equivalent to argument.

Concrete fields

lazy val values: List[S]

Returns a List containing the constants of this enum type, in the order they are declared.

Returns a List containing the constants of this enum type, in the order they are declared.

Implicits

Implicits

implicit def sfxEnum2jfx(s: S): E

Converts a SFXEnumDelegate to its respective JavaFX Enum.

Converts a SFXEnumDelegate to its respective JavaFX Enum.

Value Params
s

SFXEnumDelegate instance

Returns

Delegated enum