Package org.olat.core.gui.formelements

Examples of org.olat.core.gui.formelements.CheckBoxElement


     */
   
    public LogFileChooserForm(String name, Translator translator, Locale locale, boolean isOLATAdmin, boolean aLogV, boolean uLogV, boolean sLogV) {
        super(name, translator);
       
        logAdmin = new CheckBoxElement("logfilechooserform.logadmin", false);
        logUser = new CheckBoxElement("logfilechooserform.loguser", false);
        logStat = new CheckBoxElement("logfilechooserform.logstat", false);

        if (isOLATAdmin || aLogV)
            addFormElement("logAdmin", logAdmin);
        if (isOLATAdmin || uLogV)
            addFormElement("logUser", logUser);
View Full Code Here


   * @param name
   * @param chatEnabled
   */
  public CourseCalendarConfigForm(String name, Translator translator, boolean calendarEnabled) {
    super(name, translator);
    isOn = new CheckBoxElement("chkbx.calendar.onoff", calendarEnabled);
    addFormElement("isOn", isOn);
    addSubmitKey("save");
  }
View Full Code Here

   * @param name
   * @param chatEnabled
   */
  public CourseChatSettingsForm(String name, Translator translator, boolean chatEnabled) {
    super(name, translator);
    isOn = new CheckBoxElement("chkbx.chat.onoff", chatEnabled);
    addFormElement("isOn", isOn);
    setSubmitKey("save");
  }
View Full Code Here

   * @param name
   * @param chatEnabled
   */
  public CourseEfficencyStatementForm(String name, Translator translator, boolean chatEnabled) {
    super(name, translator);
    isOn = new CheckBoxElement("chkbx.efficency.onoff", chatEnabled);
    addFormElement("isOn", isOn);
    setSubmitKey("save");
  }
View Full Code Here

    end.setDateChooserTimeEnabled(true);
    end.setDateChooserDateFormat("%d.%m.%Y %H:%M");
    begin.setExample(end.getExample());
    addFormElement("cal.form.end", end);
   
    allDayEvent = new CheckBoxElement("cal.form.allday", event.isAllDayEvent());
    addFormElement("cal.form.allday", allDayEvent);

    spacer = new SpacerElement(true, false);
    addFormElement("spacer1", spacer);
    // recurrence
View Full Code Here

    addFormElement("cif_type", type);
   
    RepositoryHandler handler = null;
    if (typeName != null) handler = RepositoryHandlerFactory.getInstance().getRepositoryHandler(typeName);
   
    canCopy = new CheckBoxElement("cif.canCopy", entry.getCanCopy());
    if (enableAuthorView)
      addFormElement("cif_canCopy", canCopy);

    canReference = new CheckBoxElement("cif.canReference", entry.getCanReference());
    if (enableAuthorView)
      addFormElement("cif_canReference", canReference);

    if (handler != null && handler.supportsLaunch()) {
      canLaunch = new CheckBoxElement("cif.canLaunch", entry.getCanLaunch());
      addFormElement("cif_canLaunch", canLaunch);
    } else { // launch not supported
      canLaunch = null;
      addFormElement("cif_canLaunch", new StaticHTMLTextElement("cif.canLaunch", translate("cif.canLaunch.na"), 255));
    }

    if (handler != null && handler.supportsDownload()) {
      canDownload = new CheckBoxElement("cif.canDownload", entry.getCanDownload());
      addFormElement("cif_canDownload", canDownload);
    } else { // download not supported
      canDownload = null;
      addFormElement("cif_canDownload", new StaticHTMLTextElement("cif.canDownload", translate("cif.canDownload.na"), 255));
    }
View Full Code Here

  CompMenuForm(String name, Translator translator, Boolean compMenuConfig) {
    super(name, translator);

    if (compMenuConfig == null) compMenuConfig = Boolean.TRUE; // default

    cpMenu = new CheckBoxElement(NLS_DISPLAY_CONFIG_COMPMENU)
    cpMenu.setChecked(compMenuConfig.booleanValue());
    addFormElement("cpMenu", cpMenu);
  }
View Full Code Here

    Iterator iter = providers.iterator();
    while (iter.hasNext()) {
      AuthenticationProvider provider = (AuthenticationProvider) iter.next();
      if (provider.isEnabled()) {
        String providerName = provider.getName();
        CheckBoxElement authElem = searchform.getCheckBoxElement("auth." + providerName);
        if (authElem != null && authElem.isChecked()) {
          authProvidersList.add(providerName);
        }
      }
    }
   
    if(WebDAVManager.getInstance().isEnabled()) {
      CheckBoxElement authElem = searchform.getCheckBoxElement("auth." + WebDAVAuthManager.PROVIDER_WEBDAV);
      if (authElem != null && authElem.isChecked()) {
        authProvidersList.add(WebDAVAuthManager.PROVIDER_WEBDAV);
      }
    }
   
    // add null provider as special case
View Full Code Here

    // 1) general accout type
    String[] isAnonymousKeys = {"true", "false"};
    String[] isAnonymousValues = {translate("rightsForm.isAnonymous.true"), translate("rightsForm.isAnonymous.false")};
    isAnonymous = new StaticSingleSelectionElement("rightsForm.isAnonymous", isAnonymousKeys, isAnonymousValues);
    // 2) system roles
    isUsermanager = new CheckBoxElement("rightsForm.isUsermanager");
    isGroupmanager = new CheckBoxElement("rightsForm.isGroupmanager");
    isAuthor = new CheckBoxElement("rightsForm.isAuthor");
    isAdmin = new CheckBoxElement("rightsForm.isAdmin");
   
//    TODO allow arguments for label to inform user about the institution which will be affected by this option
//    if(institution != null) {
//      isInstitutionalResourceManager = new CheckBoxElement("rightsForm.isInstitutionalResourceManager.institution");
//      isInstitutionalResourceManager.setLabelKeyArgs(new String[] {institution});
//    } else {
      isInstitutionalResourceManager = new CheckBoxElement("rightsForm.isInstitutionalResourceManager");
//    }
   
    // 3) other security config
    statusSelectionElement = createStatusSelectionElement();
    // now use setXXX methods and then finishInitialization
View Full Code Here

    }

    // role constraint
    addFormElement("space1", new SpacerElement(true, false));
    addFormElement("title.roles", new TitleElement("search.form.title.roles"));
    admin = new CheckBoxElement("search.form.constraint.admin");
    addFormElement("admin", admin);
    author = new CheckBoxElement("search.form.constraint.author");
    addFormElement("author", author);
    groupmanager = new CheckBoxElement("search.form.constraint.groupmanager");
    addFormElement("groupmanager", groupmanager);
    usermanager = new CheckBoxElement("search.form.constraint.usermanager");
    addFormElement("usermanager", usermanager);
    oresmanager = new CheckBoxElement("search.form.constraint.oresmanager");
    addFormElement("oresmanager", oresmanager);

    // authentication constraints
    addFormElement("space2", new SpacerElement(true, false));
    addFormElement("title.auth", new TitleElement("search.form.title.authentications"));
    // take all providers from the config file
    // convention is that a translation key "search.form.constraint.auth." +
    // providerName
    // must exist. the element is stored using the name "auth." + providerName
    Collection providers = LoginModule.getAuthenticationProviders();
    Iterator iter = providers.iterator();
    while (iter.hasNext()) {
      AuthenticationProvider provider = (AuthenticationProvider) iter.next();
      if (provider.isEnabled()) {
        String providerName = provider.getName();
        CheckBoxElement authElem = new CheckBoxElement("search.form.constraint.auth." + providerName);
        addFormElement("auth." + providerName, authElem);
      }
    }
    if(WebDAVManager.getInstance().isEnabled()) {
      CheckBoxElement authElem = new CheckBoxElement("search.form.constraint.auth." + WebDAVAuthManager.PROVIDER_WEBDAV);
      addFormElement("auth." + WebDAVAuthManager.PROVIDER_WEBDAV, authElem);
    }
   
    // add additional no authentication element
    noAuth = new CheckBoxElement("search.form.constraint.auth.none");
    addFormElement("noAuth", noAuth);
    // special case login denied
    addFormElement("status", createStatusSelectionElement());

    // creation date constraints
View Full Code Here

TOP

Related Classes of org.olat.core.gui.formelements.CheckBoxElement

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.