code: protected void setOkEnabled(boolean enabled) {
  
          if (enabled) {
              m_okButton.enable();
          } else {
              m_okButton.disable(
                  org.opencms.ade.sitemap.client.Messages.get().key(
                      org.opencms.ade.sitemap.client.Messages.GUI_NEW_GALLERY_VALIDATION_0));
          }
      }
docs: Enables or disables the OK button.<p>
  
  @param enabled <code>true</code> to enable the button