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.0-alpha.10")
@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 Summary
Constructors -
Method Summary
Modifier 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.Component
addListener, 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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasSize
getHeight, 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.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Constructor Details
-
JmixSupersetDashboard
public JmixSupersetDashboard()
-
-
Method Details
-
getEmbeddedId
- Returns:
- dashboard embedded ID or
nullif not set
-
setEmbeddedId
Sets 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
-
isTitleVisible
public boolean isTitleVisible()- Returns:
trueif dashboard title is visible
-
setTitleVisible
public void setTitleVisible(boolean titleVisible) Sets whether the dashboard title should be visible. The default value isfalse.- Parameters:
titleVisible- title visible option
-
isChartControlsVisible
public boolean isChartControlsVisible() -
setChartControlsVisible
public void setChartControlsVisible(boolean chartControlsVisible) Sets whether the chart's kebab menu should be visible. The default value isfalse.- Parameters:
chartControlsVisible- chart control visible option
-
setFiltersExpanded
public void setFiltersExpanded(boolean filtersExpanded) Sets whether the filter's bar should be expanded. The default value isfalse.- Parameters:
filtersExpanded- filters expanded option
-
isFiltersExpanded
public boolean isFiltersExpanded()- Returns:
trueif filter's bar is expanded
-
setGuestTokenInternal
-
setUrlInternal
-
fetchGuestToken
@ClientCallable protected void fetchGuestToken()
-