Examples of removeAllItems()


Examples of com.googlecode.html.HTMLAugmentations.removeAllItems()

   /** Returns an augmentations object with a synthesized item added. */
   protected final Augmentations synthesizedAugs() {
      HTMLAugmentations augs = null;
      if (fAugmentations) {
         augs = fInfosetAugs;
         augs.removeAllItems();
         augs.putItem(AUGMENTATIONS, SYNTHESIZED_ITEM);
      }
      return augs;
   } // synthesizedAugs():Augmentations

View Full Code Here

Examples of com.vaadin.data.util.HierarchicalContainer.removeAllItems()

        Button repopulate = new Button("Repopulate", new ClickListener() {

            @Override
            public void buttonClick(ClickEvent event) {
                // repopulate the container and expand root item
                container.removeAllItems();
                int parentId = counter++;
                Item parent = container.addItem(parentId);
                tt.setCollapsed(parentId, false);
                parent.getItemProperty("value").setValue(
                        "parent " + (counter++) + "");
View Full Code Here

Examples of com.vaadin.ui.ComboBox.removeAllItems()

        btClear.setImmediate(true);
        btClear.addListener(new Button.ClickListener() {

            @Override
            public void buttonClick(ClickEvent event) {
                cb2.removeAllItems();
                cb2.setContainerDataSource(null);
            }
        });

        addComponent(btClear);
View Full Code Here

Examples of com.vaadin.ui.Table.removeAllItems()

                            if (t instanceof MethodException) {
                                t = t.getCause();
                                if (t instanceof CacheUpdateException) {
                                    Table table = ((CacheUpdateException) t)
                                            .getTable();
                                    table.removeAllItems();
                                    Notification
                                            .show("Problem updating table. Please try again later",
                                                    Notification.Type.ERROR_MESSAGE);
                                }
                            }
View Full Code Here

Examples of com.vaadin.ui.Table.removeAllItems()

        collection.add(new InventoryObject("Dummy Item", 0.0, false));
        final BeanItemContainer<InventoryObject> tableContainer = new BeanItemContainer<InventoryObject>(
                collection);
        table.setContainerDataSource(tableContainer);
        table.setVisibleColumns(new String[] { "name", "weight" });
        table.removeAllItems();

        // Allow the table to receive drops and handle them
        table.setDropHandler(new DropHandler() {
            @Override
            public AcceptCriterion getAcceptCriterion() {
View Full Code Here

Examples of com.vaadin.ui.Table.removeAllItems()

        table.setColumnWidth("year", 50);

        addButton("Clean", new ClickListener() {
            @Override
            public void buttonClick(ClickEvent event) {
                table.removeAllItems();
            }
        });

        addButton("Populate", new ClickListener() {
            @Override
View Full Code Here

Examples of com.vaadin.ui.Table.removeAllItems()

        Button fill = new Button("fill it");
        fill.addListener(new Button.ClickListener() {
            @Override
            public void buttonClick(ClickEvent event) {
                t.removeAllItems();
                for (int i = 0; i < 200; i++) {
                    Item item = t.addItem(i);
                    for (int j = 0; j < 5; j++) {
                        item.getItemProperty("test" + j).setValue(
                                createComponent(i, j));
View Full Code Here

Examples of javax.swing.JComboBox.removeAllItems()


  private void setComboBoxItems(int i,TableRowOrdering[] orderings)
  {
    JComboBox box = selectors[i];
    box.removeAllItems();
    for (int j=0;j<orderings.length;j++)
    {
      box.addItem(orderings[j]);
    }
    box.setVisible(true);
View Full Code Here

Examples of javax.swing.JComboBox.removeAllItems()

        harness.check(combo.getItemCount(), 10, "removeItem");
       
        combo.removeItemAt(0);
        harness.check(combo.getItemCount(), 9, "removeItemAt");
       
        combo.removeAllItems();
        harness.check(combo.getItemCount(), 0, "removeAllItems");

    }

}
View Full Code Here

Examples of javax.swing.JComboBox.removeAllItems()

        harness.check(ok, "removeItemAt");
        ok = false;

        try
        {
            combo.removeAllItems();
        }
        catch (RuntimeException re)
        {
            ok = true;
        }
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.