Examples of SpacerElement


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

    String fullURI = getFullURL(proto, host, port, uri, query).toString();
   
    thost = new TextElement("TUConfigForm.url", fullURI, true, 60, 255);
    thost.setExample("http://www.yourserver.com/page.html");
    addFormElement("host", thost);
    addFormElement("st", new SpacerElement(true, false));
   
    // new radio button element
    String[] selectableValues = new String[] {
        OPTION_TUNNEL_THROUGH_OLAT_INLINE,
        OPTION_TUNNEL_THROUGH_OLAT_IFRAME,
        OPTION_SHOW_IN_OLAT_IN_AN_IFRAME,
        OPTION_SHOW_IN_NEW_BROWSER_WINDOW
    };
    String[] selectableLabels = new String[] {
        translate(NLS_OPTION_TUNNEL_INLINE_LABEL),
        translate(NLS_OPTION_TUNNEL_IFRAME_LABEL),
        translate(NLS_OPTION_OLAT_IFRAME_LABEL),
        translate(NLS_OPTION_EXTERN_PAGE_LABEL)
    };
    StaticHTMLTextElement expl = new StaticHTMLTextElement(NLS_DESCRIPTION_LABEL, translate(NLS_DESCRIPTION_PREAMBLE), 32600);
    addFormElement("expl", expl);
   
    String loadedConfig = convertConfigToNewStyle(config);
    selectables = new RadioButtonGroupElement(true, NLS_DISPLAY_CONFIG_EXTERN, selectableValues, selectableLabels);
    selectables.select(loadedConfig, true);
    selectables.setNoLabel(true);
    selectables.setHTMLIsAllowed(true);
    addFormElement("selectables",  selectables);
    addFormElement("s3", new SpacerElement(false, true));

    tuser = new TextElement("TUConfigForm.user", (user == null) ? "" : user, 255);
    tpass = new PasswordElement("TUConfigForm.pass", 255);
    tpass.setValue((pass == null) ? "" : pass);
View Full Code Here

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

    // assessable child nodes
    scoreNodeIdents = initNodeSelectionElement("scform.scoreNodeIndents", scoreCalculator, (scoreCalculator == null ? null
        : scoreCalculator.getSumOfScoreNodes()), nodeIdentList);
    addFormElement("scoreNodeIdents", scoreNodeIdents);

    SpacerElement spacer = new SpacerElement(true, false);
    addFormElement("spacer", spacer);

    // passed configuration

    String[] passedTypeKeys = new String[] { ScoreCalculator.PASSED_TYPE_NONE, ScoreCalculator.PASSED_TYPE_CUTVALUE,
View Full Code Here

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

  }

  public void finishInitialization() {
    VisibilityDependsOnSelectionRule disableWhenGuestRule;
   
    SpacerElement spacer = new SpacerElement(true, false);

    if (isAnonymous != null) {
      addFormElement("isAnonymous", isAnonymous);
      addFormElement("spacer1", spacer);
      disableWhenGuestRule = new VisibilityDependsOnSelectionRule(isAnonymous, spacer, "true", false, "", true);
View Full Code Here

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

    for (UserPropertyHandler userPropertyHandler : userPropertyHandlers) {
      if (userPropertyHandler == null) continue;
      FormElement ui = userPropertyHandler.getFormElement(getLocale(), null, formIdentifyer, true);
      String group = userPropertyHandler.getGroup();
      if (!group.equals(currentGroup)) {
        if (currentGroup != null) addFormElement("spacer_" + group, new SpacerElement());
        currentGroup = group;
      }
      addFormElement(userPropertyHandler.getName(), ui);
    }

    // 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
    addFormElement("space3", new SpacerElement(true, false));
    addFormElement("title.date", new TitleElement("search.form.title.date"));
    afterDate = new DateElement("search.form.afterDate", getLocale());
    addFormElement("afterDate", afterDate);
    beforeDate = new DateElement("search.form.beforeDate", getLocale());
    addFormElement("beforeDate", beforeDate);
View Full Code Here

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

    //
    partips = new CheckBoxElement("form.message.chckbx.partips", config.getBooleanEntry(COEditController.CONFIG_KEY_EMAILTOPARTICIPANTS)
        .booleanValue());
    addFormElement("partips", partips);
    //
    SpacerElement s1 = new SpacerElement(true, false);
    addFormElement("s1", s1);
    //
    group = new TextElement("form.message.group", (String) config.get(COEditController.CONFIG_KEY_EMAILTOGROUPS), false, 3000);
    group.setExample(translate("form.message.example.group"));
    PopupData pd = new PopupData("popupchoosegroups" + this.hashCode(), "popupchoosegroups", "popupchoosegroups", 800, 400);
    group.setPopupData(pd);
    addFormElement(FormRenderer.JSELEMENTID +"popupchoosegroups"+this.hashCode(), group);
    //
    area = new TextElement("form.message.area", (String) config.get(COEditController.CONFIG_KEY_EMAILTOAREAS), false, 3000);
    area.setExample(translate("form.message.example.area"));
    PopupData pda = new PopupData("popupchooseareas" + this.hashCode(), "popupchooseareas", "popupchooseareas", 800, 400);
    area.setPopupData(pda);
    addFormElement(FormRenderer.JSELEMENTID +"popupchooseareas"+this.hashCode(), area);
    //
    SpacerElement s2 = new SpacerElement(true, false);
    addFormElement("s2", s2);

    this.eList = (List) config.get(COEditController.CONFIG_KEY_EMAILTOADRESSES);
    String emailToAdresses = "";
    if (eList != null) {
View Full Code Here

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

   */
  public void init() {
    addFormElement("heading1", new TitleElement("form.please.enter.old"));
    addFormElement(PASSWORD_OLD, new PasswordElement("form.password.old", 20, 128));
    getPasswordElement(PASSWORD_OLD).setMandatory(true);
    addFormElement("spacer1", new SpacerElement(false, true));
    addFormElement("heading2", new TitleElement("form.please.enter.new"));
    addFormElement(PASSWORD_NEW1, new PasswordElement("form.password.new1", 20, 128));
    getPasswordElement(PASSWORD_NEW1).setMandatory(true);
    addFormElement(PASSWORD_NEW2, new PasswordElement("form.password.new2", 20, 128));
    getPasswordElement(PASSWORD_NEW2).setMandatory(true);
View Full Code Here

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

    addFormElement("escapedby", escapedByEl);
    carriageReturnEl = new TextElement("form.carriagereturn", car,false, 5, 50);
    carriageReturnEl.setExample(translate("form.carriagereturn.ex"));
    addFormElement("carriagereturn", carriageReturnEl);
   
    addFormElement("spacer1", new SpacerElement(false, true));
   
    fileNameSuffixEl = new TextElement("form.filenamesuffix", suf, false, 5, 50);
    fileNameSuffixEl.setExample(translate("form.filenamesuffix.ex"));
    addFormElement("filenamesuffix", fileNameSuffixEl);
   
View Full Code Here

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

        .getMapKeysAsStringArray(languages), StringHelper.getMapValuesAsStringArray(languages));
    singleSelection.select(languageKey, true);
    addFormElement("lang", singleSelection);

    // third the login name and password
    addFormElement("space_username", new SpacerElement(true, true));
    addFormElement("usr_login", new TextElement("user.login", "", 128));
    getTextElement("usr_login").setMandatory(true);
    addFormElement("pwd1", new PasswordElement("user.password", 255));
    getTextElement("pwd1").setMandatory(true);
    addFormElement("pwd2", new PasswordElement("user.password2", 255));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.