Skip to content

EventType

final class EventType<E extends Event>
Package: dev.joid.lib.ui.event · Module: core · Source: EventType.java

The key of one kind of event in an event bus, such as the click of a node.

A node or a UI declares one EventType per event, in a static field, and passes it to listen and fire. Two calls of create with the same name give two different types.

ReturnsSignatureSummary
EventType<E>create(String name) factoryCreates a type.

ReturnsSignatureSummary
StringgetName()Returns the name given to create.

<E extends Event> EventType<E> create(String name) factory

Creates a type. name is the name of the listener method, such as onReset, printed in the warning of a listener that fails.

String getName()

Returns the name given to create.


fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses

Report a problem with this page