title: modal dialog in gwt with clicklistener
body: <p>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.</p>
  
  <p>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</p>
  
  <pre><code>    final DialogBox msg = new DialogBox(false, true);
  </code></pre>
  
  <p>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 about the modality of the dialog box so it could expand the drop-down list or tick the checkbox.</p>
  
  <p>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?</p>