Examples of Form


Examples of funcy.Form

  public IndexPage(Result result) {
    super(result, "/");
  }

  public IndexPage save(String msg) {
    Form form = form(0);
    form.set("test", msg);
    return new IndexPage(form.submitName("Save"));
  }
View Full Code Here

Examples of it.stefanobertini.zebra.cpcl.labelmode.Form

public class FormTest {

    @Test
    public void test() {
  Form command = new Form();

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("FORM");

  assertCommand(output, command);
View Full Code Here

Examples of javango.forms.Form

    public CharField myField;

  }
 
  public void testValidatorNotEmpty() throws Exception {
    Form form = injector.getInstance(RequiredTestForm.class).bind(new HashMap<String, String[]>());
    assertFalse(form.isValid());
    Map<String, String>errors = form.getErrors();
    assertTrue(errors.containsKey("myField"));
    assertEquals("may not be null or empty", errors.get("myField"));
  }
View Full Code Here

Examples of javax.microedition.lcdui.Form

  /**
   * @see net.sf.microlog.core.appender.AbstractAppender#open()
   */
  public synchronized void open() throws IOException {
    if (logForm == null) {
      this.logForm = new Form(DEFAULT_LOGFORM_TITLE);
    }
    logOpen = true;
  }
View Full Code Here

Examples of javax.microedition.lcdui.Form

    final private Form initializeDetailsForm( final RssItunesFeed feed ) {
      //#ifdef DTEST
      System.gc();
      long beginMem = Runtime.getRuntime().freeMemory();
      //#endif
      Form displayDtlForm = new Form( feed.getName() );
      displayDtlForm.addCommand( m_backCommand );
      displayDtlForm.setCommandListener(this);
      final boolean pageEnabled = m_appSettings.getPageEnabled();
      final boolean htmlEnabled = m_appSettings.getHtmlEnabled();
      int fontSize = pageEnabled ? getFontSize() : 0;
      if (m_itunesEnabled && feed.isItunes()) {
        final String language = feed.getLanguage();
        if (language.length() > 0) {
          displayDtlForm.append(getTextItem(pageEnabled, htmlEnabled,
                "Language:", language, fontSize, false,
                displayDtlForm, this));
        }
        final String author = feed.getAuthor();
        if (author.length() > 0) {
          displayDtlForm.append(getTextItem(pageEnabled, htmlEnabled,
                "Author:", author, fontSize, false,
                displayDtlForm, this));
        }
        final String subtitle = feed.getSubtitle();
        if (subtitle.length() > 0) {
          displayDtlForm.append(getTextItem(pageEnabled, htmlEnabled,
                "Subtitle:",
                subtitle, fontSize, false, displayDtlForm, this));
        }
        final String summary = feed.getSummary();
        if (summary.length() > 0) {
          displayDtlForm.append(getTextItem(pageEnabled, htmlEnabled,
                "Summary:", summary, fontSize, false,
                displayDtlForm, this));
        }
        displayDtlForm.append(new StringItem("Explicit:", feed.getExplicit()));
        final String title = feed.getTitle();
        if (title.length() > 0) {
          displayDtlForm.append(getTextItem(pageEnabled, htmlEnabled,
                "title:", title, fontSize, false,
                displayDtlForm, this));
        }
        final String description = feed.getDescription();
        if (description.length() > 0) {
          displayDtlForm.append(getTextItem(pageEnabled, htmlEnabled,
                "Description:", description, fontSize, false,
                displayDtlForm, this));
        }
      }
      final String link = feed.getLink();
      if (link.length() > 0) {
        displayDtlForm.append(getTextItem(pageEnabled, htmlEnabled,
              "Link:", link, fontSize, true,
              displayDtlForm, this));
      }
      final Date feedDate = feed.getDate();
      if (feedDate != null) {
        displayDtlForm.append(getTextItem(pageEnabled, htmlEnabled,
              "Date:", feedDate.toString(), fontSize, false,
              displayDtlForm, this));
      }
      //#ifdef DTEST
      System.gc();
View Full Code Here

Examples of javax.microedition.lcdui.Form

      }
     
      //#ifdef DITUNES
      /** Display Itune's feed detail */
      if( c == m_bookmarkDetailsCmd ) {
        Form displayDtlForm = initializeDetailsForm(
            m_curRssParser.getRssFeed() );
        setCurrent( displayDtlForm );
      }
      //#endif

View Full Code Here

Examples of javax.ws.rs.core.Form

    public AccessTokenValidation validateAccessToken(MessageContext mc,
                                                     String authScheme,
                                                     String authSchemeData)
        throws OAuthServiceException {
        WebClient client = WebClient.fromClient(tokenValidatorClient, true);
        Form form = new Form().param(OAuthConstants.AUTHORIZATION_SCHEME_TYPE, authScheme)
                              .param(OAuthConstants.AUTHORIZATION_SCHEME_DATA, authSchemeData);
        return client.post(form, AccessTokenValidation.class);
    }
View Full Code Here

Examples of lab5.common.Form

        this.R = 1;
        this.origin = null;
        this.step = 0;
        this.selectedX = 0;
        this.selectedY = 0;
        this.form = new Form(R);
        isDataUpdate = false;
    }
View Full Code Here

Examples of lotus.domino.Form

      Database currDb = ExtLibUtil.getCurrentDatabase();
      View contacts = currDb.getView("AllContacts");
      Document doc = contacts.getFirstDocument();
      if (doc.hasItem("Form")) {
        String formName = doc.getItemValueString("Form");
        Form fm = currDb.getForm(formName);
        NoteCollection notes = currDb.createNoteCollection(false);
        notes.add(fm);
        ExtLibUtil.getViewScope().put("oldJavaTest", notes.getFirstNoteID());
      }
    } catch (NotesException e) {
View Full Code Here

Examples of net.sf.gwtseam.model.Form

 
  private class FiniLayout implements Command
  {
    public void execute()
    {
      Form form = forms.get(currentLayout.getForm());
      if (form != null)
      {
        currentLayout.setPackage(form.getPackage());
        currentLayout.setClazz(form.getClazz());
      }
      layouts.put(currentLayout.getName(), currentLayout);
      currentLayout = null;
    }
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.