addActionListener

Adds a listener to be notified of view actions.

Parameters

listener

The listener to notify when a view action happened.