public DialogFrameworkOptions.Builder modal(boolean modal) {
            options.setModal(modal);
            return this;
        }
Controls modality of the dialog.
@param modal
@return
primefaces/src/main/java/org/primefaces/model/DialogFrameworkOptions.java