Ejemplo n.º 1
0
 @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
 }
Ejemplo n.º 2
0
 @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);
 }
Ejemplo n.º 3
0
 /** @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();
 }
Ejemplo n.º 4
0
 /**
  * @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);
 }
Ejemplo n.º 5
0
 @Override
 public void setBackground(Color cbg) {
   listColor = cbg;
   super.setBackground(cbg);
 }