本文整理汇总了Java中com.google.gwt.user.client.ui.ChangeListener类的典型用法代码示例。如果您正苦于以下问题:Java ChangeListener类的具体用法?Java ChangeListener怎么用?Java ChangeListener使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ChangeListener类属于com.google.gwt.user.client.ui包,在下文中一共展示了ChangeListener类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: notifyListeners
import com.google.gwt.user.client.ui.ChangeListener; //导入依赖的package包/类
protected static void notifyListeners() {
for (Iterator iter = changeListsners.iterator(); iter.hasNext();) {
Object list = iter.next();
if (list instanceof ChangeListener) {
((ChangeListener)list).onChange(null);
}
}
}
示例2: createLegacyOnChangeListener
import com.google.gwt.user.client.ui.ChangeListener; //导入依赖的package包/类
public static ChangeListener createLegacyOnChangeListener(final EventListenerGVO event, final List<InputVariableGVO> inputVariables) {
return new ChangeListener(){
public void onChange(Widget sender) {
CallbackHandler.createCallBack(sender, QAMLConstants.EVENT_ONCHANGE, event, inputVariables);
}
};
}
示例3: NumberTextBox
import com.google.gwt.user.client.ui.ChangeListener; //导入依赖的package包/类
public NumberTextBox() {
super.addChangeListener(new ChangeListener() {
public void onChange(Widget sender) {
getIntegerValue();
if (changeListenerCollection != null) {
changeListenerCollection.fireChange(NumberTextBox.this);
}
}
});
}
示例4: initListener
import com.google.gwt.user.client.ui.ChangeListener; //导入依赖的package包/类
@Override
protected void initListener() {
this.listener = new ChangeListener() {
public void onChange(Widget sender) {
update();
}
};
this.watched.addChangeListener(listener);
}
示例5: fireChangeListeners
import com.google.gwt.user.client.ui.ChangeListener; //导入依赖的package包/类
private void fireChangeListeners() {
for (Iterator<ChangeListener> it = this.changeListeners.iterator(); it.hasNext();) {
ChangeListener l = it.next();
l.onChange(this);
}
if (this.getAction() != null) {
this.getAction()
.execute(this);
}
}
示例6: removeChangeListener
import com.google.gwt.user.client.ui.ChangeListener; //导入依赖的package包/类
public void removeChangeListener(ChangeListener listener) {
if (changeListeners != null){
changeListeners.remove(listener);
}
}
示例7: addChangeListener
import com.google.gwt.user.client.ui.ChangeListener; //导入依赖的package包/类
public static void addChangeListener(ChangeListener listener) {
changeListsners.add(listener);
}
示例8: removeChangeListener
import com.google.gwt.user.client.ui.ChangeListener; //导入依赖的package包/类
@Override
public void removeChangeListener(ChangeListener listener) {
if (changeListenerCollection!=null) {
changeListenerCollection.remove(listener);
}
}
示例9: addChangeListener
import com.google.gwt.user.client.ui.ChangeListener; //导入依赖的package包/类
public void addChangeListener(final ChangeListener listener) {
this.changeListeners.add(listener);
}
示例10: removeChangeListener
import com.google.gwt.user.client.ui.ChangeListener; //导入依赖的package包/类
public void removeChangeListener(final ChangeListener listener) {
this.changeListeners.remove(listener);
}
示例11: addChangeListener
import com.google.gwt.user.client.ui.ChangeListener; //导入依赖的package包/类
public void addChangeListener(ChangeListener listener) {
this.base.addChangeListener(listener);
}
示例12: removeChangeListener
import com.google.gwt.user.client.ui.ChangeListener; //导入依赖的package包/类
public void removeChangeListener(ChangeListener listener) {
this.base.removeChangeListener(listener);
}
示例13: addChangeListener
import com.google.gwt.user.client.ui.ChangeListener; //导入依赖的package包/类
public void addChangeListener(ChangeListener listener) {
changeListeners.add(listener);
}
示例14: removeChangeListener
import com.google.gwt.user.client.ui.ChangeListener; //导入依赖的package包/类
public void removeChangeListener(ChangeListener listener) {
changeListeners.remove(listener);
}
示例15: removeChangeListener
import com.google.gwt.user.client.ui.ChangeListener; //导入依赖的package包/类
@Override
public void removeChangeListener(ChangeListener listener) {
this.base.removeChangeListener(listener);
}