Example usage for com.google.gwt.user.client.ui ValueBoxBase addKeyUpHandler

List of usage examples for com.google.gwt.user.client.ui ValueBoxBase addKeyUpHandler

Introduction

In this page you can find the example usage for com.google.gwt.user.client.ui ValueBoxBase addKeyUpHandler.

Prototype

public HandlerRegistration addKeyUpHandler(KeyUpHandler handler) 

Source Link

Usage

From source file:fr.putnami.pwt.core.widget.client.mask.MaskValueBoxHelper.java

License:Open Source License

public MaskValueBoxHelper(ValueBoxBase<String> valueBox) {
    this.valueBox = valueBox;

    valueBox.addKeyDownHandler(this);
    valueBox.addKeyUpHandler(this);
    valueBox.addKeyPressHandler(this);
    valueBox.addBlurHandler(this);
    valueBox.addFocusHandler(this);
    valueBox.addMouseUpHandler(this);
}

From source file:org.zoxweb.client.widget.ValueFilterHandler.java

License:Apache License

/**
 * // ww  w  .  ja  v  a2s. c o m
 * @param widget
 * @param vf
 * @param errorStyleName
 */
public ValueFilterHandler(ValueBoxBase<V> widget, ValueFilter<V, V> vf, String errorStyleName) {
    this.widget = widget;
    defaultStyleName = widget.getStyleName();
    this.errorStyleName = errorStyleName;
    this.vf = vf;

    hrList = new ArrayList<HandlerRegistration>();

    hrList.add(widget.addKeyUpHandler(this));
    hrList.add(widget.addFocusHandler(this));
}