Examples of CheckBoxElement


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

  public void init() {
   
    RepositoryHandler handler = null;
    handler = RepositoryHandlerFactory.getInstance().getRepositoryHandler(entry);
   
    canCopy = new CheckBoxElement("cif.canCopy", entry.getCanCopy());
    addFormElement("cif_canCopy", canCopy);

    canReference = new CheckBoxElement("cif.canReference", entry.getCanReference());
    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

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

      logLevelSelectstat.select("" + stat.intValue(), true);
      addFormElement("logLevelstat", logLevelSelectstat);
    }*/
   
    if (InstantMessagingModule.isEnabled()&& CourseModule.isCourseChatEnabled()) {
      chatIsOn = new CheckBoxElement("chkbx.chat.onoff", cc.isChatEnabled());
      addFormElement("chatIsOn", chatIsOn);
    }

    // FIXME: remove "" and fix package...
    String[] values = new String[] { cc.getCssLayoutRef(), "" + translate("form.layout.setsystemcss") };
    String[] keys = new String[] { KEY_NO, KEY_YES };
    layout = new StaticSingleSelectionElement("form.layout.cssfile", keys, values);
    if (cc.hasCustomCourseCSS()) layout.select(KEY_NO, true);
    else layout.select(KEY_YES, true);
    addFormElement("layout", layout);

    String name;
    String softkey = cc.getSharedFolderSoftkey();

    RepositoryEntry re = RepositoryManager.getInstance().lookupRepositoryEntryBySoftkey(softkey, false);
    if (re == null) {
      cc.setSharedFolderSoftkey(CourseConfig.VALUE_EMPTY_SHAREDFOLDER_SOFTKEY);
      name = translate("sf.notconfigured");
    } else {
      name = re.getDisplayname();
    }
    String[] sfvalues = new String[] { name, translate("sf.notconfigured") };
    String[] sfkeys = new String[] { KEY_NO, KEY_YES };
    sfolder = new StaticSingleSelectionElement("sf.resourcetitle", sfkeys, sfvalues);
    if (cc.hasCustomSharedFolder()) sfolder.select(KEY_NO, true);
    else sfolder.select(KEY_YES, true);
    addFormElement("sfolder", sfolder);

    efficencyStatement = new CheckBoxElement("chkbx.efficency.onoff", cc.isEfficencyStatementEnabled());
    addFormElement("efficencyStatement", efficencyStatement);

    calendar = new CheckBoxElement("chkbx.calendar.onoff", cc.isCalendarEnabled());
    addFormElement("calendar", calendar);

   
    /*
     * glossary show name instead of check box OLAT-2126
View Full Code Here

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

    this.readOnly = readOnly;
    this.recipientsAreEditable = hasRecipientsEditable;
    setRecipientsEditableTo(recipientsAreEditable);
    setEmailFrom(emailFrom);
    addFormElement("tto", new StaticTextElement(NLS_CONTACT_TO, " "));
    addFormElement("tcpfrom", new CheckBoxElement(NLS_CONTACT_SEND_CP_FROM, true));
    setSubject(null);
    setBody(null);
   
    addSubmitKey("msg.save");
    if (isCanceable) {
View Full Code Here

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

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

   * @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

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

   * @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

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

   * @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

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

    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

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

    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

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

  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
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.