Java implementation of Qt's Slots and Signals