APIdia Launch Partner
Top Description Methods
com.sun.jfx.incubator.scene.control.input

public Interface EventCriteria<T extends Event>

Type Parameters
<T>
the type of the event
Imports
javafx.event.Event, .EventType

This interface enables wider control in specifying conditional matching logic when adding skin/behavior handlers.

Method Summary

Modifier and TypeMethod and Description
public EventType<T>

Returns:

the event type
getEventType
()

Returns the event type for which this criteria are valid.

public boolean

Returns:

true if match occurs
isEventAcceptable
(T
the event
ev
)

Returns true if the specified event matches this criteria.

Method Detail

getEventTypeback to summary
public EventType<T> getEventType()

Returns the event type for which this criteria are valid.

Returns:EventType<T>

the event type

isEventAcceptableback to summary
public boolean isEventAcceptable(T ev)

Returns true if the specified event matches this criteria.

Parameters
ev:T

the event

Returns:boolean

true if match occurs