TextFormatter

scalafx.scene.control.TextFormatter
See theTextFormatter companion object
class TextFormatter[V](val delegate: TextFormatter[V]) extends SFXDelegate[TextFormatter[V]]

A Formatter describes a format of a TextInputControl text.

Wraps a $JFX $URL0 $TC]].

Attributes

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

Members list

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 parameters

filter

The filter to use in this formatter or null

Attributes

def this(filter: Change => Change)

Creates a new Formatter with the provided filter.

Creates a new Formatter with the provided filter.

Value parameters

filter

The filter that can modify the change.

Attributes

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 parameters

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.

Attributes

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 parameters

defaultValue

the default value.

filter

The filter that can modify the change.

valueConverter

The value converter to use in this formatter or null.

Attributes

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 parameters

defaultValue

the default value

valueConverter

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

Attributes

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 parameters

valueConverter

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

Attributes

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.

Attributes

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.

Attributes

The converter between the values and text.

The converter between the values and text.

Attributes

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 parameters

ref

Object to be compared.

Attributes

Returns

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

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate
override def hashCode: Int

Attributes

Returns

The delegate hashcode

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate
override def toString: String

Attributes

Returns

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

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate

Concrete fields

override val delegate: TextFormatter[V]

JavaFX object to be wrapped.

JavaFX object to be wrapped.

Attributes