List of usage examples for com.google.gwt.user.client.ui ValueBoxBase addKeyUpHandler
public HandlerRegistration addKeyUpHandler(KeyUpHandler handler)
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)); }