/** * Sets the value of the given component property. * * @see PropertyDescriptor * * @param <T> * type of the value to set * @param descriptor * the descriptor for the property to set, not <code>null</code> * @param value * the new property value to set */ protected <T> void set(PropertyDescriptor<T, ?> descriptor, T value) { assert descriptor != null; descriptor.set(this, value); }
private void updateHref(String url) { int startOfQuery = url.indexOf('?'); if (startOfQuery >= 0) { url = url.substring(0, startOfQuery); } if (queryParameters != null) { url += '?' + queryParameters.getQueryString(); } HREF.set(this, url); }
/** * Sets the property value for the given component. * * @param hasElement * the component for which to set the value, not * <code>null</code> * @param value * the property value to set */ default void set(HasElement hasElement, S value) { assert hasElement != null; set(hasElement.getElement(), value); }