How to make addValueChangeHandler act just like addChangeHandler

Posted by Konoplianko on Stack Overflow See other posts from Stack Overflow or by Konoplianko
Published on 2009-12-14T15:58:38Z Indexed on 2010/04/04 6:03 UTC
Read the original article Hit count: 300

Filed under:
|

Hi. I have a problem. I made a wrap widget that implements interface HasChangeHandlers

But i just can't fit events to each other.

public HandlerRegistration addChangeHandler( final ChangeHandler handler ) {
	HandlerRegistration registration1 = dateFrom.addValueChangeHandler( handler );// Compile error

	HandlerRegistration registration2 = dateTo.addValueChangeHandler( new ValueChangeHandler<Date>() {
		@Override
		public void onValueChange( ValueChangeEvent<Date> dateValueChangeEvent ) {
              //have to fire handler ??
		}
	} );

	return null; // what i should return here?
}

Thanks in advance !

© Stack Overflow or respective owner

Related posts about gwt

Related posts about event-handling