Examples of TextElement


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

  /**
   * Initialize search form.
   */
  public void init() {
   
    displayName = new TextElement("cif.displayname", "", false, 255);
    addFormElement("cif_displayname", displayName);
   
    if(limitUsername != null) {
      author = new StaticTextElement("cif.author", limitUsername);
      author.setValue(limitUsername);
    } else {
      author = new TextElement("cif.author", "", false, 255);
    }
    addFormElement("cif_author", author);
   
    description = new TextElement("cif.description", "", false, 255);
    addFormElement("cif_description", description);
   
    if (isAdmin) {
      id = new IntegerElement("cif.id");
      addFormElement("cif_id", id);
View Full Code Here

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

   */
  public void init() {
    if (enableAuthorView) {
      addFormElement("cif_id", new StaticTextElement("cif.id", entry.getKey() != null ? entry.getKey().toString() : translate("cif.id.na")));
    }
    displayName = new TextElement("cif.displayname", entry.getDisplayname(), true, MAX_DISPLAYNAME);
    displayName.setMaxLength(100);
    addFormElement("cif_displayname", displayName);
    initialAuthor = new StaticTextElement("cif.initialAuthor", entry.getInitialAuthor());
    addFormElement("cif_initialAuthor", initialAuthor);
   
View Full Code Here

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

    groupNames.setMandatory(true);
    groupNames.setExample(translate("bgcopywizard.multiple.groupnames.example"));
    addFormElement("groupNames", groupNames);

    String maxString = (defaultMaxValue == null ? null : defaultMaxValue.toString());
    bgMax = new TextElement("create.form.title.max", maxString, false, 6, 5);
    addFormElement("fe_bgMax", bgMax);

    setSubmitKey("finish"); // wizard style
  }
View Full Code Here

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

    String user = (String)config.get(CONFIGKEY_USER);
    String pass = (String)config.get(CONFIGKEY_PASS);

    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);

    addFormElement("user", tuser);
    addFormElement("pass", tpass);
View Full Code Here

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

   */
  @SuppressWarnings("unused")
  public UserSearchForm(String name, Translator translator, boolean isAdmin, boolean cancelbutton, boolean statusEnabled) {
    super(name, translator);
    this.isAdmin = isAdmin;
    addFormElement("login", new TextElement("search.form.login", 128));
   
    UserManager um = UserManager.getInstance();
    userPropertyHandlers = um.getUserPropertyHandlersFor(formIdentifyer, isAdmin);
    // Add all available user fields to this form
    for (UserPropertyHandler userPropertyHandler : userPropertyHandlers) {
View Full Code Here

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

   
    userList = new TextAreaElement("delete.list", 10, 35, null);
    userList.setExample(translator.translate("delete.list.example"));
    userList.setMandatory(true);
   
    reason = new TextElement("delete.reason", null, true, 35, 100);
   
    addFormElement("userlist", userList);
    addFormElement("reason", reason);
    addSubmitKey("button.delete.users", "subm");
  }
View Full Code Here

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

   */
  public UsermanagerUserSearchForm(String name, Translator translator) {
    super(name, translator);
    // regular search fields
    addFormElement("title.user", new TitleElement("search.form.title.user"));
    login = new TextElement("search.form.login", 128);
    addFormElement("login", login);

    // search user fields
    UserManager um = UserManager.getInstance();
    userPropertyHandlers = um.getUserPropertyHandlersFor(formIdentifyer, true);
View Full Code Here

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

    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) {
      emailToAdresses = StringHelper.formatIdentitesAsEmailToString(eList, "\n");
    }
    teArElEmailToAdresses = new TextAreaElement("message.emailtoadresses", 3, 60, emailToAdresses);
    addFormElement("email", teArElEmailToAdresses);

    String mS = (String) config.get(COEditController.CONFIG_KEY_MSUBJECT_DEFAULT);
    String mSubject = (mS != null) ? mS : "";
    teElSubject = new TextElement("message.subject", mSubject, false, 60, 255);
    addFormElement("mSubject", teElSubject);

    String mB = (String) config.get(COEditController.CONFIG_KEY_MBODY_DEFAULT);
    String mBody = (mB != null) ? mB : "";
    teArElBody = new TextAreaElement("message.body", 8, 60, mBody);
View Full Code Here

Examples of org.openbp.core.model.item.process.TextElement

        else if (next instanceof TextElementFigure)
        {
          TextElementFigure textElementFigure = (TextElementFigure) next;
          textElementFigure.encodeGeometry();

          TextElement textElement = textElementFigure.getTextElement();

          // Clone the element and add it to the process
          textElement = (TextElement) textElement.clone();
          process.addTextElement(textElement);

          copyFlavor = ClientFlavors.PROCESS_ITEM;
        }
View Full Code Here

Examples of org.openscience.jchempaint.renderer.elements.TextElement

                                    totalBounds.getMaxY()+d,
                                    totalBounds.getMaxX()+d,
                                    totalBounds.getMinY()-d,
                                    model.getForeColor()));
        if (reaction.getID() != null) {
          diagram.add(new TextElement((totalBounds.getMinX()
                                      +totalBounds.getMaxX())/2,
                                      totalBounds.getMinY()-d,
                                      reaction.getID(),
                                      model.getForeColor()));
        }
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.