public void setModal(boolean modal) { if (modal != dialogBox.isModal()) { if (isShowing()) { if (modal) glass.show(); else glass.hide(); } dialogBox.setModal(modal); } }
protected void afterHide(boolean autoHiden) { if (isModal()) glass.hide(); }