Sets an on click listener for a view, but ensures the action cannot be triggered more often than coolDown milliseconds.