how to create javafx custom events