All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bushe.swing.event.annotation.UseTheClassOfTheAnnotatedMethodsParameter Maven / Gradle / Ivy

Go to download

Nifty GUI is a Java Library that supports the building of interactive user interfaces for games or similar applications. It utilizes OpenGL for rendering and it can be easily integrated into many rendering systems. The configuration of the GUI is stored in xml files with little supporting Java code. In short Nifty helps you to layout stuff, display it in a cool way and interact with it :)

There is a newer version: 1.4.3
Show newest version
package org.bushe.swing.event.annotation;

/**
 * This is a dummy class to get around a limitation with annotations.
 * 

* It's nice to use an @EventSubscriber annotation without any parameters. For example: *

 * @EventSubscriber public void onEvent(FooEvent event) { //do something } 
In this case, the method should * obviously be subscribed to the FooEvent class. Since the eventClass is not required, annotations require a default to * be supplied. A default of null is not allowed by the compiler since it is not a class literal. A default of * Object.class cannot be used, since it is legal to subscribe to Object. hence, this class was created which documents * the issue and provides decent feedback when using an IDE's parameter insight. */ public final class UseTheClassOfTheAnnotatedMethodsParameter { }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy