protected static void notifyListeners() { for (Iterator iter = changeListsners.iterator(); iter.hasNext();) { Object list = iter.next(); if (list instanceof ChangeListener) { ((ChangeListener)list).onChange(null); } } }
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); } }; }
public NumberTextBox() { super.addChangeListener(new ChangeListener() { public void onChange(Widget sender) { getIntegerValue(); if (changeListenerCollection != null) { changeListenerCollection.fireChange(NumberTextBox.this); } } }); }
@Override protected void initListener() { this.listener = new ChangeListener() { public void onChange(Widget sender) { update(); } }; this.watched.addChangeListener(listener); }
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); } }
public void removeChangeListener(ChangeListener listener) { if (changeListeners != null){ changeListeners.remove(listener); } }
public static void addChangeListener(ChangeListener listener) { changeListsners.add(listener); }
@Override public void removeChangeListener(ChangeListener listener) { if (changeListenerCollection!=null) { changeListenerCollection.remove(listener); } }
public void addChangeListener(final ChangeListener listener) { this.changeListeners.add(listener); }
public void removeChangeListener(final ChangeListener listener) { this.changeListeners.remove(listener); }
public void addChangeListener(ChangeListener listener) { this.base.addChangeListener(listener); }
public void removeChangeListener(ChangeListener listener) { this.base.removeChangeListener(listener); }
public void addChangeListener(ChangeListener listener) { changeListeners.add(listener); }
public void removeChangeListener(ChangeListener listener) { changeListeners.remove(listener); }
@Override public void removeChangeListener(ChangeListener listener) { this.base.removeChangeListener(listener); }
public void addChangeListener(ChangeListener arg0) { }
public void removeChangeListener(ChangeListener arg0) { }
private void addListBoxOnChangeListener(final ListBox listBox, final List<BeanObject> arrayList , final ListBox nextLevelListBox, final List<BeanObject> nextLevelArrayList) { listBox.addChangeListener(new ChangeListener(){ public void onChange(Widget sender) { if(listBox.getSelectedIndex() != 0) { String countryInfo = listBox.getValue(listBox.getSelectedIndex()); BeanObject region = arrayList.get(listBox.getSelectedIndex()); nextLevelListBox.clear(); nextLevelListBox.addItem("请选择"); nextLevelArrayList.clear(); nextLevelArrayList.add(null); Criteria criteria = new Criteria(); criteria.addCondition(new Condition(IRegion.PARENT, Condition.EQUALS, region.getString(IRegion.ID))); ListService listService = new ListService(); listService.listBeans(ModelNames.REGION, criteria, new ListService.Listener() { public void onSuccess(List<BeanObject> beans) { for(int i=0; i< beans.size(); i++) { BeanObject regionInfo = beans.get(i); nextLevelArrayList.add(regionInfo); nextLevelListBox.addItem(regionInfo.getString(IRegion.NAME), regionInfo.getString(IRegion.ID)); } } } ); } else { return ; } } }); }
protected void onRender(Element parent, int index) { super.onRender(parent, index); createPanel(SHOPNAME, Resources.constants.Shop_name(), new TextBox()); createPanel(SHOPTITLE, Resources.constants.Shop_title(), new TextBox()); createPanel(SHOPDESC, Resources.constants.Shop_desc(), new TextBox()); createPanel(SHOPKEYWORDS, Resources.constants.shop_keywords(), new TextBox()); ListBox country = new ListBox(); country.addItem(Resources.constants.select_notice()); country.addItem("中国", "1"); country.setSelectedIndex(1); createPanel(SHOPCOUNTRY, Resources.constants.shop_country(), country); createPanel(SHOPPROVINCE, Resources.constants.shop_province(), province); createPanel(SHOPCITY, Resources.constants.shop_city(), city); createPanel(SHOPADDRESS, Resources.constants.shop_address(), new TextBox()); createPanel(QQ, Resources.constants.qq(), new TextBox()); createPanel(WW, Resources.constants.ww(), new TextBox()); createPanel(SKYPE, Resources.constants.skype(), new TextBox()); createPanel(YM, Resources.constants.ym(), new TextBox()); createPanel(MSN, Resources.constants.msn(), new TextBox()); createPanel(SERVICEEMAIL, Resources.constants.service_email(), new TextBox()); createPanel(SERVICEPHONE, Resources.constants.service_phone(), new TextBox()); ListBox closed = new ListBox(); closed.addItem(Resources.constants.no(), "0"); closed.addItem(Resources.constants.yes(), "1"); closed.setSelectedIndex(0); createPanel(SHOPCLOSED,Resources.constants.shop_closed(),closed); TextArea closeComment = new TextArea(); closeComment.setSize("500", "100"); createPanel(CLOSECOMMENT, Resources.constants.close_comment(), closeComment); createPanel(SHOPLOGO, Resources.constants.shop_logo(), new FileUploader()); ListBox licensed = new ListBox(); licensed.addItem(Resources.constants.no(), "0"); licensed.addItem(Resources.constants.yes(), "1"); licensed.setSelectedIndex(0); createPanel(LICENSED,Resources.constants.licensed(),licensed); TextArea userNotice = new TextArea(); userNotice.setSize("500", "100"); createPanel(USERNOTICE, Resources.constants.user_notice(), userNotice); TextArea shopNotice = new TextArea(); shopNotice.setSize("500", "100"); createPanel(SHOPNOTICE, Resources.constants.shop_notice(), shopNotice); province.addChangeListener(new ChangeListener() { public void onChange(Widget sender) { showRegion(city, province.getSelectedIndex(),"0"); } }); }
/** * Adds a listener to the south latitude TextBox. Supplied by the ReferenceMap so it can update all the other widgets when the value changes. * @param southChangeListener the listener for the south latitude TextBox */ public void addSouthChangeListener(ChangeListener southChangeListener) { southLat.addChangeListener(southChangeListener); }
/** * Adds a listener to the north latitude TextBox. Supplied by the ReferenceMap so it can update all the other widgets when the value changes. * @param northChangeListener the listener for the north latitude TextBox */ public void addNorthChangeListener(ChangeListener northChangeListener) { northLat.addChangeListener(northChangeListener); }
/** * Adds a listener to the east longitude TextBox. Supplied by the ReferenceMap so it can update all the other widgets when the value changes. * @param eastChangeListener the listener for the east longitude TextBox */ public void addEastChangeListener(ChangeListener eastChangeListener) { eastLon.addChangeListener(eastChangeListener); }
/** * Adds a listener to the west longitude TextBox. Supplied by the ReferenceMap so it can update all the other widgets when the value changes. * @param westChangeListener the listener for the west longitude TextBox */ public void addWestChangeListener(ChangeListener westChangeListener) { westLon.addChangeListener(westChangeListener); }
/** * Remove the default listener and add the listener * @param listener the listener that will replace the default */ public void setChangeListener(ChangeListener listener) { addChangeListener(listener); }