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

Examples of org.olat.core.gui.components.form.flexible.impl.elements.SingleSelectionImpl


   * @param theKeys
   * @param theValues
   * @return
   */
  public SingleSelection addRadiosHorizontal(final String name, final String i18nLabel, FormItemContainer formLayout, final String[] theKeys, final String[] theValues) {
    SingleSelection ss = new SingleSelectionImpl(name, SingleSelectionImpl.createHorizontalLayout(name)){
      {
        this.keys = theKeys;
        this.values = theValues;
      }
    };
View Full Code Here


   * @param theKeys
   * @param theValues
   * @return
   */
  public SingleSelection addRadiosVertical(final String name, final String i18nLabel, FormItemContainer formLayout, final String[] theKeys, final String[] theValues) {
    SingleSelection ss = new SingleSelectionImpl(name, SingleSelectionImpl.createVerticalLayout(name)){
      {
        this.keys = theKeys;
        this.values = theValues;
      }
    };
View Full Code Here

   * @param theValues
   * @param theCssClasses
   * @return
   */
  public SingleSelection addDropdownSingleselect(final String name, final String i18nLabel, FormItemContainer formLayout, final String[] theKeys, final String[] theValues, final String[] theCssClasses) {
    SingleSelection ss = new SingleSelectionImpl(name, SingleSelectionImpl.createSelectboxLayouter(name)){
      {
        this.keys = theKeys;
        this.values = theValues;
        this.cssClasses = theCssClasses;
      }
View Full Code Here

    // list of assessable nodes is wrapped in a layout container for proper rendering
    assessNodesListContainer = (FormLayoutContainer)FormLayoutContainer.createSelbox("assNodesListContainer", getTranslator());
    assessNodesListContainer.setLabel("form.easy.nodePassed", null);
    assessSubContainer.add(assessNodesListContainer);
    nodePassed = new SingleSelectionImpl("nodePassed", assessNodesListContainer) {
      {
        keys = nodePassedKeys;
        values = nodePassedValues;
      }
    };
   
    if (nodePassedInitVal != null) {
      if (selectedNodeIsInList) {
        nodePassed.select(nodePassedInitVal, true);
      } else {
        nodePassed.select(DELETED_NODE_IDENTIFYER, true);
      }
    } else {
      nodePassed.select(NO_NODE_SELECTED_IDENTIFYER, true);
    }
    assessNodesListContainer.add(nodePassed);
   
    assessmentTypeSwitch = new SingleSelectionImpl("assessmentTypeSwitch", SingleSelectionImpl.createVerticalLayout("yingyang")) {
      {
        keys = assessmentSwitchKeys;
        values = assessmentSwitchValues;
      }
    };
View Full Code Here

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

TOP

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

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.