TreeModificationEvent

scalafx.scene.control.TreeItem.TreeModificationEvent
See theTreeModificationEvent companion object
class TreeModificationEvent[T](val delegate: TreeModificationEvent[T]) extends Event, SFXDelegate[TreeModificationEvent[T]]

Attributes

Companion
object
Graph
Supertypes
class Event
trait SFXDelegate[TreeModificationEvent[T]]
class Object
trait Matchable
class Any

Members list

Value members

Constructors

def this(eventType: EventType[_ <: Event], treeItem: TreeItem[T])

Constructs a basic TreeModificationEvent - this is useful in situations where the tree item has not received a new value, has not changed between expanded/collapsed states, and whose children has not changed.

Constructs a basic TreeModificationEvent - this is useful in situations where the tree item has not received a new value, has not changed between expanded/collapsed states, and whose children has not changed.

Attributes

def this(eventType: EventType[_ <: Event], treeItem: TreeItem[T], expanded: Boolean)

Constructs a TreeModificationEvent for when the TreeItem has had its TreeItem.expandedProperty() changed.

Constructs a TreeModificationEvent for when the TreeItem has had its TreeItem.expandedProperty() changed.

Attributes

def this(eventType: EventType[_ <: Event], treeItem: TreeItem[T], added: Buffer[_ <: TreeItem[T]], removed: Buffer[_ <: TreeItem[T]])

Constructs a TreeModificationEvent for when the TreeItem has had its children list changed.

Constructs a TreeModificationEvent for when the TreeItem has had its children list changed.

Attributes

def this(eventType: EventType[_ <: Event], treeItem: TreeItem[T], newValue: T)

Constructs a TreeModificationEvent for when the TreeItem has had its TreeItem.valueProperty() changed.

Constructs a TreeModificationEvent for when the TreeItem has had its TreeItem.valueProperty() changed.

Attributes

Concrete methods

def addedChildren: Buffer[_ <: TreeItem[T]]

Returns the children added to the TreeItem in this event, or an empty list if no children were added.

Returns the children added to the TreeItem in this event, or an empty list if no children were added.

Attributes

def addedSize: Int

Returns the number of children items that were added in this event, or zero if no children were added.

Returns the number of children items that were added in this event, or zero if no children were added.

Attributes

def newValue: T

If the value of the TreeItem changed, this method will return the new value.

If the value of the TreeItem changed, this method will return the new value.

Attributes

def removedChildren: Buffer[_ <: TreeItem[T]]

Returns the children removed from the TreeItem in this event, or an empty list if no children were added.

Returns the children removed from the TreeItem in this event, or an empty list if no children were added.

Attributes

Returns the number of children items that were removed in this event, or zero if no children were removed.

Returns the number of children items that were removed in this event, or zero if no children were removed.

Attributes

override def source: TreeItem[_]

Returns the TreeItem upon which this event occurred.

Returns the TreeItem upon which this event occurred.

Attributes

Definition Classes
def treeItem: TreeItem[T]

Returns the TreeItem that this event occurred upon.

Returns the TreeItem that this event occurred upon.

Attributes

Returns true if this event represents a TreeItem event where children TreeItems were added.

Returns true if this event represents a TreeItem event where children TreeItems were added.

Attributes

Returns true if this event represents a TreeItem collapse event, and false if the TreeItem was not collapsed.

Returns true if this event represents a TreeItem collapse event, and false if the TreeItem was not collapsed.

Attributes

Returns true if this event represents a TreeItem expansion event, and false if the TreeItem was not expanded.

Returns true if this event represents a TreeItem expansion event, and false if the TreeItem was not expanded.

Attributes

Returns true if this event represents a TreeItem event where children TreeItems were removed.

Returns true if this event represents a TreeItem event where children TreeItems were removed.

Attributes

Inherited methods

def consume(): Unit

Marks this Event as consumed. This stops its further propagation.

Marks this Event as consumed. This stops its further propagation.

Attributes

Inherited from:
Event

Indicates whether this Event has been consumed by any filter or handler.

Indicates whether this Event has been consumed by any filter or handler.

Attributes

Inherited from:
Event
def copyFor(newSource: AnyRef, newTarget: EventTarget): Event

Creates and returns a copy of this event with the specified event source and target.

Creates and returns a copy of this event with the specified event source and target.

Attributes

Inherited from:
Event
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
def eventType: EventType[_ <: Event]

Gets the event type of this event.

Gets the event type of this event.

Attributes

Inherited from:
Event
override def hashCode: Int

Attributes

Returns

The delegate hashcode

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate
def target: EventTarget

Returns the event target of this event.

Returns the event target of this event.

Attributes

Inherited from:
Event
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: TreeModificationEvent[T]

JavaFX object to be wrapped.

JavaFX object to be wrapped.

Attributes