Examples of Form


Examples of com.stripbandunk.tutorial.customizemessagebox.widget.Form

        SwingUtilities.invokeLater(app);
    }

    @Override
    public void run() {
        Form form = new Form();
        form.setVisible(true);
    }
View Full Code Here

Examples of com.substanceofcode.testlcdui.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 com.substanceofcode.testlcdui.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 com.sun.dtv.lwuit.Form

     */
    public static void showLog() {
        try {
            String text = getLogContent();
            TextArea area = new TextArea(text, 5, 20);
            Form f = new Form("Log");
            final Form current = Display.getInstance().getCurrent();
            Command back = new Command("Back") {
                public void actionPerformed(ActionEvent ev) {
                    current.show();
                }
            };
            f.addCommand(back);
            f.setBackCommand(back);
            f.setLayout(new BorderLayout());
View Full Code Here

Examples of com.sun.jersey.api.representation.Form

     * Test checks that a POST on "data" resource adds the submitted data to
     * the maintained map.
     */
    @Test
    public void testPostOnDataResource() {
        Form formData = new Form();
        formData.add("name", "testName");
        formData.add("value", "testValue");
        WebResource webResource = resource();
        ClientResponse response = webResource.path("data")
                .type(MediaType.APPLICATION_FORM_URLENCODED)
                .post(ClientResponse.class, formData);
        assertEquals(Response.Status.OK, response.getResponseStatus());
View Full Code Here

Examples of com.sun.lwuit.Form

  public PlayerManager(String _locator, GuiMidlet _midlet, boolean isImage) {
    locator = _locator;
    midlet = _midlet;
    //display = midlet.display;
          is_image = isImage;
    form = new Form("Player Manager");
    form.setLayout(new BorderLayout());
    form.setCommandListener(this);
           if (is_image)
              form.addCommand(Contents.back);
          else
View Full Code Here

Examples of com.vaadin.ui.Form

        setMainWindow(new Window(this.title, layout));
       
        final BeanContainer<String, Task> beans = new BeanContainer<String, Task>(Task.class);
        beans.setBeanIdProperty("id");

        final Form form = new Form();
        form.setLocale(Locale.GERMAN);
        final Table table = new Table(this.title, beans);
        MenuBar menu = createMenuBar(beans, table);
        layout.addComponent(menu);
       
        table.setSelectable(true);
        table.setImmediate(true);
        table.setVisibleColumns(VISIBLE_COLUMNS);
        table.addListener(new Property.ValueChangeListener() {
            public void valueChange(ValueChangeEvent event) {
                Object selectedId = table.getValue();
                @SuppressWarnings("unchecked")
                BeanItem<Task> item = (BeanItem<Task>) table.getItem(selectedId);
                form.setItemDataSource(item);
                form.setVisibleItemProperties(VISIBLE_COLUMNS);
           }
        });
        update(beans);
        layout.addComponent(table);

        Object first = table.getItemIds().iterator().next();
        Item item = table.getItem(first);
        form.setItemDataSource(item);

        form.setCaption("Edit Task");
        form.setVisibleItemProperties(VISIBLE_COLUMNS);
        form.setImmediate(true);
        form.addListener(new Property.ValueChangeListener() {
            public void valueChange(ValueChangeEvent event) {
                @SuppressWarnings("unchecked")
                BeanItem<Task> item = (BeanItem<Task>) form.getItemDataSource();
                taskService.updateTask(item.getBean());
            }
        });
        layout.addComponent(form);
    }
View Full Code Here

Examples of com.volantis.mcs.layouts.Form

        attributes.setValue(xfValue);

        XFFormAttributes formAttributes = new XFFormAttributes();
        String name = "This is the name";
        formAttributes.setName(name);
        Form form = new Form(new CanvasLayout());
        FormInstance formInstance = new FormInstance(
                NDimensionalIndex.ZERO_DIMENSIONS);
        formInstance.setFormat(form);

        formAttributes.setFormData(formInstance);
View Full Code Here

Examples of de.innovationgate.wgaservices.types.Form

      //params.add("A");
      //params.add("B");
      //params.add("C");
      //caller.callAction("myRemoteAction");
      //caller.callAction("myRemoteAction", params);
      Form form = new Form("test");
      form.setField("myfield", "value");
      form.setField("aDate", new Date());
      form.setField("aNumber", new Integer(4711));
      form.addFileAsAttachment(new File("/home/tbinias/downloads/eclipse-SDK-3.4.2-linux-gtk-x86_64.tar.gz"), "eclipse.tgz");
      Object result = caller.callAction("myRemoteAction", null, form);
      System.out.println(result);
      //List<DataSource> tmpList = new ArrayList<DataSource>();
      //tmpList.add(new FileDataSource(new File("/home/tbinias/downloads/eclipse-SDK-3.4.2-linux-gtk-x86_64.tar.gz")));
      //client.installPlugins(session, tmpList);
View Full Code Here

Examples of de.odysseus.calyxo.forms.Form

    FormInputValues inputs) throws Exception {

    I18nSupport i18n = I18nSupport.getInstance(request);
    Locale locale = i18n.getLocale(request);     
    FormsSupport support = FormsSupport.getInstance(request);
    Form form = support.getForm(request, locale, mapping.getPath());
    if (form == null) {
      throw new ConfigException("No form for action '" + mapping.getPath() + "'");
    }
    ActionErrors errors = null;
    // execute validation
    FormResult result = form.validate(request, inputs);
    if (!result.isValid()) { // collect error messages
      errors = new ActionErrors();
      Messages messages = result.getMessages();
      Iterator names = messages.getKeys();
      while (names.hasNext()) {
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.