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.
Description
Section titled “Description”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.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
EventType<E> | create(String name) factory | Creates a type. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
String | getName() | Returns the name given to create. |
Creation details
Section titled “Creation details”create
Section titled “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.
Method details
Section titled “Method details”getName
Section titled “getName”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
