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.kaaproject.avro.ui.gwt.client.widget.AbstractFieldWidget.java
License:Apache License
@Override public void setValue(T value, boolean fireEvents) { if (value == this.value || (this.value != null && this.value.equals(value))) { return;/* w w w . ja va 2s . c o m*/ } T before = this.value; this.value = value; updateFields(); if (fireEvents) { ValueChangeEvent.fireIfNotEqual(this, before, value); } }
From source file:org.kaaproject.avro.ui.gwt.client.widget.FieldWidgetPanel.java
License:Apache License
public void setValue(final Boolean value, final boolean fireEvents, boolean animate) { if (value == this.isOpen) { return;//w w w . ja va 2s . c o m } Boolean before = this.isOpen; field.setChanged(value, fireEvents); setOpen(value, animate); if (fireEvents) { ValueChangeEvent.fireIfNotEqual(this, before, value); } }
From source file:org.kaaproject.avro.ui.gwt.client.widget.FqnReferenceBox.java
License:Apache License
@Override public void setValue(FqnKey value, boolean fireEvents) { if (value != null && !fqnsMap.containsKey(value)) { value = null;/* w w w. ja v a2 s .c om*/ } if (value == this.value || (this.value != null && this.value.equals(value))) { return; } FqnKey before = this.value; this.value = value; updateListBox(); if (fireEvents) { ValueChangeEvent.fireIfNotEqual(this, before, value); } }
From source file:org.kaaproject.kaa.server.admin.client.mvp.view.widget.CtlSchemaReferenceBox.java
License:Apache License
@Override public void setValue(CtlSchemaReferenceDto value, boolean fireEvents) { if (value == this.value || (this.value != null && this.value.equals(value))) { return;/* w w w. j a v a 2 s . c o m*/ } CtlSchemaReferenceDto before = this.value; this.value = value; updateBox(); if (fireEvents) { ValueChangeEvent.fireIfNotEqual(this, before, value); } }
From source file:org.kaaproject.kaa.server.admin.client.mvp.view.widget.MultiValueListBox.java
License:Apache License
public void setValue(List<T> value, boolean fireEvents) { if (value == this.value || (this.value != null && this.value.equals(value))) { return;/*from w w w .j a v a 2s . c om*/ } List<T> before = this.value; this.value = value; updateListBox(); if (fireEvents) { ValueChangeEvent.fireIfNotEqual(this, before, value); } }
From source file:org.kie.workbench.common.dmn.client.editors.types.DataTypePickerWidget.java
License:Apache License
void fireValueChangeEvent(final QName oldValue) { ValueChangeEvent.fireIfNotEqual(this, oldValue, type); }
From source file:org.kie.workbench.common.stunner.bpmn.client.forms.fields.assigneeEditor.AssigneeEditorWidgetViewImpl.java
License:Apache License
@Override public void setValue(final String value, final boolean fireEvents) { String oldValue = sAssignees; sAssignees = value;//from www . java 2 s .c o m if (names == null) { getNames(); } initView(); if (fireEvents) { ValueChangeEvent.fireIfNotEqual(this, oldValue, sAssignees); } }
From source file:org.kie.workbench.common.stunner.bpmn.client.forms.fields.assigneeEditor.widget.AssigneeEditorWidget.java
License:Apache License
@Override public void setValue(String newValue, boolean fireEvents) { String oldValue = value;//w ww. jav a 2s.c om value = newValue; deserializeAssignees(value); if (fireEvents) { ValueChangeEvent.fireIfNotEqual(this, oldValue, value); } }
From source file:org.kie.workbench.common.stunner.bpmn.client.forms.fields.assigneeEditor.widget.AssigneeEditorWidget.java
License:Apache License
@Override public void doSave() { String oldValue = value;/* w w w .j av a 2 s . c o m*/ value = serializeAssignees( assigneeRows.stream().map(AssigneeListItem::getAssignee).collect(Collectors.toList())); ValueChangeEvent.fireIfNotEqual(this, oldValue, value); }
From source file:org.kie.workbench.common.stunner.bpmn.client.forms.fields.assignmentsEditor.AssignmentsEditorWidget.java
License:Apache License
@Override public void setValue(final String value, final boolean fireEvents) { String oldValue = assignmentsInfo; assignmentsInfo = value;//from w w w. jav a 2 s .c o m initTextBox(); if (fireEvents) { ValueChangeEvent.fireIfNotEqual(this, oldValue, assignmentsInfo); } }