Class/Object

scalafx.scene.control.TextFormatter

Change

Related Docs: object Change | package TextFormatter

Permalink

class Change extends SFXDelegate[javafx.scene.control.TextFormatter.Change]

Contains the state representing a change in the content or selection for a TextInputControl.

Wraps a JavaFX https://docs.oracle.com/javase/8/javafx/api/javafx/scalafx/scene/control/TextFormatter.Change.html

Source
TextFormatter.scala
Linear Supertypes
SFXDelegate[javafx.scene.control.TextFormatter.Change], AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Change
  2. SFXDelegate
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Change(delegate: javafx.scene.control.TextFormatter.Change)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def anchor: Int

    Permalink

    Gets the new anchor.

    Gets the new anchor. This value will always be > 0 and <= controlNewText.Length

    returns

    The new anchor position

  5. def anchor_=(newAnchor: Int): Unit

    Permalink

    Sets the anchor.

    Sets the anchor. The anchor value must be > 0 and <= controlNewText.Length. Note that there is an order dependence here, in that the position should be specified after the new text has been specified.

    newAnchor

    The new anchor position

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def caretPosition: Int

    Permalink

    Gets the new caret position.

    Gets the new caret position. This value will always be > 0 and <= controlNewText.Length

    returns

    The new caret position

  8. def caretPosition_=(newCaretPosition: Int): Unit

    Permalink

    Sets the caret position.

    Sets the caret position. The caret position value must be > 0 and <= controlNewText.Length. Note that there is an order dependence here, in that the position should be specified after the new text has been specified.

    newCaretPosition

    The new caret position

  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def control: Control

    Permalink

    Gets the control associated with this change.

    Gets the control associated with this change.

    returns

    The control associated with this change. This will never be null.

  11. def controlAnchor: Int

    Permalink

    Gets the current anchor position of the control.

    Gets the current anchor position of the control.

    returns

    The previous anchor

  12. def controlCaretPosition: Int

    Permalink

    Gets the current caret position of the control.

    Gets the current caret position of the control.

    returns

    The previous caret position

  13. def controlNewText: String

    Permalink

    Gets the complete new text which will be used on the control after this change.

    Gets the complete new text which will be used on the control after this change. Note that some controls (such as TextField) may do further filtering after the change is made (such as stripping out newlines) such that you cannot assume that the newText will be exactly the same as what is finally set as the content on the control, however it is correct to assume that this is the case for the purpose of computing the new caret position and new anchor position (as those values supplied will be modified as necessary after the control has stripped any additional characters that the control might strip).

    returns

    The controls proposed new text at the time of this call, according to the state set for start, end, and text properties on this Change object.

  14. def controlText: String

    Permalink

    This is the full text that control has before the change.

    This is the full text that control has before the change. To get the text after this change, use controlNewText.

    returns

    the previous text of control

  15. val delegate: javafx.scene.control.TextFormatter.Change

    Permalink

    JavaFX object to be wrapped.

    JavaFX object to be wrapped.

    Definition Classes
    ChangeSFXDelegate
  16. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. def equals(ref: Any): Boolean

    Permalink

    Verifies if a object is equals to this delegate.

    Verifies if a object is equals to this delegate.

    ref

    Object to be compared.

    returns

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

    Definition Classes
    SFXDelegate → AnyRef → Any
  18. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  20. def hashCode(): Int

    Permalink

    returns

    The delegate hashcode

    Definition Classes
    SFXDelegate → AnyRef → Any
  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. def rangeEnd: Int

    Permalink

    Gets the end index into the TextInputControl.text for the modification.

    Gets the end index into the TextInputControl.text for the modification. This will always be a value > angeStart and <= TextInputControl.length.

    returns

    The end index

  26. def rangeStart: Int

    Permalink

    Gets the start index into the TextInputControl.text for the modification.

    Gets the start index into the TextInputControl.text for the modification. This will always be a value > 0 and <= TextInputControl.length.

    returns

    The start index

  27. def selection: IndexRange

    Permalink

    Gets the selection of this change.

    Gets the selection of this change. Note that the selection range refers to controlNewText, not the current control text.

    returns

    The selected range of this change.

  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  29. def text: String

    Permalink

    Gets the text used in this change.

    Gets the text used in this change. For example, this may be new text being added, or text which is replacing all the control's text within the range of start and end. Typically it is an empty string only for cases where the range is being deleted.

    returns

    The text involved in this change. This will never be null.

  30. def text_=(value: String): Unit

    Permalink

    Sets the text to use in this change.

    Sets the text to use in this change. This is used to replace the range from start to end, if such a range exists, or to insert text at the position represented by start == end.

    value

    The text. This cannot be null.

  31. def toString(): String

    Permalink

    returns

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

    Definition Classes
    SFXDelegate → AnyRef → Any
  32. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from SFXDelegate[javafx.scene.control.TextFormatter.Change]

Inherited from AnyRef

Inherited from Any

Ungrouped