public void removeListDataListener(ListDataListener l) { _model.removeListDataListener(l); }
public void removeListDataListener(ListDataListener l) { _model.removeListDataListener(l); }
public void onPageDetached(Page page) { super.onPageDetached(page); if (_model != null && _dataListener != null) _model.removeListDataListener(_dataListener); }
public void onPageDetached(Page page) { super.onPageDetached(page); if (_model != null && _dataListener != null) _model.removeListDataListener(_dataListener); } }
public void onPageDetached(Page page) { super.onPageDetached(page); if (_model != null && _dataListener != null) _model.removeListDataListener(_dataListener); } }
public void onPageDetached(Page page) { super.onPageDetached(page); if (_model != null && _dataListener != null) _model.removeListDataListener(_dataListener); } }
public void onPageAttached(Page newpage, Page oldpage) { super.onPageAttached(newpage, oldpage); if (_model != null) { postOnInitRender(); if (_dataListener != null) { _model.removeListDataListener(_dataListener); _model.addListDataListener(_dataListener); } } }
public void onPageDetached(Page page) { super.onPageDetached(page); if (_model != null && _dataListener != null) _model.removeListDataListener(_dataListener); GroupsModel groupsModel = getGroupsModel(); if (groupsModel != null && _groupsDataListener != null) groupsModel.removeGroupsDataListener(_groupsDataListener); }
public void onPageDetached(Page page) { super.onPageDetached(page); if (_model != null && _dataListener != null) _model.removeListDataListener(_dataListener); GroupsModel groupsModel = getGroupsModel(); if (groupsModel != null && _groupsDataListener != null) groupsModel.removeGroupsDataListener(_groupsDataListener); }
public void onPageAttached(Page newpage, Page oldpage) { super.onPageAttached(newpage, oldpage); if (_model != null) { postOnInitRender(null); if (_dataListener != null) { _model.removeListDataListener(_dataListener); _model.addListDataListener(_dataListener); } } }
public void onPageAttached(Page newpage, Page oldpage) { super.onPageAttached(newpage, oldpage); if (_model != null) { postOnInitRender(null); if (_dataListener != null) { _model.removeListDataListener(_dataListener); _model.addListDataListener(_dataListener); } } }
/** * Sets the list model associated with this selectbox. If a non-null model * is assigned, no matter whether it is the same as the previous, it will * always cause re-render. * * @param model * the list model to associate, or null to dissociate any * previous model. * @exception UiException * if failed to initialize with the model */ public void setModel(ListModel<?> model) { if (model != null) { if (!(model instanceof Selectable)) throw new UiException(model.getClass() + " must implement " + Selectable.class); if (_model != model) { if (_model != null) { _model.removeListDataListener(_dataListener); } _model = model; _jsel = -1; //Bug ZK-1418: clear select index since model is changed. initDataListener(); postOnInitRender(); } } else if (_model != null) { _model.removeListDataListener(_dataListener); _model = null; invalidate(); } }
_model.removeListDataListener(_dataListener); _model.removeListDataListener(_dataListener); _model = null; if (!getChildren().isEmpty())
_model.removeListDataListener(_dataListener); _model.removeListDataListener(_dataListener); _model = null; invalidate();
public void onPageAttached(Page newpage, Page oldpage) { super.onPageAttached(newpage, oldpage); prepareDatas(); if (_model != null) { postOnInitRender(); if (_dataListener != null) { _model.removeListDataListener(_dataListener); _model.addListDataListener(_dataListener); } } }
_model.removeListDataListener(_dataListener); for (int i = 0, j = _eventList.size(); i < j; i++) { OccurEvent oe = (OccurEvent)_eventList.get(0);
.removeAttribute(BinderCtrl.CHILDREN_BINDING_MODEL_LISTENER); if (model != null && listener != null) { model.removeListDataListener(listener);
final Object attribute = comp.setAttribute(BinderCtrl.CHILDREN_BINDING_MODEL_LISTENER, dataListener); if (attribute instanceof ListDataListener) // B80-ZK-2927 ((ListModel<?>) old).removeListDataListener((ListDataListener) attribute);
public void onPageAttached(Page newpage, Page oldpage) { super.onPageAttached(newpage, oldpage); if (oldpage == null) { Executions.getCurrent().setAttribute("zkoss.Grid.deferInitModel_" + getUuid(), Boolean.TRUE); //prepare a right moment to init Grid(must be as early as possible) this.addEventListener("onInitModel", _modelInitListener = new ModelInitListener()); Events.postEvent(20000, new Event("onInitModel", this)); //first event to be called } GroupsModel groupsModel = getGroupsModel(); if (_model != null || groupsModel != null) { getDataLoader().syncModel(-1, -1); postOnInitRender(); } if (_model != null && _dataListener != null) { _model.removeListDataListener(_dataListener); _model.addListDataListener(_dataListener); } if (groupsModel != null && _groupsDataListener != null) { groupsModel.removeGroupsDataListener(_groupsDataListener); groupsModel.addGroupsDataListener(_groupsDataListener); } }
public void onPageAttached(Page newpage, Page oldpage) { super.onPageAttached(newpage, oldpage); if (oldpage == null) { // mark as a new attached Listbox final Execution exec = Executions.getCurrent(); exec.setAttribute("zkoss.Listbox.deferInitModel_" + getUuid(), Boolean.TRUE); exec.setAttribute("zkoss.Listbox.attached_" + getUuid(), Boolean.TRUE); // prepare a right moment to init Listbox (must be as early as possible) this.addEventListener("onInitModel", _modelInitListener = new ModelInitListener()); Events.postEvent(20000, new Event("onInitModel", this)); //first event to be called } GroupsModel groupsModel = getGroupsModel(); if (_model != null || groupsModel != null) { getDataLoader().syncModel(-1, -1); postOnInitRender(); } if (_model != null && _dataListener != null) { _model.removeListDataListener(_dataListener); _model.addListDataListener(_dataListener); } if (groupsModel != null && _groupsDataListener != null) { groupsModel.removeGroupsDataListener(_groupsDataListener); groupsModel.addGroupsDataListener(_groupsDataListener); } }