Class JmixSupersetDashboard
java.lang.Object
com.vaadin.flow.component.Component
io.jmix.supersetflowui.kit.component.JmixSupersetDashboard
- All Implemented Interfaces:
- com.vaadin.flow.component.AttachNotifier,- com.vaadin.flow.component.DetachNotifier,- com.vaadin.flow.component.HasElement,- com.vaadin.flow.component.HasSize,- com.vaadin.flow.component.HasStyle,- Serializable
- Direct Known Subclasses:
- SupersetDashboard
@Tag("jmix-superset-dashboard")
@NpmPackage(value="@superset-ui/embedded-sdk",
            version="0.1.2")
@JsModule("./src/superset-dashboard/jmix-superset-dashboard.js")
public class JmixSupersetDashboard
extends com.vaadin.flow.component.Component
implements com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidbooleanbooleanbooleanvoidsetChartControlsVisible(boolean chartControlsVisible) Sets whether the chart's kebab menu should be visible.voidsetEmbeddedId(String embeddedId) Sets an embedded dashboard ID.voidsetFiltersExpanded(boolean filtersExpanded) Sets whether the filter's bar should be expanded.protected voidsetGuestTokenInternal(String guestToken) voidsetTitleVisible(boolean titleVisible) Sets whether the dashboard title should be visible.protected voidsetUrlInternal(String url) Methods inherited from class com.vaadin.flow.component.ComponentaddListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisibleMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifieraddAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifieraddDetachListenerMethods inherited from interface com.vaadin.flow.component.HasElementgetElementMethods inherited from interface com.vaadin.flow.component.HasSizegetHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFullMethods inherited from interface com.vaadin.flow.component.HasStyleaddClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
- 
Constructor Details- 
JmixSupersetDashboardpublic JmixSupersetDashboard()
 
- 
- 
Method Details- 
getEmbeddedId- Returns:
- dashboard embedded ID or nullif not set
 
- 
setEmbeddedIdSets an embedded dashboard ID. This ID can be taken from dashboard if Superset hasEMBEDDED_SUPERSETfeature flag. Without an embedded ID, the component won't start the request for fetching guest token.Note that every time the embedded ID is set to the component, it will start a process of fetching a guest token and handling its expiration. - Parameters:
- embeddedId- a dashboard embedded ID
 
- 
isTitleVisiblepublic boolean isTitleVisible()- Returns:
- trueif dashboard title is visible
 
- 
setTitleVisiblepublic void setTitleVisible(boolean titleVisible) Sets whether the dashboard title should be visible. The default value isfalse.- Parameters:
- titleVisible- title visible option
 
- 
isChartControlsVisiblepublic boolean isChartControlsVisible()
- 
setChartControlsVisiblepublic void setChartControlsVisible(boolean chartControlsVisible) Sets whether the chart's kebab menu should be visible. The default value isfalse.- Parameters:
- chartControlsVisible- chart control visible option
 
- 
setFiltersExpandedpublic void setFiltersExpanded(boolean filtersExpanded) Sets whether the filter's bar should be expanded. The default value isfalse.- Parameters:
- filtersExpanded- filters expanded option
 
- 
isFiltersExpandedpublic boolean isFiltersExpanded()- Returns:
- trueif filter's bar is expanded
 
- 
setGuestTokenInternal
- 
setUrlInternal
- 
fetchGuestToken@ClientCallable protected void fetchGuestToken()
 
-