@Override public void setValueList(IValueList vl) { super.setValueList(vl); if (list instanceof CustomValueList) { createCustomListModel((CustomValueList) list); } converter = null; // clear old converter, so a new one is created for the new list }
@Override public void setClientProperty(Object key, Object value) { if ((IApplication.TYPE_AHEAD_SHOW_POPUP_ON_FOCUS_GAIN.equals(key) || IApplication.TYPE_AHEAD_SHOW_POPUP_WHEN_EMPTY.equals(key)) && !Utils.equalObjects(getScriptObject().getClientProperty(key), value)) { getStylePropertyChanges().setChanged(); } super.setClientProperty(key, value); }
/** @see com.servoy.j2db.dataprocessing.IDisplayRelatedData#destroy() */ @Override public void destroy() { if (dlm != null && changeListener != null) { dlm.getValueList().removeListDataListener(changeListener); } super.destroy(); parentState = null; relatedRecord = null; detachModel(); }
/** * @see com.servoy.j2db.server.headlessclient.dataui.WebDataField#setValidationEnabled(boolean) */ @Override public void setValidationEnabled(boolean validation) { if (list != null && list.getFallbackValueList() != null) { IValueList vlist = list; if (!validation) { vlist = list.getFallbackValueList(); } if (vlist instanceof CustomValueList) { createCustomListModel((CustomValueList) vlist); } else { createLookupListModel((LookupValueList) vlist); } } super.setValidationEnabled(validation); }
@Override public void setBackground(Color cbg) { listColor = cbg; super.setBackground(cbg); }