Class Appswitcher.Builder<T extends com.vaadin.flow.component.Component & com.vaadin.flow.component.ClickNotifier<?>>
java.lang.Object
de.muenchen.oss.appswitcher.vaadin.Appswitcher.Builder<T>
- Enclosing class:
- Appswitcher
public static class Appswitcher.Builder<T extends com.vaadin.flow.component.Component & com.vaadin.flow.component.ClickNotifier<?>>
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()componentId(String componentId) customComponent(T component) dimensions(String width, String height) Sets the size of the iframe.
-
Constructor Details
-
Builder
-
-
Method Details
-
baseUrl
- Parameters:
baseUrl- URL to appswitcher-server- Returns:
- the
Appswitcher.Builder
-
tags
- Parameters:
tags- requested tags (default: ['global'])- Returns:
- the
Appswitcher.Builder
-
customComponent
- Parameters:
component- component which will trigger the popup containing the appswitcher-server iframe. Default:ButtonwithButtonVariant.LUMO_TERTIARYand IconVaadinIcon.GRID_SMALL- Returns:
- the
Appswitcher.Builder
-
iframeId
- Parameters:
iframeId- ID of iframe element- Returns:
- the
Appswitcher.Builder
-
componentId
- Parameters:
componentId- ID of component- Returns:
- the
Appswitcher.Builder
-
dimensions
Sets the size of the iframe. Should be strings that are understood by browsers (e.g. '100%', '1.5em', '200px').- Parameters:
width- (default: "315px")height- (default: "300px")- Returns:
- the
Appswitcher.Builder
-
build
- Returns:
- a
Appswitchercomponent
-