Describes important stages of the life cycle of a Chooser dialog.
The Generics paramether T represents the type of value which is implied to be chosen.
author: nk160297
Method Summary
T
getSelectedValue() Returns the value which is the current selection in the chooser.
This method is intended to be used after the chooser is closed.
void
setSelectedValue(T newValue) Sets the value which has to be shown in the chooser as a selection.
Optionally, the value can be passed to a chooser in a constructor.
In other case, the selection of current value isn't necessary at all.
Returns the value which is the current selection in the chooser.
This method is intended to be used after the chooser is closed.
It also can be used to do validation for enabling/disabling of the Ok button.
Sets the value which has to be shown in the chooser as a selection.
Optionally, the value can be passed to a chooser in a constructor.
In other case, the selection of current value isn't necessary at all.
So the call of this method isn't obligatory.