TextFieldProperty

scalafx.scene.control.TextFieldProperty
See theTextFieldProperty companion object
class TextFieldProperty(val delegate: ReadOnlyObjectProperty[TextField]) extends ReadOnlyObjectProperty[TextField], SFXDelegate[ReadOnlyObjectProperty[TextField]], AlignmentPropertyDelegate

Attributes

Companion
object
Deprecated
true
Graph
Supertypes
class ReadOnlyObjectProperty[TextField]
trait ReadOnlyProperty[TextField, TextField]
trait ObservableValue[TextField, TextField]
trait Observable
trait SFXDelegate[ReadOnlyObjectProperty[TextField]]
class ObjectExpression[TextField]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Constructors

def this(bean: Object, name: String, value: T)
Implicitly added by sfxTextFieldProperty2jfx

Concrete methods

def value: T
Implicitly added by sfxTextFieldProperty2jfx

Returns ObservableValue

Returns ObservableValue

Attributes

Returns

ObservableValue

Deprecated methods

def onAction: ObjectBinding[ActionEvent]

Attributes

Deprecated
true
def prefColumnCount: IntegerBinding

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Inherited methods

def =!=(v: AnyRef): BooleanBinding
Implicitly added by sfxTextFieldProperty2jfx

Attributes

Inherited from:
ObjectExpression
def =!=[T](v: ObservableValue[T, T]): BooleanBinding
Implicitly added by sfxTextFieldProperty2jfx

Attributes

Inherited from:
ObjectExpression
def =!=(v: ObservableObjectValue[_]): BooleanBinding
Implicitly added by sfxTextFieldProperty2jfx

Attributes

Inherited from:
ObjectExpression
def =!=(v: Null): BooleanBinding
Implicitly added by sfxTextFieldProperty2jfx

Attributes

Inherited from:
ObjectExpression
def =!=(v: AnyRef): BooleanBinding

Attributes

Inherited from:
ObjectExpression
def =!=[T](v: ObservableValue[T, T]): BooleanBinding

Attributes

Inherited from:
ObjectExpression
def =!=(v: ObservableObjectValue[_]): BooleanBinding

Attributes

Inherited from:
ObjectExpression
def =!=(v: Null): BooleanBinding

Attributes

Inherited from:
ObjectExpression
def ===(v: AnyRef): BooleanBinding
Implicitly added by sfxTextFieldProperty2jfx

Attributes

Inherited from:
ObjectExpression
def ===[T](v: ObservableValue[T, T]): BooleanBinding
Implicitly added by sfxTextFieldProperty2jfx

Attributes

Inherited from:
ObjectExpression
def ===(v: ObservableObjectValue[_]): BooleanBinding
Implicitly added by sfxTextFieldProperty2jfx

Attributes

Inherited from:
ObjectExpression
def ===(v: Null): BooleanBinding
Implicitly added by sfxTextFieldProperty2jfx

Attributes

Inherited from:
ObjectExpression
def ===(v: AnyRef): BooleanBinding

Attributes

Inherited from:
ObjectExpression
def ===[T](v: ObservableValue[T, T]): BooleanBinding

Attributes

Inherited from:
ObjectExpression
def ===(v: ObservableObjectValue[_]): BooleanBinding

Attributes

Inherited from:
ObjectExpression
def ===(v: Null): BooleanBinding

Attributes

Inherited from:
ObjectExpression

Attributes

Inherited from:
AlignmentPropertyDelegate
def apply(): T
Implicitly added by sfxTextFieldProperty2jfx

Returns ObservableValue

Returns ObservableValue

Attributes

Returns

ObservableValue

Inherited from:
ObservableValue
def apply(): T

Returns ObservableValue

Returns ObservableValue

Attributes

Returns

ObservableValue

Inherited from:
ObservableValue
def bean: AnyRef
Implicitly added by sfxTextFieldProperty2jfx

Returns the Object that contains this property.

Returns the Object that contains this property.

Attributes

Inherited from:
ReadOnlyProperty
def bean: AnyRef

Returns the Object that contains this property.

Returns the Object that contains this property.

Attributes

Inherited from:
ReadOnlyProperty
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
def name: String
Implicitly added by sfxTextFieldProperty2jfx

Returns the name of this property.

Returns the name of this property.

Attributes

Inherited from:
ReadOnlyProperty
def name: String

Returns the name of this property.

Returns the name of this property.

Attributes

Inherited from:
ReadOnlyProperty
def onChange[J1 >: T](op: => Unit): Subscription
Implicitly added by sfxTextFieldProperty2jfx

Adds a function as a `ChangeListener`. This function has no arguments because it will not handle values changed.

Adds a function as a `ChangeListener`. This function has no arguments because it will not handle values changed.

Value parameters

op

A Function with no arguments. It will be called when value changes.

Attributes

Returns

A new scalafx.event.subscriptions.Subscription to remove ObservableValue.

Inherited from:
ObservableValue
def onChange[J1 >: T](op: (ObservableValue[T, T], J1, J1) => Unit): Subscription
Implicitly added by sfxTextFieldProperty2jfx

Adds a function as a `ChangeListener`. This function has all arguments from T, T) `changed` method from ChangeListener.

Adds a function as a `ChangeListener`. This function has all arguments from T, T) `changed` method from ChangeListener.

Type parameters

J1

J superclass.

Value parameters

op

Function that receives a `ObservableValue`, the old value and the new value. It will be called when value changes.

Attributes

Returns

A new scalafx.event.subscriptions.Subscription to remove ObservableValue.

Inherited from:
ObservableValue
def onChange[J1 >: TextField](op: => Unit): Subscription

Adds a function as a `ChangeListener`. This function has no arguments because it will not handle values changed.

Adds a function as a `ChangeListener`. This function has no arguments because it will not handle values changed.

Value parameters

op

A Function with no arguments. It will be called when value changes.

Attributes

Returns

A new scalafx.event.subscriptions.Subscription to remove ObservableValue.

Inherited from:
ObservableValue
def onChange[J1 >: TextField](op: (ObservableValue[TextField, TextField], J1, J1) => Unit): Subscription

Adds a function as a `ChangeListener`. This function has all arguments from T, T) `changed` method from ChangeListener.

Adds a function as a `ChangeListener`. This function has all arguments from T, T) `changed` method from ChangeListener.

Type parameters

J1

J superclass.

Value parameters

op

Function that receives a `ObservableValue`, the old value and the new value. It will be called when value changes.

Attributes

Returns

A new scalafx.event.subscriptions.Subscription to remove ObservableValue.

Inherited from:
ObservableValue
Implicitly added by sfxTextFieldProperty2jfx

Adds a no argument function as a JavaFX `InvalidationListener`. This function has no arguments because it will not handle invalidated values.

Adds a no argument function as a JavaFX `InvalidationListener`. This function has no arguments because it will not handle invalidated values.

Value parameters

op

A Function with no arguments. It will be called when value was invalidated.

Attributes

Returns

A new scalafx.event.subscriptions.Subscription to remove JavaFX InvalidationListener.

Inherited from:
Observable
Implicitly added by sfxTextFieldProperty2jfx

Adds a function as a JavaFX `InvalidationListener`. This function has all arguments from `invalidated` method from InvalidationListener.

Adds a function as a JavaFX `InvalidationListener`. This function has all arguments from `invalidated` method from InvalidationListener.

Value parameters

op

Function that receives a ScalaFX Observable. It will be called when value was invalidated.

Attributes

Returns

A new scalafx.event.subscriptions.Subscription to remove JavaFX InvalidationListener.

Inherited from:
Observable

Adds a no argument function as a JavaFX `InvalidationListener`. This function has no arguments because it will not handle invalidated values.

Adds a no argument function as a JavaFX `InvalidationListener`. This function has no arguments because it will not handle invalidated values.

Value parameters

op

A Function with no arguments. It will be called when value was invalidated.

Attributes

Returns

A new scalafx.event.subscriptions.Subscription to remove JavaFX InvalidationListener.

Inherited from:
Observable

Adds a function as a JavaFX `InvalidationListener`. This function has all arguments from `invalidated` method from InvalidationListener.

Adds a function as a JavaFX `InvalidationListener`. This function has all arguments from `invalidated` method from InvalidationListener.

Value parameters

op

Function that receives a ScalaFX Observable. It will be called when value was invalidated.

Attributes

Returns

A new scalafx.event.subscriptions.Subscription to remove JavaFX InvalidationListener.

Inherited from:
Observable
def select[T](s: String): ObjectBinding[T]
Implicitly added by sfxTextFieldProperty2jfx

Attributes

Inherited from:
ObjectExpression
def select[T](s: String): ObjectBinding[T]

Attributes

Inherited from:
ObjectExpression
Implicitly added by sfxTextFieldProperty2jfx

Attributes

Inherited from:
ObjectExpression

Attributes

Inherited from:
ObjectExpression
def selectDouble(s: String): DoubleBinding
Implicitly added by sfxTextFieldProperty2jfx

Attributes

Inherited from:
ObjectExpression
def selectDouble(s: String): DoubleBinding

Attributes

Inherited from:
ObjectExpression
def selectFloat(s: String): FloatBinding
Implicitly added by sfxTextFieldProperty2jfx

Attributes

Inherited from:
ObjectExpression
def selectFloat(s: String): FloatBinding

Attributes

Inherited from:
ObjectExpression
def selectInteger(s: String): IntegerBinding
Implicitly added by sfxTextFieldProperty2jfx

Attributes

Inherited from:
ObjectExpression
def selectInteger(s: String): IntegerBinding

Attributes

Inherited from:
ObjectExpression
def selectLong(s: String): LongBinding
Implicitly added by sfxTextFieldProperty2jfx

Attributes

Inherited from:
ObjectExpression
def selectLong(s: String): LongBinding

Attributes

Inherited from:
ObjectExpression
Implicitly added by sfxTextFieldProperty2jfx

Attributes

Inherited from:
ObjectExpression

Attributes

Inherited from:
ObjectExpression
override def toString: String

Attributes

Returns

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

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate
def value: T

Returns ObservableValue

Returns ObservableValue

Attributes

Returns

ObservableValue

Inherited from:
ReadOnlyObjectProperty
def when(condition: ObservableValue[Boolean, Boolean]): ObservableValue[J, J]
Implicitly added by sfxTextFieldProperty2jfx

Returns an ObservableValue that holds this value and is updated only when condition holds true.

Returns an ObservableValue that holds this value and is updated only when condition holds true.

The returned ObservableValue only observes this value when condition holds true. This allows this ObservableValue and the conditional ObservableValue to be garbage collected if neither is otherwise strongly referenced when condition holds false. This is in contrast to the general behavior of bindings, where the binding is only eligible for garbage collection when not observed itself.

A condition holding null is treated as holding false.

For example:

  val condition         = BooleanProperty(true)
  val longLivedProperty = StringProperty("A")
  val whenProperty      = longLivedProperty.when(condition)

  // observe whenProperty, which will in turn observe longLivedProperty
  whenProperty.onChange((_, old, current) => println(s"whenProperty change : $old -> $current"));

  longLivedProperty.value = "B" // "B" is printed

  condition.value = false

  // After condition becomes false, whenProperty stops observing longLivedProperty; condition
  // and whenProperty may now be eligible for GC despite being observed by the ChangeListener
  longLivedProperty.value = "C" // nothing is printed
  longLivedProperty.value = "D" // nothing is printed

  condition.value = true // longLivedProperty is observed again, and "D" is printed

Value parameters

condition

a boolean ObservableValue, cannot be null

Attributes

Returns

an ObservableValue that holds this value whenever the given condition evaluates to true, otherwise holds the last seen value; never returns null

Since

20

Inherited from:
ObservableValue
def when(condition: ObservableValue[Boolean, Boolean]): ObservableValue[J, J]

Returns an ObservableValue that holds this value and is updated only when condition holds true.

Returns an ObservableValue that holds this value and is updated only when condition holds true.

The returned ObservableValue only observes this value when condition holds true. This allows this ObservableValue and the conditional ObservableValue to be garbage collected if neither is otherwise strongly referenced when condition holds false. This is in contrast to the general behavior of bindings, where the binding is only eligible for garbage collection when not observed itself.

A condition holding null is treated as holding false.

For example:

  val condition         = BooleanProperty(true)
  val longLivedProperty = StringProperty("A")
  val whenProperty      = longLivedProperty.when(condition)

  // observe whenProperty, which will in turn observe longLivedProperty
  whenProperty.onChange((_, old, current) => println(s"whenProperty change : $old -> $current"));

  longLivedProperty.value = "B" // "B" is printed

  condition.value = false

  // After condition becomes false, whenProperty stops observing longLivedProperty; condition
  // and whenProperty may now be eligible for GC despite being observed by the ChangeListener
  longLivedProperty.value = "C" // nothing is printed
  longLivedProperty.value = "D" // nothing is printed

  condition.value = true // longLivedProperty is observed again, and "D" is printed

Value parameters

condition

a boolean ObservableValue, cannot be null

Attributes

Returns

an ObservableValue that holds this value whenever the given condition evaluates to true, otherwise holds the last seen value; never returns null

Since

20

Inherited from:
ObservableValue

Concrete fields

override val delegate: ReadOnlyObjectProperty[T]
Implicitly added by sfxTextFieldProperty2jfx

JavaFX object to be wrapped.

JavaFX object to be wrapped.

Attributes

override val delegate: ReadOnlyObjectProperty[TextField]

JavaFX object to be wrapped.

JavaFX object to be wrapped.

Attributes