|
Tim,
implement #onViewOpened to handle setting focus to the first field.
MyDialog>>onViewOpened
aField setFocus
aField is actually a presenter that was setup in the #createComponents
method. The presenter can be any type of Presenter or any of the
subclasses from ValuePresenter such as Text, Number, Date, Time,
Boolean etc.
This will ensure that when the dialog box opens, the event #onViewOpend
executes a message send to the correct field and gives it focus. Take a
look at Presenter>>setFocus for additional details.
onViewOpened can also be used to perform other types of initialization
for dropDownBoxes or other components embedded withing the dialog.
Pax
|