Skip to content

Quick Reference: JavaFX

Patrick Moawad edited this page Nov 18, 2013 · 6 revisions

This page gives a quick overview and description of all entities of the ValidationFramework dedicated to JavaFX.

Triggers

Triggers start the validation process when validation is needed.

Here is a list of all concrete triggers available in the [validationframework-javafx] (https://github.com/padrig64/ValidationFramework/tree/master/validationframework-javafx/src/main/java/com/google/code/validationframework/javafx) module:

Trigger Description
ChangeListenerTrigger Trigger that can be added as a ChangeListener (e.g. to a bindable property or any other ObservableValue objects).
EventHandlerTrigger Trigger that can be added as an EventHandler (e.g. to a Node).
InvalidationListenerTrigger Trigger that can be added as an InvalidationListener (e.g. to a bindable property or any other Observable objects).
ObservableInvalidationTrigger Triggered when the wrapped Observable is invalidated (e.g. a bindable property).
ObservableValueChangeTrigger Triggered when the wrapped ObservableValue is changed (e.g. a bindable property).
RunLaterTrigger Trigger wrapper to re-schedule later on the JavaFX Application Thread.

Data providers

Data provides retrieve the data to be validation the triggers are initiated.

Here is a list of all concrete data providers available in the [validationframework-javafx] (https://github.com/padrig64/ValidationFramework/tree/master/validationframework-javafx/src/main/java/com/google/code/validationframework/javafx) module:

Data provider Output Description
ObservableValueProvider <DPO> Provides the value of the ObservableValue object (e.g. of a bindable property).

Rules

Rules validate the data from the data providers and produce results.

There are no specific rule for JavaFX yet. Refer to the Quick Reference: Core page.

Result handlers

Result handlers process the results of the rules.

Here is a list of all concrete result handlers available in the [validationframework-javafx] (https://github.com/padrig64/ValidationFramework/tree/master/validationframework-javafx/src/main/java/com/google/code/validationframework/javafx) module:

Result handler Input Description
RunLaterResultHandler <RHI> Result handler wrapper to re-schedule later on the JavaFX Application Thread.
WritableValueSetterResultHandler <RHI> Sets the result in a WritableValue object (e.g. in a bindable property).

Validators

Validators glue all triggers, data providers, rules and result handlers together.

There are no specific validator for JavaFX yet. Refer to the Quick Reference: Core page.

Transformers

Transformers can be used in some data providers, rules, result handlers and validators to convert or aggregate the manipulated data.

There are no specific transformer for JavaFX yet. Refer to the Quick Reference: Core page.