Package com.vaadin.data.util

Examples of com.vaadin.data.util.IndexedContainer.addItem()


    public Container getPersonContainer() {
        IndexedContainer container = new IndexedContainer();
        container.addContainerProperty("Name", String.class, "");
        container.addContainerProperty("Age", Integer.class, 0);

        Object itemId = container.addItem();
        container.getItem(itemId).getItemProperty("Name")
                .setValue("Teemu Pöntelin");
        container.getItem(itemId).getItemProperty("Age").setValue(32);

        itemId = container.addItem();
View Full Code Here


        Object itemId = container.addItem();
        container.getItem(itemId).getItemProperty("Name")
                .setValue("Teemu Pöntelin");
        container.getItem(itemId).getItemProperty("Age").setValue(32);

        itemId = container.addItem();
        container.getItem(itemId).getItemProperty("Name")
                .setValue("John Smith");
        container.getItem(itemId).getItemProperty("Age").setValue(35);
        return container;
    }
View Full Code Here

        // Creates the options container and add given options to it
        final Container c = new IndexedContainer();
        if (options != null) {
            for (final Iterator<?> i = options.iterator(); i.hasNext();) {
                c.addItem(i.next());
            }
        }

        setCaption(caption);
        setContainerDataSource(c);
View Full Code Here

    java.util.Date today = new java.util.Date();
    Random generator = new Random();

    while (cal.getTime().before(today)) {
      // create a point in time
      Item item = container.addItem(cal.getTime());

      // set the time stamp property
      item.getItemProperty(Timeline.PropertyId.TIMESTAMP).setValue(
          cal.getTime());
View Full Code Here

    java.util.Date today = new java.util.Date();
    SimpleDateFormat formatter = new SimpleDateFormat("EEE, MMM d, ''yy");

    while (cal.getTime().before(today)) {
      // create a point in time
      Item item = container.addItem(cal.getTime());

      // set the time stamp property
      item.getItemProperty(Timeline.PropertyId.TIMESTAMP).setValue(
          cal.getTime());
View Full Code Here

    java.util.Date today = new java.util.Date();

    while (cal.getTime().before(today)) {
      if (cal.get(Calendar.DAY_OF_WEEK) == Calendar.SUNDAY) {
        // create a point in time
        Item item = container.addItem(cal.getTime());

        // set the time stamp property
        item.getItemProperty(Timeline.PropertyId.TIMESTAMP).setValue(
            cal.getTime());
View Full Code Here

        if (am.buildAnalyseTable(String.valueOf(airports.getValue())).size() != 0)
        {
          panel.setCaption("Tableau d'analyse");
          for (AnalyseTable at : am.buildAnalyseTable(String.valueOf(airports.getValue())))
          {
            Item item = container.addItem(at);
            item.getItemProperty("Service").setValue(at.getService());
            item.getItemProperty("Thème").setValue(at.getTheme());
            item.getItemProperty("Nombre de Réclamations").setValue(at.getNbreRecla());
            item.getItemProperty("Observations").setValue(at.getDescriptif());
          }
View Full Code Here

        if (rm.getAirportsReclamations(String.valueOf(airports.getValue())).size() != 0){
          panel.setCaption("Tableau de Réclamations");
          //filling out the container
          for (Reclamation a : rm.getAirportsReclamations(String.valueOf(airports.getValue())))
          {
            Item item = container.addItem(a);
            item.getItemProperty("ID Passager").setValue(a.getIdPassager());
            item.getItemProperty("Date").setValue(a.getDate());
            item.getItemProperty("Terminale").setValue(a.getTerminale());
            item.getItemProperty("Descriptif").setValue(a.getDescriptif());
          }
View Full Code Here

    IndexedContainer container = new IndexedContainer();
    container.addContainerProperty("Nom", String.class, null);
    container.addContainerProperty("Email", String.class, null);

    for (Passager p : getPassagerMailList()) {
      Item item = container.addItem(p);
      item.getItemProperty("Nom").setValue(p.getNom());
      item.getItemProperty("Email").setValue(p.getEmail());
    }

    table.setContainerDataSource(container);
View Full Code Here

    Random generator = new Random();
   
    while(cal.getTime().before(today))
    {
      //create a point in time
      Item item = container.addItem(cal.getTime());
     
      //set the time stamp property
      item.getItemProperty(Timeline.PropertyId.TIMESTAMP).setValue(cal.getTime());
     
      //set the value property
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.