Examples of Submit


Examples of org.netbeans.server.uihandler.api.Submit

        assertNotNull(ReporterUtils.prepareMessagePrefix(sbm));
        assertEquals("cat ", ReporterUtils.prepareMessagePrefix(sbm));
    }

    public void testPrepareWithEmptyMessagePrefix() {
        Submit sbm = prepareDuplicatesData();
        assertNotNull(ReporterUtils.prepareMessagePrefix(sbm));
        assertEquals("", ReporterUtils.prepareMessagePrefix(sbm));

        MockSubmit dup1 = (MockSubmit) sbm.getDuplicates().iterator().next();
        dup1.setReporter(new Submit.Reporter("user2", true, ""));

        assertNotNull(ReporterUtils.prepareMessagePrefix(sbm));
        assertEquals("Ignore empty prefix", "", ReporterUtils.prepareMessagePrefix(sbm));

        List<Submit> duplicates = (List)sbm.getDuplicates();
        MockSubmit du = (MockSubmit) duplicates.get(duplicates.size() - 1);
        du.setReporter(new Submit.Reporter("user9", true, "cat"));

        assertNotNull(ReporterUtils.prepareMessagePrefix(sbm));
        assertEquals("cat ", ReporterUtils.prepareMessagePrefix(sbm));
View Full Code Here

Examples of org.olat.core.gui.components.form.flexible.elements.Submit

    }else if(!singleSelection && !layoutVertical){
      entrySelector = uifactory.addCheckboxesHorizontal(selectionName, null, formLayout, keysIn, translatedKeys, null);
    }
   
    // add Submit
    Submit subm = new FormSubmit("subm", submitI18nKey);
    formLayout.add(subm);
  }
View Full Code Here

Examples of org.olat.core.gui.components.form.flexible.elements.Submit

    nbrCharInFile = uifactory.addIntegerElement("nbr.char.in.file", "filesystemtest.nbrCharInFile.label", 100, verticalL);
    callFsSync = uifactory.addRadiosHorizontal("call.fs.sync", "filesystemtest.call.fs.sync.label", verticalL, new String[] {"yes","no"}, new String[] {"yes","no"});
    callFsSync.select("no", true);
    checkWithRetries = uifactory.addRadiosHorizontal("check.with.retries","filesystemtest.check.with.retries.label", verticalL, new String[] {"yes","no"}, new String[] {"yes","no"});
    checkWithRetries.select("no", true);
    Submit saveButton = new FormSubmit("save","save");
    formLayout.add(saveButton)
 
View Full Code Here

Examples of org.olat.core.gui.components.form.flexible.elements.Submit

   

    entrySelector = uifactory.addCheckboxesVertical("entries",  null, boundTo, entries, entries, null, 1);
    // submitCancel after checkboxes
    //
    Submit subm = new FormSubmit("subm", "apply");
    Reset reset = new FormReset("reset", "cancel");
    boundTo.add(subm);
    boundTo.add(reset);
  }
View Full Code Here

Examples of org.olat.core.gui.components.form.flexible.elements.Submit

  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

Examples of org.olat.core.gui.components.form.flexible.elements.Submit

  @Override
  protected void initForm(FormItemContainer formLayout, Controller listener, UserRequest ureq) {
    FormLayoutContainer verticalL = FormLayoutContainer.createVerticalFormLayout("verticalL", getTranslator());
    formLayout.add(verticalL);
    nbrSessions = uifactory.addIntegerElement("nbr.session", "nbr.session.label", 0, verticalL);
    Submit oldestSessionButton = new FormSubmit("save","oldest.session.button");
    formLayout.add(oldestSessionButton)
 
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.