List of usage examples for com.google.gwt.event.logical.shared ValueChangeEvent fireIfNotEqual
public static <T> void fireIfNotEqual(HasValueChangeHandlers<T> source, T oldValue, T newValue)
From source file:org.kie.workbench.common.stunner.bpmn.client.forms.fields.cm.roles.RolesEditorWidgetViewImpl.java
License:Apache License
protected void doSetValue(final String value, final boolean fireEvents, final boolean initializeView) { final String oldValue = serializedRoles; serializedRoles = value;/* w w w . jav a 2s . c om*/ if (initializeView) { initView(); } if (fireEvents) { ValueChangeEvent.fireIfNotEqual(this, oldValue, serializedRoles); } setReadOnly(readOnly); }
From source file:org.kie.workbench.common.stunner.bpmn.client.forms.fields.comboBoxEditor.ComboBoxWidgetViewImpl.java
License:Apache License
@Override public void setValue(final String newValue, final boolean fireEvents) { String oldValue = currentValue; currentValue = newValue;//w w w . jav a 2s . c om initView(); if (fireEvents) { ValueChangeEvent.fireIfNotEqual(this, oldValue, newValue); } }
From source file:org.kie.workbench.common.stunner.bpmn.client.forms.fields.notificationsEditor.NotificationsEditorWidget.java
License:Apache License
@Override public void setValue(NotificationTypeListValue value, boolean fireEvents) { if (value != null) { NotificationTypeListValue oldValue = notificationTypeListValue; notificationTypeListValue = value; initTextBox();/*from ww w .j ava 2 s . c o m*/ if (fireEvents) { ValueChangeEvent.fireIfNotEqual(this, oldValue, notificationTypeListValue); } } }
From source file:org.kie.workbench.common.stunner.bpmn.client.forms.fields.notificationsEditor.widget.NotificationWidget.java
License:Apache License
@Override public void setValue(List<NotificationRow> newValues, boolean fireEvents) { List<NotificationRow> oldValue = rows; rows = newValues;/*from ww w . ja v a 2 s.c o m*/ if (fireEvents) { ValueChangeEvent.fireIfNotEqual(this, oldValue, rows); } }
From source file:org.kie.workbench.common.stunner.bpmn.client.forms.fields.reassignmentsEditor.ReassignmentsEditorWidget.java
License:Apache License
@Override public void setValue(ReassignmentTypeListValue value, boolean fireEvents) { if (value != null) { ReassignmentTypeListValue oldValue = reassignmentTypeListValue; reassignmentTypeListValue = value; initTextBox();/* w w w . ja v a 2 s . c om*/ if (fireEvents) { ValueChangeEvent.fireIfNotEqual(this, oldValue, reassignmentTypeListValue); } } }
From source file:org.kie.workbench.common.stunner.bpmn.client.forms.fields.reassignmentsEditor.widget.ReassignmentWidget.java
License:Apache License
@Override public void setValue(List<ReassignmentRow> newValues, boolean fireEvents) { List<ReassignmentRow> oldValue = rows; rows = newValues;/*ww w . j a va 2s . c om*/ if (fireEvents) { ValueChangeEvent.fireIfNotEqual(this, oldValue, rows); } }
From source file:org.kie.workbench.common.stunner.bpmn.client.forms.fields.serviceEditor.GenericServiceTaskEditorWidget.java
License:Apache License
@Override public void setValue(GenericServiceTaskValue newValue, boolean fireEvents) { GenericServiceTaskValue oldValue = value; value = newValue;/*from w w w. j ava2s .c o m*/ implementation.setValue(value.getServiceImplementation()); serviceInterface.setValue(value.getServiceInterface()); serviceOperation.setValue(value.getServiceOperation()); if (fireEvents) { ValueChangeEvent.fireIfNotEqual(this, oldValue, value); } }
From source file:org.kie.workbench.common.stunner.bpmn.client.forms.fields.variablesEditor.VariablesEditorWidgetViewImpl.java
License:Apache License
protected void doSetValue(final String value, final boolean fireEvents, final boolean initializeView) { String oldValue = sVariables; sVariables = value;/*from w w w.j a v a 2 s .c o m*/ if (initializeView) { initView(); } if (fireEvents) { ValueChangeEvent.fireIfNotEqual(this, oldValue, sVariables); } setReadOnly(readOnly); }
From source file:org.kie.workbench.common.stunner.bpmn.client.forms.util.FieldEditorEditorWidget.java
License:Apache License
protected void notifyChange(T oldValue, T newValue) { ValueChangeEvent.fireIfNotEqual(this, oldValue, newValue); }
From source file:org.kie.workbench.common.stunner.bpmn.client.forms.widgets.PeriodBox.java
License:Apache License
@Override public void setValue(String value, boolean fireEvents) { String oldValue = current;/* ww w . ja va 2 s.c om*/ current = value; if (fireEvents) { ValueChangeEvent.fireIfNotEqual(this, oldValue, value); } }