* Gets the URL to the context root of the web application
*
* @return the URL to the server-side context root as a string
+ *
+ * @since 8.0.3
*/
public String getContextRootUrl() {
return contextRootUrl;
/**
* Starts loading the deferred bundle if it hasn't already been started.
+ *
+ * @since 8.0.3
*/
public void ensureDeferredBundleLoaded() {
if (!isBundleLoaded(DEFERRED_BUNDLE_NAME)) {
* This method is intended for testing the loading mechanism.
*
* @return a list of bundles, not <code>null</code>
+ *
+ * @since 8.0.3
*/
public List<String> getLoadedBundles() {
ArrayList<String> bundles = new ArrayList<>();
* @param state
* state string
* @return suitable provider
+ *
+ * @since 8.0.3
*/
protected ViewProvider getViewProvider(String state) {
String longestViewName = null;
* @param request
* the request for which the location should be determined
* @return A relative path to the context root. Never ends with a slash (/).
+ *
+ * @since 8.0.3
*/
public static String getContextRootRelativePath(VaadinRequest request) {
VaadinServletRequest servletRequest = (VaadinServletRequest) request;
* based on the row item.
*
* @return the value provider function
+ *
+ * @since 8.0.3
*/
public SerializableFunction<T, ? extends V> getValueProvider() {
return valueProvider;
* @param renderer
* the new renderer
* @return this column
+ *
+ * @since 8.0.3
*/
public Column<T, V> setRenderer(Renderer<? super V> renderer) {
Objects.requireNonNull(renderer, "Renderer can't be null");
*
* @param propertySet
* the property set to use
+ *
+ * @since 8.0.3
*/
protected void setPropertySet(PropertySet<T> propertySet) {
Objects.requireNonNull(propertySet, "propertySet cannot be null");
*
* @return the used bean type or <code>null</code> if no bean type has been
* defined
+ *
+ * @since 8.0.3
*/
public Class<T> getBeanType() {
return beanType;
* @param renderer
* the renderer
* @return a new column instance
+ *
+ * @since 8.0.3
*/
protected <V> Column<T, V> createColumn(ValueProvider<T, V> valueProvider,
AbstractRenderer<? super T, ? super V> renderer) {
*
* @param beanTypeClassName
* the fully qualified class name of the bean type
+ *
+ * @since 8.0.3
*/
@SuppressWarnings("unchecked")
protected void setBeanType(String beanTypeClassName) {
*
* @param beanType
* the bean type class
+ *
+ * @since 8.0.3
*/
protected void setBeanType(Class<T> beanType) {
this.beanType = beanType;
* The order of the components in the returned collection is not specified.
*
* @return a collection of components in the row
+ *
+ * @since 8.0.3
*/
public Collection<? extends Component> getComponents();
* The order of the components in the returned collection is not specified.
*
* @return a collection of components in the row
+ *
+ * @since 8.0.3
*/
public Collection<? extends Component> getComponents();
}
* @param htmlContentAllowed
* <code>true</code> to render as HTML, <code>false</code> to
* render as text
+ *
+ * @since 8.0.3
*/
public void setHtmlContentAllowed(boolean htmlContentAllowed) {
getState().htmlContentAllowed = htmlContentAllowed;
*
* @return <code>true</code> if the renderer renders a HTML,
* <code>false</code> if the content is rendered as text
+ *
+ * @since 8.0.3
*/
public boolean isHtmlContentAllowed() {
return getState(false).htmlContentAllowed;
* Gets the URL pointing to the context root.
*
* @return the context root URL
+ *
+ * @since 8.0.3
*/
protected abstract String getContextRootUrl();