Package-level declarations

Types

Link copied to clipboard

Supporting class to use Borders with DSL.

Link copied to clipboard

Supporting class to use Notifications with DSL.

Functions

Link copied to clipboard
inline fun Node.addDecoration(decoration: Decoration)

Adds the given decoration to the given node.

Link copied to clipboard
inline fun <T> TextField.bindAutoCompletion(vararg possibleSuggestions: T): AutoCompletionBinding<T>

Create a new auto-completion binding between the given TextField using the given auto-complete suggestions.

inline fun <T> TextField.bindAutoCompletion(noinline suggestionProvider: (AutoCompletionBinding.ISuggestionRequest) -> Collection<T>): AutoCompletionBinding<T>
inline fun <T> TextField.bindAutoCompletion(converter: StringConverter<T>, noinline suggestionProvider: (AutoCompletionBinding.ISuggestionRequest) -> Collection<T>): AutoCompletionBinding<T>

Create a new auto-completion binding between the given TextField and the given suggestion provider.

inline fun <T> TextField.bindAutoCompletion(possibleSuggestions: Collection<T>): AutoCompletionBinding<T>

Alias of bindAutoCompletion with collection input.

Link copied to clipboard
fun buildNotifications(builderAction: NotificationsBuilder.() -> Unit): Notifications

Build notifications with Kotlin DSL.

Link copied to clipboard
inline fun Node.clearDecorations()

Removes all the decorations that have previously been set on the given node.

Link copied to clipboard
fun <T> Control.registerEmptyValidator(message: String, severity: Severity = Severity.ERROR, required: Boolean = true, support: ValidationSupport = singletonSupport): Boolean

Register empty validation.

Link copied to clipboard
fun <T> Control.registerEqualsValidator(message: String, collection: Collection<T>, severity: Severity = Severity.ERROR, required: Boolean = true, support: ValidationSupport = singletonSupport): Boolean

Register equals validation.

Link copied to clipboard
fun <T> Control.registerPredicateValidator(message: String, severity: Severity = Severity.ERROR, required: Boolean = true, support: ValidationSupport = singletonSupport, predicate: (T) -> Boolean): Boolean

Register predicate validation.

Link copied to clipboard
fun Control.registerRegexValidator(message: String, regex: String, severity: Severity = Severity.ERROR, required: Boolean = true, support: ValidationSupport = singletonSupport): Boolean
fun Control.registerRegexValidator(message: String, regex: Regex, severity: Severity = Severity.ERROR, required: Boolean = true, support: ValidationSupport = singletonSupport): Boolean

Register regex validation.

Link copied to clipboard
inline fun Node.removeDecoration(decoration: Decoration)

Removes the given decoration from the given node.

Link copied to clipboard
fun Node.wrapBorders(builderAction: BordersBuilder.() -> Unit): Node

Wraps this Node with borders using Kotlin DSL, returning the wrapped node.

Link copied to clipboard
inline fun Node.wrapEmptyBorder(noinline builderAction: BordersBuilder.EmptyBuilder.() -> Unit): Node

Add a new Borders.EmptyBorders to node using DSL.

Link copied to clipboard
inline fun Node.wrapEtchedBorder(noinline builderAction: BordersBuilder.EtchedBuilder.() -> Unit): Node

Add a new Borders.EtchedBorders to node using DSL.

Link copied to clipboard
inline fun Node.wrapLineBorder(noinline builderAction: BordersBuilder.LineBuilder.() -> Unit): Node

Add a new Borders.LineBorders to node using DSL.

Properties

Link copied to clipboard
val Node.decorations: ObservableList<Decoration>

Returns all the currently set decorations for the given node.

Link copied to clipboard

Set control's required flag.