org.xith3d.ui.hud.listeners
Interface ButtonListener

All Known Implementing Classes:
ButtonAdapter, HUDEditor, WidgetEventsReceiverAdapter

public interface ButtonListener

This Listener is added to a Button Widget to be notified of a click event. It replaces the now deprecated WidgetActionListener. The advantage is that it fits into the onEvent-system and is able to pass an Enum member or an Integer in the onButtonClicked() event, which can be used in a switch statement.


Method Summary
 void onButtonClicked(AbstractButton button, java.lang.Object userObject)
          This event is fired when a Button was clicked.
 

Method Detail

onButtonClicked

void onButtonClicked(AbstractButton button,
                     java.lang.Object userObject)
This event is fired when a Button was clicked.

Parameters:
button - the clicked Button
userObject - the Button's userObject