Example usage for com.google.gwt.event.logical.shared ValueChangeEvent fire

List of usage examples for com.google.gwt.event.logical.shared ValueChangeEvent fire

Introduction

In this page you can find the example usage for com.google.gwt.event.logical.shared ValueChangeEvent fire.

Prototype

public static <T> void fire(HasValueChangeHandlers<T> source, T value) 

Source Link

Document

Fires a value change event on all registered handlers in the handler manager.

Usage

From source file:com.square.composant.ged.square.client.composant.tagcloud.SelecteurTagCloud.java

License:Open Source License

private void fireValueChange() {
    ValueChangeEvent.fire(this, listeIdsTypesDocumentsSelectionnes);
}

From source file:com.square.composant.ged.square.client.composant.tagcloud.SelecteurTagCloud.java

License:Open Source License

@Override
public void setValue(List<String> value, boolean fireEvents) {
    setValue(listeIdsTypesDocumentsSelectionnes);
    if (fireEvents) {
        ValueChangeEvent.fire(this, listeIdsTypesDocumentsSelectionnes);
    }/*from w  w w .j  a v  a2 s  . c  om*/
}

From source file:com.surevine.chat.view.client.security.labelchooser.SecurityLabelPartListBox.java

License:Open Source License

/**
 * Constructor./*  ww  w  .  ja  va 2  s . co m*/
 * 
 * @param noItemText
 *            the text which will be shown on the "no item" option
 * @param items
 *            the items to show in the list box
 */
public SecurityLabelPartListBox(final String noItemText, final List<T> items) {
    this.noItemText = noItemText;
    this.items = items;
    noItemAllowed = (noItemText != null);

    populateListBox();

    // Add a handler to map through the list box change event to the value
    // change event
    addChangeHandler(new ChangeHandler() {
        public void onChange(final ChangeEvent event) {
            ValueChangeEvent.fire(SecurityLabelPartListBox.this, getValue());
        }
    });
}

From source file:com.tasktop.c2c.server.common.web.client.widgets.chooser.MultiValueChooser.java

License:Open Source License

protected void fireValueChanged() {
    ValueChangeEvent.fire(this, getValues());
}

From source file:com.tasktop.c2c.server.common.web.client.widgets.chooser.SingleValueChooser.java

License:Open Source License

@Override
public void fireValueChanged() {
    ValueChangeEvent.fire(this, getValue());
}

From source file:com.threerings.gwt.ui.SmartFileUpload.java

License:Open Source License

@Override
public void onBrowserEvent(Event e) {
    switch (DOM.eventGetType(e)) {
    case Event.ONCHANGE:
        ValueChangeEvent.fire(this, getFilename());
        break;//w w  w. ja  v a 2  s.  c o  m
    }
}

From source file:com.tractionsoftware.gwt.user.client.ui.impl.UTCDateBoxImplHtml4.java

License:Apache License

@Override
public void setText(String text) {
    String oldValue = getText();//w  ww .  jav  a  2s .  c  o  m
    datebox.getTextBox().setValue(text, true);
    if (oldValue == null || !oldValue.equals(text)) {
        ValueChangeEvent.fire(this, getValue());
    }
}

From source file:com.tractionsoftware.gwt.user.client.ui.impl.UTCDateBoxImplHtml4.java

License:Apache License

public void fireValueChangeEvent(long value) {
    ValueChangeEvent.fire(this, new Long(value));
}

From source file:com.tractionsoftware.gwt.user.client.ui.impl.UTCDateBoxImplHtml5.java

License:Apache License

protected void fireValueChangeEvent(Long value) {
    ValueChangeEvent.fire(this, value);
}

From source file:com.tractionsoftware.gwt.user.client.ui.impl.UTCTimeBoxImplHtml4.java

License:Apache License

protected void setValue(Long value, boolean updateTextBox, boolean fireEvents) {

    if (updateTextBox) {
        syncTextToValue(value);/*  w w  w. jav  a2  s.  com*/
    }

    // keep track of the last known value so that we only fire
    // when it's different.
    Long oldValue = lastKnownValue;
    lastKnownValue = value;

    if (fireEvents && !isSameValue(oldValue, value)) {
        ValueChangeEvent.fire(this, getValue());
    }
}