Invokes the handler for the event.

@param value the event
173877
@Override
  @SuppressWarnings("checkstyle:illegalcatch")
  public void onNext(final T value) {
    beforeOnNext();
    try {
      handler.onNext(value);
    } catch (final Throwable t) {
      if (errorHandler != null) {
        errorHandler.onNext(t);
      } else {
        LOG.log(Level.SEVERE, name + " Exception from event handler", t);
        throw t;
      }
    }
    afterOnNext();
  }
229969
@Override
    public void set(T value) {
        if (scope == null) {
            throw new IllegalStateException("Value can not be set, instance has no Scope defined: " + value);
        }
        manager.bindAndFire(scope, type, value);
    }
896081
public void push(Value value) {
		for (MeasureListener<Value> listener : listeners) {
			listener.measureGenerated(value);
		}
	}
1071620
protected void handleRequestValue(final String value, final boolean valid, final String text) {
		// As setData() clears the text value (if valid), this must be called first so it can be set after
		setData(value);
		PartialDateFieldModel model = getOrCreateComponentModel();
		model.validDate = valid;
		model.text = text;
	}
1121642
public static void bindDown (final Value<Boolean> value, final ToggleButton toggle)
    {
        toggle.addClickHandler(new ClickHandler() {
            public void onClick (ClickEvent event) {
                value.updateIf(toggle.isDown());
            }
        });
        value.addListenerAndTrigger(new Value.Listener<Boolean>() {
            public void valueChanged (Boolean value) {
                toggle.setDown(value);
            }
        });
    }
1208975
public void add(Value value) {
	if (values == null) values = new LinkedList();
	values.add(value);
    }
813368
@Override
    @SuppressWarnings("PMD.NcssCount")
    public void invoke(EventBase<?> event) throws Throwable {
        if (component == ComponentTree.DUMMY_HANDLER) {
            reportInvocation(event, false);
            return;
        }
        long invocation;
        switch (method.type().parameterCount()) {
        case 0:
            // No parameters
            invocation = reportInvocation(event, false);
            method.invoke();
            reportResult(event, invocation);
            break;

        case 1:
            // Event parameter
            invocation = reportInvocation(event, false);
            method.invoke(event);
            reportResult(event, invocation);
            break;

        case 2:
            // Event and channel
            Class<?> channelParam = method.type().parameterType(1);
            boolean handlerFound = false;
            for (Channel channel : event.channels()) {
                if (channelParam.isAssignableFrom(channel.getClass())) {
                    handlerFound = true;
                    invocation = reportInvocation(event, false);
                    method.invoke(event, channel);
                    reportResult(event, invocation);
                }
            }
            if (!handlerFound) {
                reportInvocation(event, true);
            }
            break;

        default:
            throw new IllegalStateException("Handle not usable");
        }
    }
747677
@Override
  public void onNext(final T value) {
    beforeOnNext();
    executor.submit(new Runnable() {

      @Override
      public void run() {
        observer.onNext(value);
        afterOnNext();
      }
    });
  }
924369
public void setValue(T object, V value) {
        try {
            if (this.setMethod != null) {
                this.setMethod.invoke(object, value);
            } else {
                this.field.set(object, value);
            }
        } catch (IllegalAccessException e) {
            throw new RuntimeException(e);
        } catch (InvocationTargetException e) {
            throw new RuntimeException(e);
        }
    }
298160
private void setRealValue(String value) {

        if (!Objects.equal(value, m_realValue)) {
            m_realValue = value;
            ValueChangeEvent.fire(this, value);
        }
    }
268326
@Override
    public void setValue(Object value) {
        if (value != null) {
            Calendar c = (Calendar) value;
            ((JTextField) editor).setText(DEFAULT_DATE_FORMAT.format(c.getTime()));
        }
    }
1339078
public final void setValue(Object value) {
        if (value instanceof Date) {
            content = formatDateTime((Date)value);
        } else
            if (value != null) {
                content = value.toString();
            } else {
                content = null;
            }
    }
843567
public static function event($value): void
    {
        if (false === self::message($value)) {
            throw new Exception\InvalidEvent($value);
        }
    }
1115024
public void setValue(final double VALUE) {
        if (null == value) {
            _value = VALUE;
        } else {
            value.set(VALUE);
        }
        fireMarkerEvent(VALUE_CHANGED_EVENT);
    }
864478
@Override
	public void setValue(StringValue value) {
		Validate.notNull(value);
		setValue(value.value, 0, value.len);
	}
609591
protected void onValueSelect(String value, boolean fireEvents) {

        String oldValue = m_selectedValue;
        selectValue(value);
        if (fireEvents) {
            if ((oldValue == null) || !oldValue.equals(value)) {
                // fire value change only if the the value really changed
                ValueChangeEvent.<String> fire(this, value);
            }
        }
    }
66607
public function invoke($object, $value)
    {
        if (null !== $value) {
            $this->method->invoke($object, $value);
        }
    }