/** * Sets the inner held collection. * <p> * {@inheritDoc} */ @Override protected void setConnecteeValue(Object aValue) { Collection<?> oldValue = connecteeValue; connecteeValue = (Collection<?>) aValue; propertyChange(new PropertyChangeEvent(this, "connecteeValue", computeOldConnectorValue(oldValue), connecteeValue)); } }
/** * Constructs a new {@code ModelCollectionConnector} instance. * * @param id * the connector identifier. * @param modelDescriptor * the model descriptor backing this connector. * @param modelConnectorFactory * the factory used to create the collection model connectors. */ ModelCollectionConnector(String id, ICollectionDescriptorProvider<?> modelDescriptor, IModelConnectorFactory modelConnectorFactory) { super(modelDescriptor, modelConnectorFactory); if (id != null) { setId(id); } }
(IComponentDescriptor<?>) modelDescriptor, this); } else if (modelDescriptor instanceof ICollectionDescriptor<?>) { modelConnector = new ModelCollectionConnector(id, (ICollectionDescriptor<?>) modelDescriptor, this); } else if (modelDescriptor instanceof IPropertyDescriptor) {