public void setLabelRenderer(ValueLabelRenderer labelRenderer) { final ValueLabelRenderer prevRenderer = getLabelRenderer(); super.setLabelRenderer(myRendererSettings.isBase(labelRenderer) ? null : labelRenderer); final ValueLabelRenderer currentRenderer = getLabelRenderer(); if (prevRenderer != currentRenderer) { if (currentRenderer instanceof ReferenceRenderer) { ((ReferenceRenderer) currentRenderer).setClassName(getClassName()); } } }
public void setChildrenRenderer(ChildrenRenderer childrenRenderer) { final ChildrenRenderer prevRenderer = getChildrenRenderer(); super.setChildrenRenderer( myRendererSettings.isBase(childrenRenderer) ? null : childrenRenderer); final ChildrenRenderer currentRenderer = getChildrenRenderer(); if (prevRenderer != currentRenderer) { if (currentRenderer instanceof ReferenceRenderer) { ((ReferenceRenderer) currentRenderer).setClassName(getClassName()); } } }