Package org.olat.core.gui.formelements

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


        renderTextAreaElement(f, te, sb, false, args);
      } else if (fe instanceof StaticTextElement) {
        StaticTextElement ste = (StaticTextElement) fe;
        renderStaticTextElement(ste, sb);
      } else if (fe instanceof StaticHTMLTextElement) {
        StaticHTMLTextElement ste = (StaticHTMLTextElement) fe;
        renderStaticHTMLTextElement(ste, sb);
      } else if (fe instanceof PasswordElement) {
        PasswordElement pe = (PasswordElement) fe;
        renderPasswordElement(f, pe, sb);
      } else if (fe instanceof TextElement) {
View Full Code Here


    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));
    }
   
    String[] keys = new String[] {
          "" + RepositoryEntry.ACC_OWNERS,
          "" + RepositoryEntry.ACC_OWNERS_AUTHORS,
View Full Code Here

      typeDisplayText.append(tName);
      typeDisplayText.append("</span>");
    } else {
      typeDisplayText.append(translate("cif.type.na"));
    }
    type = new StaticHTMLTextElement("cif.type", typeDisplayText.toString(), 255);
    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));
    }
   
    if (enableAuthorView) {
      String[] keys = new String[] {
          "" + RepositoryEntry.ACC_OWNERS,
View Full Code Here

        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);
View Full Code Here

    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));
    }
   
   
    String[] keys = new String[] {
          "" + RepositoryEntry.ACC_OWNERS,
View Full Code Here

TOP

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

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.