Examples of reset()


Examples of org.gwtoolbox.widget.client.form.Form.reset()

            }
        });

        SimpleButton clearButton = new SimpleButton("Clear", new ClickHandler() {
            public void onClick(ClickEvent event) {
                form.reset();
            }
        });

        HorizontalPanel buttons = new HorizontalPanel();
        buttons.add(validateButton);
View Full Code Here

Examples of org.h2.result.ResultInterface.reset()

            DbException.throwInternalError("type=" + unionType);
        }
        ResultInterface l = left.query(0);
        ResultInterface r = right.query(0);
        l.reset();
        r.reset();
        switch (unionType) {
        case UNION_ALL:
        case UNION: {
            while (l.next()) {
                result.addRow(convert(l.currentRow(), columnCount));
View Full Code Here

Examples of org.h2.result.RowList.reset()

                        }
                    }
                }
            }
            int rowScanCount = 0;
            for (rows.reset(); rows.hasNext();) {
                if ((++rowScanCount & 127) == 0) {
                    checkCanceled();
                }
                Row row = rows.next();
                table.removeRow(session, row);
View Full Code Here

Examples of org.h2.store.Data.reset()

    private static void testPerformance() {
        Data data = Data.create(null, 1024);
        for (int j = 0; j < 4; j++) {
            long time = System.currentTimeMillis();
            for (int i = 0; i < 100000; i++) {
                data.reset();
                for (int k = 0; k < 30; k++) {
                    data.writeString("Hello World");
                }
            }
            //            for (int i = 0; i < 5000000; i++) {
View Full Code Here

Examples of org.hive2hive.core.events.util.TestNetworkEventListener.reset()

   
    node.connect();
   
    assertTrue(listener.connectionSucceeded || listener.connectionFailed);
    assertTrue(!listener.disconnectionSucceeded && !listener.disconnectionFailed);
    listener.reset();
   
    node.disconnect();
    assertTrue(listener.disconnectionSucceeded || listener.disconnectionFailed);
    assertTrue(!listener.connectionSucceeded && !listener.connectionFailed);
    listener.reset();
View Full Code Here

Examples of org.hive2hive.core.processes.util.TestProcessComponentListener.reset()

   
    listener.onSucceeded();
    assertTrue(listener.hasSucceeded());
    assertFalse(listener.hasFailed());
    assertTrue(listener.hasFinished());
    listener.reset();
   
    listener.onFailed(new RollbackReason("Test fail."));
    assertFalse(listener.hasSucceeded());
    assertTrue(listener.hasFailed());
    assertTrue(listener.hasFinished());
View Full Code Here

Examples of org.hornetq.core.protocol.stomp.SimpleBytes.reset()

                        catch (UnsupportedEncodingException e)
                        {
                           throw new HornetQStompException("Encoding exception", e);
                        }

                        holder.reset();

                        decoder.inHeaderName = false;

                        decoder.headerBytesCopyStart = decoder.pos;
View Full Code Here

Examples of org.hornetq.core.server.cluster.MessageFlowRecord.reset()

      if (record != null)
      {
         try
         {
            record.reset();
         }
         catch (Exception e)
         {
            log.error("Failed to close flow record", e);
         }
View Full Code Here

Examples of org.hornetq.jms.client.HornetQBytesMessage.reset()

      }

      HornetQBytesMessage copy = new HornetQBytesMessage(foreignBytesMessage, session);

      foreignBytesMessage.reset();
      copy.reset();

      MessageHeaderTestBase.ensureEquivalent(foreignBytesMessage, copy);
   }

   public void testCopyOnForeignMapMessage() throws JMSException
View Full Code Here

Examples of org.hornetq.jms.client.HornetQStreamMessage.reset()

   {
      boolean value = RandomUtil.randomBoolean();
      HornetQStreamMessage message = new HornetQStreamMessage();

      message.writeBoolean(value);
      message.reset();

      Assert.assertEquals(value, message.readBoolean());
   }

   public void testReadBooleanFromString() throws Exception
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.