private IValueConnector createColumnConnector(String columnId, IComponentDescriptor<?> descriptor) { IPropertyDescriptor propertyDescriptor = descriptor .getPropertyDescriptor(columnId); if (propertyDescriptor == null) { throw new ViewException("No property " + columnId + " defined for " + descriptor.getComponentContract()); } if (propertyDescriptor instanceof IReferencePropertyDescriptor) { return connectorFactory.createCompositeValueConnector(columnId, ((IReferencePropertyDescriptor<?>) propertyDescriptor) .getReferencedDescriptor().getToStringProperty()); } return connectorFactory.createValueConnector(propertyDescriptor.getName()); }
private IValueConnector createColumnConnector(String columnId, IComponentDescriptor<?> descriptor) { IPropertyDescriptor propertyDescriptor = descriptor .getPropertyDescriptor(columnId); if (propertyDescriptor == null) { throw new ViewException("No property " + columnId + " defined for " + descriptor.getComponentContract()); } if (propertyDescriptor instanceof IReferencePropertyDescriptor) { return connectorFactory.createCompositeValueConnector(columnId, ((IReferencePropertyDescriptor<?>) propertyDescriptor) .getReferencedDescriptor().getToStringProperty()); } return connectorFactory.createValueConnector(propertyDescriptor.getName()); }
private IValueConnector createColumnConnector(String columnId, IComponentDescriptor<?> descriptor) { IPropertyDescriptor propertyDescriptor = descriptor .getPropertyDescriptor(columnId); if (propertyDescriptor == null) { throw new ViewException("No property " + columnId + " defined for " + descriptor.getComponentContract()); } if (propertyDescriptor instanceof IReferencePropertyDescriptor) { return connectorFactory.createCompositeValueConnector(columnId, ((IReferencePropertyDescriptor<?>) propertyDescriptor) .getReferencedDescriptor().getToStringProperty()); } return connectorFactory.createValueConnector(propertyDescriptor.getName()); }
.getComponentDescriptor().getPropertyDescriptor(propertyName); if (propertyDescriptor == null) { throw new ViewException( "Property descriptor [" + propertyName + "] does not exist for model descriptor " + viewDescriptor .getModelDescriptor().getName() + ".");
.getComponentDescriptor().getPropertyDescriptor(propertyName); if (propertyDescriptor == null) { throw new ViewException( "Property descriptor [" + propertyName + "] does not exist for model descriptor " + viewDescriptor .getModelDescriptor().getName() + ".");
.getPropertyDescriptor(propertyName); if (propertyDescriptor == null) { throw new ViewException("Property descriptor [" + propertyName + "] does not exist for model descriptor " + viewDescriptor.getModelDescriptor().getName() + ".");
.getPropertyDescriptor(propertyName); if (propertyDescriptor == null) { throw new ViewException("Property descriptor [" + propertyName + "] does not exist for model descriptor " + viewDescriptor.getModelDescriptor().getName() + ".");
.getPropertyDescriptor(propertyName); if (propertyDescriptor == null) { throw new ViewException("Property descriptor [" + propertyName + "] does not exist for model descriptor " + viewDescriptor.getModelDescriptor().getName() + ".");
.getPropertyDescriptor(propertyName); if (propertyDescriptor == null) { throw new ViewException("Property descriptor [" + propertyName + "] does not exist for model descriptor " + viewDescriptor.getModelDescriptor().getName() + ".");