开发者

modal dialog in gwt with clicklistener

I've a huge panel with drop-down lists and checkboxes. To manage them I have to implement the ClickListener interface so that on expanding the drop-down list or clicking on the checkbox some actions are executed.

Then I have to show the dialog box with just one 'OK' button and this dialog should be modal. I create it using via the following constructor

    final DialogBox msg = new DialogBox(false, true);

so it should be modal and it is except for drop-down lists and checkboxes because clicking on them calls to the onClick(Widget sender) method which knows nothing 开发者_如何学Pythonabout the modality of the dialog box so it could expand the drop-down list or tick the checkbox.

I see that this could be resolved by just one if in that onClick() method where it should check if there is no modal window or there is one. But is there another option to resolve this issue?


Are you looking for setGlassEnabled(boolean)?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜