Fix inconsistencies and errors with Dialog onOpen/Close

Removed inherited (and often wrong) documentation, replaced direct
usage of onApplyButtonClick with more standard onClose handling,
and one case of calling the wrong parent method.

Change-Id: I86ed16860e996b42c141a6499eefb9084d759a72
Merge "Fix inconsistencies and errors with Dialog onOpen/Close"