private IValueProperty getClassDelegate(Class<?> beanClass) { if (this.delegates.containsKey(beanClass)) return this.delegates.get(beanClass); IValueProperty delegate; try { delegate = JFXBeanProperties.value(beanClass, this.propertyName, (Class<?>) getValueType()); } catch (IllegalArgumentException noSuchProperty) { delegate = null; } this.delegates.put(beanClass, delegate); return delegate; }
@NonNull String[] propertyNames = split(propertyName); if (propertyNames.length > 1) { valueType = null;
/** * Create a single value property without a type * * @param propertyName * the name of the property (nested properties are separated with a .) * @return the property */ public static @NonNull IJFXBeanValueProperty value(@NonNull String propertyName) { return value(null, propertyName, null); }
/** * Create a single value property with a type * * @param propertyName * the name of the property (nested properties are separated with a .) * @param valueType * the type * @return the property */ public static @NonNull IJFXBeanValueProperty value(@NonNull String propertyName, Class<?> valueType) { return value(null, propertyName, valueType); }
@Override public IJFXBeanValueProperty value(String propertyName, Class<?> valueType) { Class<?> beanClass = (Class<?>) this.delegate.getValueType(); return value(JFXBeanProperties.value(beanClass, propertyName, valueType)); }