TreeModificationEvent

class TreeModificationEvent[T](val delegate: TreeModificationEvent[T]) extends Event with SFXDelegate[TreeModificationEvent[T]]
Companion
object
class Event
trait SFXDelegate[TreeModificationEvent[T]]
class Object
trait Matchable
class Any

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.

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.

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.

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.

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.

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.

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.

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.

def removedSize: Int

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.

override def source: TreeItem[_]

Returns the TreeItem upon which this event occurred.

Returns the TreeItem upon which this event occurred.

Definition Classes

Returns the TreeItem that this event occurred upon.

Returns the TreeItem that this event occurred upon.

def wasAdded: Boolean

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.

def wasCollapsed: Boolean

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.

def wasExpanded: Boolean

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.

def wasRemoved: Boolean

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.

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.

Inherited from
Event
def consumed: Boolean

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

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

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.

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 Params
ref

Object to be compared.

Returns

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

Definition Classes
Inherited from
SFXDelegate
def eventType: EventType[_ <: Event]

Gets the event type of this event.

Gets the event type of this event.

Inherited from
Event
override def hashCode: Int
Returns

The delegate hashcode

Definition Classes
Inherited from
SFXDelegate
def target: EventTarget

Returns the event target of this event.

Returns the event target of this event.

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