/** * This does the delegated job of setting the property to the given value. */ public void setPropertyValue(Object thisObject, Object value) { itemPropertyDescriptor.setPropertyValue(object, value); }
/** * This implements PropertySource by delegating to the descriptor, * which is assumed to support the IItemPropertyDescriptor interface */ public void setPropertyValue(Object object, String property, Object value) { getPropertyDescriptor(object, property).setPropertyValue(object, value); }
/** * Updates the decorated descriptor's command owner and invokes <code>setPropertyValue</code> on it. */ @Override public void setPropertyValue(Object thisObject, Object value) { boolean hasCommandOwner = commandOwner != null; if (!hasCommandOwner) { setCommandOwner(DelegatingWrapperItemProvider.this); } itemPropertyDescriptor.setPropertyValue(object, value); if (!hasCommandOwner) { setCommandOwner(null); } } }