Class BaseSection
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- com.vaadin.flow.component.HtmlComponent
-
- org.linkki.core.vaadin.component.section.LinkkiSection
-
- org.linkki.core.vaadin.component.section.BaseSection
-
- 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,HasCaption
public class BaseSection extends LinkkiSection
Base class for sections. Child components can be added usingaddContent(Component)- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.linkki.core.vaadin.component.section.LinkkiSection
CLASS_SECTION_SECONDARY_CAPTION, CLASS_SECTION_STYLE_CARD, THEME_VARIANT_FORM, THEME_VARIANT_HORIZONTAL
-
-
Constructor Summary
Constructors Constructor Description BaseSection(String caption, boolean closeable)Creates a new section with the given caption and closable state.BaseSection(String caption, boolean closeable, int columns)Creates a new section with the given caption and closable state.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddContent(com.vaadin.flow.component.Component component)Adds theComponentto the section's contentcom.vaadin.flow.component.ComponentgetSectionContent()Deprecated.UseLinkkiSection.getContentWrapper()instead.-
Methods inherited from class org.linkki.core.vaadin.component.section.LinkkiSection
addHeaderButton, addHeaderComponent, addRightHeaderComponent, close, getCaption, getContentWrapper, getHeaderComponents, isClosed, isOpen, open, setCaption, switchOpenStatus
-
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, 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.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
-
-
-
-
Constructor Detail
-
BaseSection
public BaseSection(String caption, boolean closeable)
Creates a new section with the given caption and closable state.- Parameters:
caption- the captioncloseable-trueif the section can be closed and opened.
-
BaseSection
public BaseSection(String caption, boolean closeable, int columns)
Creates a new section with the given caption and closable state.- Parameters:
caption- the captioncloseable-trueif the section can be closed and opened.columns- number of columns in which the content components are displayed
-
-
Method Detail
-
addContent
public void addContent(com.vaadin.flow.component.Component component)
Adds theComponentto the section's content
-
getSectionContent
@Deprecated(since="2.0.0") public com.vaadin.flow.component.Component getSectionContent()
Deprecated.UseLinkkiSection.getContentWrapper()instead.- Overrides:
getSectionContentin classLinkkiSection- Returns:
- the content of this section
-
-