Java 类com.google.gwt.user.client.ui.ChangeListener 实例源码

项目:onecmdb    文件:TemplateCache.java   
protected static void notifyListeners() {
    for (Iterator iter = changeListsners.iterator(); iter.hasNext();) { 
        Object list = iter.next();
        if (list instanceof ChangeListener) {
            ((ChangeListener)list).onChange(null);
        }
    }
}
项目:qafe-platform    文件:EventFactory.java   
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);
        }
    }; 
}
项目:iambookmaster    文件:NumberTextBox.java   
public NumberTextBox() {
    super.addChangeListener(new ChangeListener() {
        public void onChange(Widget sender) {
            getIntegerValue();
            if (changeListenerCollection != null) {
                changeListenerCollection.fireChange(NumberTextBox.this);
            }
        }
    });
}
项目:OneCMDBwithMaven    文件:TemplateCache.java   
protected static void notifyListeners() {
    for (Iterator iter = changeListsners.iterator(); iter.hasNext();) { 
        Object list = iter.next();
        if (list instanceof ChangeListener) {
            ((ChangeListener)list).onChange(null);
        }
    }
}
项目:gwittir    文件:GWTBindableAdapter.java   
@Override
protected void initListener() {
    this.listener = new ChangeListener() {
                public void onChange(Widget sender) {
                    update();
                }
            };
    this.watched.addChangeListener(listener);
}
项目:gwittir    文件:ListBox.java   
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);
    }
}
项目:ephesoft    文件:CalendarWidget.java   
public void removeChangeListener(ChangeListener listener) {
    if (changeListeners != null){
        changeListeners.remove(listener);
    }
}
项目:onecmdb    文件:TemplateCache.java   
public static void addChangeListener(ChangeListener listener) {
    changeListsners.add(listener);
}
项目:iambookmaster    文件:NumberTextBox.java   
@Override
public void removeChangeListener(ChangeListener listener) {
    if (changeListenerCollection!=null) {
        changeListenerCollection.remove(listener);
    }
}
项目:OneCMDBwithMaven    文件:TemplateCache.java   
public static void addChangeListener(ChangeListener listener) {
    changeListsners.add(listener);
}
项目:gwittir    文件:ListBox.java   
public void addChangeListener(final ChangeListener listener) {
    this.changeListeners.add(listener);
}
项目:gwittir    文件:ListBox.java   
public void removeChangeListener(final ChangeListener listener) {
    this.changeListeners.remove(listener);
}
项目:gwittir    文件:TextArea.java   
public void addChangeListener(ChangeListener listener) {
    this.base.addChangeListener(listener);
}
项目:gwittir    文件:TextArea.java   
public void removeChangeListener(ChangeListener listener) {
    this.base.removeChangeListener(listener);
}
项目:gwittir    文件:AbstractBoundWidget.java   
public void addChangeListener(ChangeListener listener) {
    changeListeners.add(listener);
}
项目:gwittir    文件:AbstractBoundWidget.java   
public void removeChangeListener(ChangeListener listener) {
    changeListeners.remove(listener);
}
项目:gwittir    文件:TextBox.java   
public void addChangeListener(ChangeListener listener) {
    this.base.addChangeListener(listener);
}
项目:gwittir    文件:TextBox.java   
@Override
public void removeChangeListener(ChangeListener listener) {
    this.base.removeChangeListener(listener);
}
项目:gwittir    文件:ContextMenuPanel.java   
public void addChangeListener(ChangeListener arg0) {
}
项目:gwittir    文件:ContextMenuPanel.java   
public void removeChangeListener(ChangeListener arg0) {
}
项目:jcommerce    文件:ConsigneeSettingPanel.java   
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 ;
            }
        }
    });
}
项目:jcommerce    文件:ShopGeneralPanel.java   
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");
        }
    });
}
项目:LAS    文件:LatLonWidget.java   
/**
 * 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);
}
项目:LAS    文件:LatLonWidget.java   
/**
 * 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);
}
项目:LAS    文件:LatLonWidget.java   
/**
 * 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);
}
项目:LAS    文件:LatLonWidget.java   
/**
 * 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);
}
项目:LAS    文件:RegionWidget.java   
/**
 * Remove the default listener and add the listener
 * @param listener the listener that will replace the default
 */
public void setChangeListener(ChangeListener listener) {
    addChangeListener(listener);
}