Class VDetails
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.details.Details
org.vaadin.firitin.components.details.VDetails
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasComponents,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasEnabled,com.vaadin.flow.component.HasSize,com.vaadin.flow.component.HasStyle,com.vaadin.flow.component.HasTheme,com.vaadin.flow.component.shared.HasThemeVariant<com.vaadin.flow.component.details.DetailsVariant>,com.vaadin.flow.component.shared.HasTooltip,Serializable,FluentAttachNotifier<VDetails>,FluentComponent<VDetails>,FluentDetachNotifier<VDetails>,FluentHasEnabled<VDetails>,FluentHasTheme<VDetails>,FluentHasTooltip<VDetails>
public class VDetails
extends com.vaadin.flow.component.details.Details
implements FluentComponent<VDetails>, FluentHasEnabled<VDetails>, FluentHasTheme<VDetails>, FluentHasTooltip<VDetails>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.vaadin.flow.component.details.Details
com.vaadin.flow.component.details.Details.OpenedChangeEvent -
Constructor Summary
ConstructorsConstructorDescriptionVDetails()VDetails(com.vaadin.flow.component.Component summary, com.vaadin.flow.component.Component content) VDetails(String previewString, com.vaadin.flow.function.SerializableSupplier<com.vaadin.flow.component.Component> componentSupplier) Creates a new instance of Details with the given summary text and content component supplier. -
Method Summary
Modifier and TypeMethodDescriptionwithContent(com.vaadin.flow.component.Component content) withOpened(boolean opened) withOpenedChangeListener(com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.details.Details.OpenedChangeEvent> listener) withSummary(com.vaadin.flow.component.Component summary) withSummaryText(String summary) withThemeVariants(com.vaadin.flow.component.details.DetailsVariant... variants) Methods inherited from class com.vaadin.flow.component.details.Details
add, add, addComponentAtIndex, addContent, addOpenedChangeListener, createSummaryContainer, getContent, getSummary, getSummaryText, isOpened, remove, removeAll, setContent, setOpened, setSummary, setSummaryTextMethods 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 org.vaadin.firitin.fluency.ui.FluentAttachNotifier
withAttachListenerMethods inherited from interface org.vaadin.firitin.fluency.ui.FluentComponent
navigate, setId, setVisible, withId, withVisibleMethods inherited from interface org.vaadin.firitin.fluency.ui.FluentDetachNotifier
withDetachListenerMethods inherited from interface org.vaadin.firitin.fluency.ui.FluentHasEnabled
withEnabledMethods inherited from interface org.vaadin.firitin.fluency.ui.FluentHasTheme
withThemeNamesMethods inherited from interface org.vaadin.firitin.fluency.ui.FluentHasTooltip
withTooltipMethods inherited from interface com.vaadin.flow.component.HasComponents
add, addComponentAsFirst, removeMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabledMethods 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, setClassNameMethods inherited from interface com.vaadin.flow.component.HasTheme
addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeNameMethods inherited from interface com.vaadin.flow.component.shared.HasThemeVariant
addThemeVariants, removeThemeVariantsMethods inherited from interface com.vaadin.flow.component.shared.HasTooltip
getTooltip, setTooltipText
-
Constructor Details
-
VDetails
public VDetails(String previewString, com.vaadin.flow.function.SerializableSupplier<com.vaadin.flow.component.Component> componentSupplier) Creates a new instance of Details with the given summary text and content component supplier. This is the recommended way to create a new Details component as it will only create the content component when the details gets opened.- Parameters:
previewString- the summary text that is shown even when the details is closedcomponentSupplier- the supplier that creates the content component when the details is opened
-
VDetails
public VDetails() -
VDetails
-
VDetails
public VDetails(com.vaadin.flow.component.Component summary, com.vaadin.flow.component.Component content)
-
-
Method Details
-
withSummary
-
withSummaryText
-
withContent
-
withOpened
-
withThemeVariants
-
withOpenedChangeListener
public VDetails withOpenedChangeListener(com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.details.Details.OpenedChangeEvent> listener)
-