Package-level declarations

Types

Link copied to clipboard
class TaskBuilder<V> : Task<V>

Receiver in ktfx.buildService, invoke call to customize what this Task do in the background.

Functions

Link copied to clipboard
inline fun <T> T.alsoLater(crossinline block: (T) -> Unit): T

Calls the specified function block with this value as its argument and returns this value in JavaFX thread.

Link copied to clipboard
inline fun <T> T.applyLater(crossinline block: T.() -> Unit): T

Calls the specified function block with this value as its receiver and returns this value in JavaFX thread.

Link copied to clipboard
inline fun Property<Boolean>.asPrimitive(): BooleanProperty

Revert the effect of BooleanProperty.asObject.

inline fun Property<Double>.asPrimitive(): DoubleProperty

Revert the effect of DoubleProperty.asObject.

inline fun Property<Float>.asPrimitive(): FloatProperty

Revert the effect of FloatProperty.asObject.

inline fun Property<Int>.asPrimitive(): IntegerProperty

Revert the effect of IntegerProperty.asObject.

inline fun Property<Long>.asPrimitive(): LongProperty

Revert the effect of LongProperty.asObject.

inline fun ReadOnlyProperty<Boolean>.asPrimitive(): ReadOnlyBooleanProperty

Revert the effect of ReadOnlyBooleanProperty.asObject.

inline fun ReadOnlyProperty<Double>.asPrimitive(): ReadOnlyDoubleProperty

Revert the effect of ReadOnlyDoubleProperty.asObject.

inline fun ReadOnlyProperty<Float>.asPrimitive(): ReadOnlyFloatProperty

Revert the effect of ReadOnlyFloatProperty.asObject.

inline fun ReadOnlyProperty<Int>.asPrimitive(): ReadOnlyIntegerProperty

Revert the effect of ReadOnlyIntegerProperty.asObject.

inline fun ReadOnlyProperty<Long>.asPrimitive(): ReadOnlyLongProperty

Revert the effect of ReadOnlyLongProperty.asObject.

Link copied to clipboard
inline fun booleanPropertyOf(initialValue: Boolean = false): BooleanProperty

Create a BooleanProperty with initialValue.

Link copied to clipboard
fun <V> buildService(builderAction: TaskBuilder<V>.() -> Unit): Service<V>

Returns a Service by invoking Task DSL. By default, it will do nothing and returns null in the background, customize it by invoking call.

Link copied to clipboard
inline fun <P, R> callbackOf(noinline callback: (P) -> R?): Callback<P, R>

Create new callback using Kotlin function type.

Link copied to clipboard
inline operator fun <F, S> Pair<F, S>.component1(): F?

Returns the key component of the pair.

Link copied to clipboard
inline operator fun <F, S> Pair<F, S>.component2(): S?

Returns the value component of the pair.

Link copied to clipboard
inline fun doublePropertyOf(initialValue: Double = 0.0): DoubleProperty

Create a DoubleProperty with initialValue.

Link copied to clipboard
inline fun floatPropertyOf(initialValue: Float = 0.0f): FloatProperty

Create a FloatProperty with initialValue.

Link copied to clipboard
inline operator fun ObservableBooleanValue.getValue(thisRef: Any?, property: KProperty<*>): Boolean

Delegated property of this read-only Boolean value, use with by keyword.

inline operator fun ObservableDoubleValue.getValue(thisRef: Any?, property: KProperty<*>): Double

Delegated property of this read-only Double value, use with by keyword.

inline operator fun ObservableFloatValue.getValue(thisRef: Any?, property: KProperty<*>): Float

Delegated property of this read-only Float value, use with by keyword.

inline operator fun ObservableIntegerValue.getValue(thisRef: Any?, property: KProperty<*>): Int

Delegated property of this read-only Int value, use with by keyword.

inline operator fun ObservableLongValue.getValue(thisRef: Any?, property: KProperty<*>): Long

Delegated property of this read-only Long value, use with by keyword.

inline operator fun ObservableStringValue.getValue(thisRef: Any?, property: KProperty<*>): String?

Delegated property of this read-only String value, use with by keyword.

inline operator fun <V> ObservableValue<V>.getValue(thisRef: Any?, property: KProperty<*>): V?

Delegated property of this read-only V value, use with by keyword.

Link copied to clipboard
inline fun intPropertyOf(initialValue: Int = 0): IntegerProperty

Create a IntegerProperty with initialValue.

Link copied to clipboard
inline operator fun <P, R> Callback<P, R>.invoke(obj: P): R

Converts the object provided into its string form.

Link copied to clipboard
inline fun isFxThread(): Boolean

Returns true if the calling thread is the JavaFX thread.

Link copied to clipboard
inline fun ConditionalFeature.isSupported(): Boolean

Queries whether a specific conditional feature is supported by the platform.

Link copied to clipboard
inline fun <T : Application> launchApplication(vararg args: String)

Launch a JavaFX application with reified type.

Link copied to clipboard
inline fun <T> T.letLater(crossinline block: (T) -> Unit)

Calls the specified function block with this value as its argument in JavaFX thread.

Link copied to clipboard
inline fun <E> listPropertyOf(initialValue: ObservableList<E>? = null): ListProperty<E>

Create a ListProperty with initialValue.

Link copied to clipboard
inline fun longPropertyOf(initialValue: Long = 0): LongProperty

Create a LongProperty with initialValue.

Link copied to clipboard
inline fun <K, V> mapPropertyOf(initialValue: ObservableMap<K, V>? = null): MapProperty<K, V>

Create a MapProperty with initialValue.

Link copied to clipboard
inline fun <T> propertyOf(initialValue: T? = null): ObjectProperty<T>

Create a Property with initialValue.

Link copied to clipboard
inline fun repeatLater(times: Int, crossinline action: (Int) -> Unit)

Executes the given function action specified number of times in JavaFX thread.

Link copied to clipboard
inline fun HostServices.resolveCodeUri(rel: String): String

Resolves the specified relative URI against the code base URI and returns the resolved URI.

Link copied to clipboard
inline fun HostServices.resolveDocumentUri(rel: String): String

Resolves the specified relative URI against the document base URI and returns the resolved URI.

Link copied to clipboard
inline fun runLater(crossinline block: () -> Unit)

Calls the specified function block in JavaFX thread.

inline fun <T> T.runLater(crossinline block: T.() -> Unit)

Calls the specified function block with this value as its receiver in JavaFX thread.

Link copied to clipboard
inline fun <E> setPropertyOf(initialValue: ObservableSet<E>? = null): SetProperty<E>

Create a SetProperty with initialValue.

Link copied to clipboard
inline operator fun WritableBooleanValue.setValue(thisRef: Any?, property: KProperty<*>, value: Boolean)

Delegated property of this writable Boolean value, use with by keyword.

inline operator fun WritableDoubleValue.setValue(thisRef: Any?, property: KProperty<*>, value: Double)

Delegated property of this writable Double value, use with by keyword.

inline operator fun WritableFloatValue.setValue(thisRef: Any?, property: KProperty<*>, value: Float)

Delegated property of this writable Float value, use with by keyword.

inline operator fun WritableIntegerValue.setValue(thisRef: Any?, property: KProperty<*>, value: Int)

Delegated property of this writable Int value, use with by keyword.

inline operator fun WritableLongValue.setValue(thisRef: Any?, property: KProperty<*>, value: Long)

Delegated property of this writable Long value, use with by keyword.

inline operator fun WritableStringValue.setValue(thisRef: Any?, property: KProperty<*>, value: String?)

Delegated property of this writable String value, use with by keyword.

inline operator fun <V> WritableValue<in V>.setValue(thisRef: Any?, property: KProperty<*>, value: V?)

Delegated property of this writable V value, use with by keyword.

Link copied to clipboard
inline fun stringPropertyOf(initialValue: String? = null): StringProperty

Create a StringProperty with initialValue.

Link copied to clipboard
inline fun <F, S> Pair<F, S>.toFxPair(): Pair<F, S>

Returns this kotlin.Pair as a JavaFX Pair.

Link copied to clipboard
inline fun <F, S> Pair<F, S>.toKotlinPair(): Pair<F, S>

Returns this Pair as a kotlin.Pair.

Link copied to clipboard
inline fun <T> withLater(receiver: T, crossinline block: T.() -> Unit)

Calls the specified function block with the given receiver as its receiver in JavaFX thread.