Examples of discard()


Examples of com.vaadin.data.fieldgroup.FieldGroup.discard()

        Button discardButton = new Button("Discard",
                new Button.ClickListener() {

                    @Override
                    public void buttonClick(ClickEvent event) {
                        fieldGroup.discard();
                        log.log("Discarded changes");

                    }
                });
        Button showBean = new Button("Show bean values",
View Full Code Here

Examples of com.vaadin.ui.Form.discard()

        });
        Button discard = new Button("Discard", new ClickListener() {

            @Override
            public void buttonClick(ClickEvent event) {
                f.discard();
            }

        });
        HorizontalLayout ol = new HorizontalLayout();
        ol.setHeight("3em");
View Full Code Here

Examples of io.undertow.websockets.core.StreamSourceFrameChannel.discard()

                if (frame == null) {
                    webSocketChannel.resumeReceives();
                    return;
                }
                if (closeFrameReceived) {
                    frame.discard();
                    return;
                }

                long maxSize = maxMessageSize(session, frame.getType());
View Full Code Here

Examples of io.undertow.websockets.core.StreamSourceFrameChannel.discard()

                            });
                        }
                        break;
                    default:
                        // discard the frame as we are not interested in it.
                        streamSourceFrameChannel.discard();
                        streamSourceFrameChannel.getCloseSetter().set(new ChannelListener<StreamSourceChannel>() {
                            @Override
                            public void handleEvent(StreamSourceChannel channel) {
                                session.getChannel().resumeReceives();
                            }
View Full Code Here

Examples of it.polito.discarding_Strategy.PacketDiscarding.discard()

          for(Float iter:list){ //tempi
            int countLogged=0;
            int countDiscarded=0;
            for(Vehicle v:time_map.get(iter)){ //veicoli
              countVehicles++;
              discarding.discard(v); //scarto
              countLogged=countLogged+v.getNumLoggedPacket();
              countDiscarded=countDiscarded+v.getNumDiscardedPacket();
            }//fine veicoli
         
            /**============= statistics =======================================**/
 
View Full Code Here

Examples of mage.players.Player.discard()

      Player player = game.getPlayer(controllerId);
      for (UUID targetId: targets.get(0).getTargets()) {
        Card card = player.getHand().get(targetId, game);
        if (card == null)
          return false;
        paid |= player.discard(card, null, game);
      }
    }
    return paid;
  }
View Full Code Here

Examples of net.jini.discovery.LookupDiscoveryRegistration.discard()

                                             (LDSEventListener)pair.getValue();
                    RegistrationInfo regInfo = regListener.getRegInfo();
                    int rID = regInfo.handback;
        logger.log(Level.FINE, "  registration_"+rID
             +" -- discarding lookup service "+i);
        ldsReg.discard(proxies[i]);
                    logger.log(Level.FINE, " registration_"+rID
                               +" -- discarded lookup service "+i);
                }//end loop(j)
            } catch(Exception exc) { // just for logging purposes
              logger.log(Level.FINE, " ******* exception during pingAndDiscard ********");
 
View Full Code Here

Examples of net.jini.lookup.LookupCache.discard()

                    "Services to discard (array object) " + services);

                for (int i = 0; i < services.length; i++) {
                    Debug.printDebugInfo(10,
                        "Discarding Service : " + services[i].service);
                    lookupCache.discard(services[i].service);
                }

                /* Terminating the cache should wait until the internal discardTask Thread
                 * gets the chance to send the events to the Listener. Wait a reasanble time.
                */
 
View Full Code Here

Examples of org.apache.abdera.ext.sharing.Conflicts.discard()

        ConflictResolver r = new ConflictResolver() {
            public Entry resolve(Entry entry, List<Entry> conflicts) {
                Sync sync = SharingHelper.getSync(entry, false);
                Conflicts c = sync.getConflicts(false);
                if (c != null)
                    c.discard();
                return entry; // take the latest
            }
        };

        entry = SharingHelper.resolveConflicts(entry, r, "jms");
View Full Code Here

Examples of org.apache.abdera.model.Content.discard()

  }

  public void setContentElement(Content content) {
    if (content != null) {
      Content element = getContentElement();
      if (element != null) element.discard();
      _setChild(CONTENT, (OMElement)content);
    } else {
      _removeChildren(CONTENT, false);
    }
  }
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.