Package org.olat.core.gui.components.form.flexible.impl

Examples of org.olat.core.gui.components.form.flexible.impl.FormLayoutContainer


    initForm(ureq);   
  }
 
  @Override
  protected void initForm(FormItemContainer formLayout, Controller listener, UserRequest ureq) {
    FormLayoutContainer verticalL = FormLayoutContainer.createVerticalFormLayout("verticalL", getTranslator());
    formLayout.add(verticalL);
    sessionTimeout = uifactory.addIntegerElement("session.timeout", "session.timeout.label", initialSessionTimeoutInSec, verticalL);
    maxSessions = uifactory.addIntegerElement("max.sessions", "max.sessions.label", initialMaxSessions, verticalL);
    Submit saveButton = new FormSubmit("save","save");
    formLayout.add(saveButton)
View Full Code Here


    }
    if(coachComment!=null) {
      coachComment.setNotLongerThanCheck(2500, "input.toolong");
    }
   
    FormLayoutContainer buttonGroupLayout = FormLayoutContainer.createButtonLayout("buttonGroupLayout", getTranslator());
    formLayout.add(buttonGroupLayout);
    uifactory.addFormSubmitButton("save", buttonGroupLayout);
    uifactory.addFormCancelButton("cancel", buttonGroupLayout, ureq, getWindowControl());
  }
View Full Code Here

            cutVal.setEnabled(false);
          }
        });

    // Create submit and cancel buttons
    final FormLayoutContainer buttonLayout = FormLayoutContainer.createButtonLayout("buttonLayout", getTranslator());
    formLayout.add(buttonLayout);
    uifactory.addFormSubmitButton("submit", buttonLayout);
    uifactory.addFormCancelButton("cancel", buttonLayout, ureq, getWindowControl());
  }
View Full Code Here

      description.setValue(bgArea.getDescription());
      origName = bgArea.getName();
    }

    // Create submit and cancel buttons
    final FormLayoutContainer buttonLayout = FormLayoutContainer.createButtonLayout("buttonLayout", getTranslator());
    formLayout.add(buttonLayout);
    uifactory.addFormSubmitButton("finish", buttonLayout);
    uifactory.addFormCancelButton("cancel", buttonLayout, ureq, getWindowControl());
  }
View Full Code Here

 
  @Override
  protected void initForm(FormItemContainer formLayout, Controller listener, UserRequest ureq) {
    msg = uifactory.addTextAreaElement("msg", "infomsg", 1024, 20, 60, true, infomsg, formLayout);

    FormLayoutContainer buttonGroupLayout = FormLayoutContainer.createButtonLayout("buttonGroupLayout", getTranslator());
    formLayout.add(buttonGroupLayout);
    uifactory.addFormSubmitButton("submit", "submit", buttonGroupLayout);
    uifactory.addFormCancelButton("cancel", buttonGroupLayout, ureq, getWindowControl());
  }
View Full Code Here

    initForm(this.flc, this, ureq);
  }

  @Override
  protected void initForm(FormItemContainer formLayout, Controller listener, UserRequest ureq) {
    FormLayoutContainer mainLayout = FormLayoutContainer.createHorizontalFormLayout("mainLayout", getTranslator());
    formLayout.add(mainLayout);
   
    int size = lstGroups.size();
    String[] keys = new String[size+2];
    String[] values = new String[size+2];
    // all option
    keys[0] = CHOICE_ALL;
    values[0] = translate(CHOICE_ALL);
    // others option
    int count = 1;
    if(isAdmin) {
      keys[1] = CHOICE_OTHERS;
      values[1] = translate(CHOICE_OTHERS);
      count++;
    }
    // the groups
    for(int i = 0; i < size; i++) {
      keys[i+count] = lstGroups.get(i).getName();
      values[i+count] = lstGroups.get(i).getName();
    }
   
    groupChoice = new SingleSelectionImpl("cl.choice.groups", SingleSelectionImpl.createSelectboxLayouter("cl.choice.groups"));
    groupChoice = uifactory.addDropdownSingleselect("cl.choice.groups", "cl.choice.groups", mainLayout, keys, values, null);
    groupChoice.addActionListener(this, FormEvent.ONCHANGE);
    groupChoice.select(CHOICE_ALL, true);
   
    exportButton = new FormLinkImpl(EXPORT_TABLE, EXPORT_TABLE, EXPORT_TABLE, Link.BUTTON);
    mainLayout.add(exportButton);
  }
View Full Code Here

      autoSubscribeEl = uifactory.addCheckboxesHorizontal("pane.tab.auto_subscribe", formLayout, subscribesKeys, subscribesValues, null);
      autoSubscribeEl.select("", autoSubscribe);
      autoSubscribeEl.setLabel("pane.tab.auto_subscribe", null);
     
    // Create submit and cancel buttons
      final FormLayoutContainer buttonLayout = FormLayoutContainer.createButtonLayout("buttonLayout", getTranslator());
      formLayout.add(buttonLayout);
      uifactory.addFormSubmitButton("save", buttonLayout);
    }
View Full Code Here

    // add business group description input element
    description = uifactory.addRichTextElementForStringDataMinimalistic("form.description", "form.description", "", 10, -1, false,
        formLayout, ureq.getUserSession(), getWindowControl());

    // Create submit and cancel buttons
    final FormLayoutContainer buttonLayout = FormLayoutContainer.createButtonLayout("buttonLayout", getTranslator());
    formLayout.add(buttonLayout);
    uifactory.addFormSubmitButton("finish", buttonLayout);
    uifactory.addFormCancelButton("cancel", buttonLayout, ureq, getWindowControl());

  }
View Full Code Here

   
    emailDuration = uifactory.addIntegerElement ("emailDuration", "edit.parameter.form.email.duration", UserDeletionManager.getInstance().getDeleteEmailDuration(), formLayout);
    emailDuration.setDisplaySize(3);
    emailDuration.setMinValueCheck(1, null);
   
    FormLayoutContainer buttonGroupLayout = FormLayoutContainer.createButtonLayout("buttonGroupLayout", getTranslator());
    formLayout.add(buttonGroupLayout);
   
    uifactory.addFormSubmitButton("submit", "submit", buttonGroupLayout);
    uifactory.addFormCancelButton("cancel", buttonGroupLayout, ureq, getWindowControl());
  }
View Full Code Here

  }

  @Override
  @SuppressWarnings("unused")
  protected void initForm(FormItemContainer formLayout, Controller listener, UserRequest ureq) {
    FormLayoutContainer mainLayout = FormLayoutContainer.createHorizontalFormLayout("mainLayout", getTranslator());
    formLayout.add(mainLayout);
    if(canManage) {
      manageCheckpointsBtn = new FormLinkImpl("manageCheckpointsButton", MANAGE_CHECKPOINT.getCommand(), "cl.manage.button", Link.BUTTON);
      mainLayout.add(manageCheckpointsBtn);
    }
    if(canEdit) {
      configCheckpointsBtn = new FormLinkImpl("configCheckpointsButton", CONFIG_CHECKPOINT.getCommand(), "cl.config.button", Link.BUTTON);
      mainLayout.add(configCheckpointsBtn);
    }
  }
View Full Code Here

TOP

Related Classes of org.olat.core.gui.components.form.flexible.impl.FormLayoutContainer

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.