code: @Override
      protected void defineWidgets() {
  
          setKeyPrefix(KEY_PREFIX);
  
          // initialize the cache object to use for the dialog
          CmsFlexController controller = (CmsFlexController)getJsp().getRequest().getAttribute(
              CmsFlexController.ATTRIBUTE_NAME);
          CmsFlexCache cache = controller.getCmsCache();
  
          setOffline(true);
          setOnline(true);
          setMode(MODE_ALL);
  
          // widgets to display
          if (cache.cacheOffline()) {
              addWidget(new CmsWidgetDialogParameter(this, "offline", PAGES[0], new CmsCheckboxWidget()));
          }
          addWidget(new CmsWidgetDialogParameter(this, "online", PAGES[0], new CmsCheckboxWidget()));
          addWidget(new CmsWidgetDialogParameter(this, "mode", PAGES[0], new CmsRadioSelectWidget(getModes())));
      }
docs: Creates the list of widgets for this dialog.<p>