com.google.gwt.event.logical.shared.ValueChangeEvent.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-31 转载在 其他  
字(3.4k)|赞(0)|评价(0)|浏览(80)

本文整理了Java中com.google.gwt.event.logical.shared.ValueChangeEvent.<init>()方法的一些代码示例,展示了ValueChangeEvent.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ValueChangeEvent.<init>()方法的具体详情如下:
包路径:com.google.gwt.event.logical.shared.ValueChangeEvent
类名称:ValueChangeEvent
方法名:<init>

ValueChangeEvent.<init>介绍

[英]Creates a value change event.
[中]创建值更改事件。

代码示例

代码示例来源:origin: com.google.gwt/gwt-servlet

/**
 * Fires a value change event on all registered handlers in the handler
 * manager. If no such handlers exist, this method will do nothing.
 * 
 * @param <T> the old value type
 * @param source the source of the handlers
 * @param value the value
 */
public static <T> void fire(HasValueChangeHandlers<T> source, T value) {
 if (TYPE != null) {
  ValueChangeEvent<T> event = new ValueChangeEvent<T>(value);
  source.fireEvent(event);
 }
}

代码示例来源:origin: com.google.gwt/gwt-servlet

/**
 * Fires value change event if the old value is not equal to the new value.
 * Use this call rather than making the decision to short circuit yourself for
 * safe handling of null.
 * 
 * @param <T> the old value type
 * @param source the source of the handlers
 * @param oldValue the oldValue, may be null
 * @param newValue the newValue, may be null
 */
public static <T> void fireIfNotEqual(HasValueChangeHandlers<T> source,
  T oldValue, T newValue) {
 if (shouldFire(source, oldValue, newValue)) {
  ValueChangeEvent<T> event = new ValueChangeEvent<T>(newValue);
  source.fireEvent(event);
 }
}

代码示例来源:origin: net.wetheinter/gwt-user

/**
 * Fires a value change event on all registered handlers in the handler
 * manager. If no such handlers exist, this method will do nothing.
 * 
 * @param <T> the old value type
 * @param source the source of the handlers
 * @param value the value
 */
public static <T> void fire(HasValueChangeHandlers<T> source, T value) {
 if (TYPE != null) {
  ValueChangeEvent<T> event = new ValueChangeEvent<T>(value);
  source.fireEvent(event);
 }
}

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

/**
 * Fires a value change event on all registered handlers in the handler
 * manager. If no such handlers exist, this method will do nothing.
 * 
 * @param <T> the old value type
 * @param source the source of the handlers
 * @param value the value
 */
public static <T> void fire(HasValueChangeHandlers<T> source, T value) {
 if (TYPE != null) {
  ValueChangeEvent<T> event = new ValueChangeEvent<T>(value);
  source.fireEvent(event);
 }
}

代码示例来源:origin: net.wetheinter/gwt-user

/**
 * Fires value change event if the old value is not equal to the new value.
 * Use this call rather than making the decision to short circuit yourself for
 * safe handling of null.
 * 
 * @param <T> the old value type
 * @param source the source of the handlers
 * @param oldValue the oldValue, may be null
 * @param newValue the newValue, may be null
 */
public static <T> void fireIfNotEqual(HasValueChangeHandlers<T> source,
  T oldValue, T newValue) {
 if (shouldFire(source, oldValue, newValue)) {
  ValueChangeEvent<T> event = new ValueChangeEvent<T>(newValue);
  source.fireEvent(event);
 }
}

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

/**
 * Fires value change event if the old value is not equal to the new value.
 * Use this call rather than making the decision to short circuit yourself for
 * safe handling of null.
 * 
 * @param <T> the old value type
 * @param source the source of the handlers
 * @param oldValue the oldValue, may be null
 * @param newValue the newValue, may be null
 */
public static <T> void fireIfNotEqual(HasValueChangeHandlers<T> source,
  T oldValue, T newValue) {
 if (shouldFire(source, oldValue, newValue)) {
  ValueChangeEvent<T> event = new ValueChangeEvent<T>(newValue);
  source.fireEvent(event);
 }
}

相关文章