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
ConstructorDescriptionVDetails()
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, setSummaryText
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, setVisible
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListener
Methods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListener
Methods inherited from interface org.vaadin.firitin.fluency.ui.FluentAttachNotifier
withAttachListener
Methods inherited from interface org.vaadin.firitin.fluency.ui.FluentComponent
setId, setVisible, withId, withVisible
Methods inherited from interface org.vaadin.firitin.fluency.ui.FluentDetachNotifier
withDetachListener
Methods inherited from interface org.vaadin.firitin.fluency.ui.FluentHasEnabled
withEnabled
Methods inherited from interface org.vaadin.firitin.fluency.ui.FluentHasTheme
withThemeNames
Methods inherited from interface org.vaadin.firitin.fluency.ui.FluentHasTooltip
withTooltip
Methods inherited from interface com.vaadin.flow.component.HasComponents
add, addComponentAsFirst, remove
Methods inherited from interface com.vaadin.flow.component.HasElement
getElement
Methods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabled
Methods 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, setWidthFull
Methods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
Methods inherited from interface com.vaadin.flow.component.HasTheme
addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeName
Methods inherited from interface com.vaadin.flow.component.shared.HasThemeVariant
addThemeVariants, removeThemeVariants
Methods 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)
-