TextFormatter

class TextFormatter[V](val delegate: TextFormatter[V]) extends SFXDelegate[TextFormatter[V]]

A Formatter describes a format of a TextInputControl text.

A Formatter describes a format of a TextInputControl text.

Wraps a JavaFX TextFormatter.

Companion
object
trait SFXDelegate[TextFormatter[V]]
class Object
trait Matchable
class Any

Value members

Constructors

def this(filter: UnaryOperator[Change])

Creates a new Formatter with the provided filter.

Creates a new Formatter with the provided filter.

Value Params
filter

The filter to use in this formatter or null

def this(filter: Change => Change)

Creates a new Formatter with the provided filter.

Creates a new Formatter with the provided filter.

Value Params
filter

The filter that can modify the change.

def this(valueConverter: StringConverter[V], defaultValue: V, filter: UnaryOperator[Change])

Creates a new Formatter with the provided filter, value converter and default value.

Creates a new Formatter with the provided filter, value converter and default value.

Value Params
defaultValue

the default value.

filter

The filter to use in this formatter or null

valueConverter

The value converter to use in this formatter or null.

def this(valueConverter: StringConverter[V], defaultValue: V, filter: Change => Change)

Creates a new Formatter with the provided filter, value converter and default value.

Creates a new Formatter with the provided filter, value converter and default value.

Value Params
defaultValue

the default value.

filter

The filter that can modify the change.

valueConverter

The value converter to use in this formatter or null.

def this(valueConverter: StringConverter[V], defaultValue: V)

Creates a new Formatter with the provided value converter and default value.

Creates a new Formatter with the provided value converter and default value.

Value Params
defaultValue

the default value

valueConverter

The value converter to use in this formatter. This must not be null.

def this(valueConverter: StringConverter[V])

Creates a new Formatter with the provided value converter. The default value will be null.

Creates a new Formatter with the provided value converter. The default value will be null.

Value Params
valueConverter

The value converter to use in this formatter. This must not be null.

Concrete methods

def filter: UnaryOperator[Change]

Filter allows user to intercept and modify any change done to the text content.

Filter allows user to intercept and modify any change done to the text content.

The current value for this formatter. When the formatter is set on a TextInputControl and has a valueConverter, the value is set by the control, when the text is committed.

The current value for this formatter. When the formatter is set on a TextInputControl and has a valueConverter, the value is set by the control, when the text is committed.

The converter between the values and text.

The converter between the values and text.

def value_=(v: V): Unit

Inherited methods

override def equals(ref: Any): Boolean

Verifies if a object is equals to this delegate.

Verifies if a object is equals to this delegate.

Value Params
ref

Object to be compared.

Returns

if the other object is equals to this delegate or not.

Definition Classes
Inherited from
SFXDelegate
override def hashCode: Int
Returns

The delegate hashcode

Definition Classes
Inherited from
SFXDelegate
override def toString: String
Returns

Returns the original delegate's toString() adding a [SFX] prefix.

Definition Classes
Inherited from
SFXDelegate

Concrete fields

override val delegate: TextFormatter[V]