litesoft
@ 948
litesoft / trunk / GWT_Sandbox / FormEngine / src / com / temp / client / foundation / widget / input / ActiveTextBox.java
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
package com.temp.client.foundation.widget.input; import com.google.gwt.dom.client.*; import com.google.gwt.user.client.ui.*; import com.temp.client.foundation.widget.input.support.*; public class ActiveTextBox extends TextBox implements ActiveTextBoxBase { @Override protected void onAttach() { super.onAttach(); TextBoxBaseChangeListenableHelper.INSTANCE.attach( this ); } @Override protected void onDetach() { TextBoxBaseChangeListenableHelper.INSTANCE.detach( this ); super.onDetach(); } @Override public void fireChangeListeners() { NativeEvent zEvent = Document.get().createChangeEvent(); getElement().dispatchEvent( zEvent ); } } |