@StyleSheet(value="context://frontend/styles/commons-demo/shared-styles.css")
public class TabbedDemo
extends com.vaadin.flow.component.orderedlayout.VerticalLayout
implements com.vaadin.flow.router.RouterLayout
| Constructor and Description |
|---|
TabbedDemo() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDemo(Class<? extends com.vaadin.flow.component.Component> clazz)
Add a tab with a
demo component. |
void |
addDemo(Class<? extends com.vaadin.flow.component.Component> clazz,
String label)
Add a tab with a demo component.
|
void |
addDemo(com.vaadin.flow.component.Component demo)
Deprecated.
|
void |
addDemo(com.vaadin.flow.component.Component demo,
String label)
Deprecated.
|
void |
addDemo(com.vaadin.flow.component.Component demo,
String label,
String sourceCodeUrl)
Deprecated.
|
void |
addTabbedDemoSourceListener(com.vaadin.flow.component.ComponentEventListener<TabbedDemoSourceEvent> listener) |
static void |
applyTheme(com.vaadin.flow.dom.Element element,
boolean useDarkTheme) |
com.vaadin.flow.component.splitlayout.SplitLayout.Orientation |
getOrientation() |
static String |
lookupGithubBranch(Class<? extends TabbedDemo> clazz) |
protected void |
onAttach(com.vaadin.flow.component.AttachEvent attachEvent) |
void |
removeRouterLayoutContent(com.vaadin.flow.component.HasElement oldContent) |
void |
setDemoHelperViewer(DemoHelperViewer demoHelperViewer) |
void |
setOrientation(com.vaadin.flow.component.splitlayout.SplitLayout.Orientation orientation) |
void |
setSourceVisible(boolean visible) |
void |
showRouterLayoutContent(com.vaadin.flow.component.HasElement content) |
void |
toggleSourcePosition() |
addAndExpand, getAlignItems, getAlignSelf, getDefaultHorizontalComponentAlignment, getHorizontalComponentAlignment, setAlignItems, setAlignSelf, setDefaultHorizontalComponentAlignment, setHorizontalComponentAlignment, setPadding, setSpacingaddListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onDetach, onEnabledStateChanged, set, setElement, setId, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBoxSizing, getThemeList, isMargin, isPadding, isSpacing, setBoxSizing, setMarginexpand, getFlexGrow, getJustifyContentMode, replace, setFlexGrow, setJustifyContentModegetChildren, getComponentAt, getComponentCount, indexOfadd, add, addComponentAsFirst, addComponentAtIndex, remove, removeAlladdClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassNamegetCssSize, getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull@Deprecated public void addDemo(com.vaadin.flow.component.Component demo)
demo component. The tab label and source code URL are retrieved from
the PageTitle (required) and DemoSource (optional) annotations in the demo
class, respectively.demo - the demo instance@Deprecated public void addDemo(com.vaadin.flow.component.Component demo, String label, String sourceCodeUrl)
demo - the demo instancelabel - the demo name (tab label)sourceCodeUrl - ignored.public void addDemo(Class<? extends com.vaadin.flow.component.Component> clazz, String label)
clazz - the class of routed demo view componentlabel - the demo name (tab label)public void addDemo(Class<? extends com.vaadin.flow.component.Component> clazz)
demo component. The tab label is retrieved from the PageTitle
annotations in the demo class.clazz - the class of routed demo view component@Deprecated public void addDemo(com.vaadin.flow.component.Component demo, String label)
public void showRouterLayoutContent(com.vaadin.flow.component.HasElement content)
showRouterLayoutContent in interface com.vaadin.flow.router.RouterLayoutpublic static String lookupGithubBranch(Class<? extends TabbedDemo> clazz)
public void removeRouterLayoutContent(com.vaadin.flow.component.HasElement oldContent)
removeRouterLayoutContent in interface com.vaadin.flow.router.RouterLayoutpublic void setSourceVisible(boolean visible)
public void toggleSourcePosition()
public com.vaadin.flow.component.splitlayout.SplitLayout.Orientation getOrientation()
public void setOrientation(com.vaadin.flow.component.splitlayout.SplitLayout.Orientation orientation)
public static void applyTheme(com.vaadin.flow.dom.Element element,
boolean useDarkTheme)
public void addTabbedDemoSourceListener(com.vaadin.flow.component.ComponentEventListener<TabbedDemoSourceEvent> listener)
protected void onAttach(com.vaadin.flow.component.AttachEvent attachEvent)
onAttach in class com.vaadin.flow.component.Componentpublic void setDemoHelperViewer(DemoHelperViewer demoHelperViewer)
Copyright © 2020–2024 Flowing Code. All rights reserved.