Package com.storedobject.ui
Class FormSection.End
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.HtmlComponent
com.vaadin.flow.component.html.Hr
com.storedobject.ui.Card.Line
com.storedobject.ui.FormSection.End
- 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
- Enclosing class:
FormSection
The
End class is a specialized subclass of Card.Line, intended to represent
a terminating component or marker within a layout structure. It allows for customization
of its column span, providing a simple and flexible way to define its placement within
a grid or other layout systems.
This class provides constructors for initializing the object with a default or specified
column span, as well as a method for dynamically updating the column span.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetColumnSpan(int span) Sets the column span for the current component.Methods inherited from class com.vaadin.flow.component.HtmlComponent
getTitle, setTitleMethods 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
-
End
public End()Constructs a newEndobject with a default column span of0. This constructor is intended to provide a convenient way to initialize anEndinstance without explicitly specifying the column span, which can later be adjusted using the appropriate method. -
End
public End(int span) Constructs anEndobject with the specified column span. This constructor initializes theEndcomponent and defines its column span within a layout structure.- Parameters:
span- the desired column span for thisEndcomponent. If the value specified is less than 1, a default value of 2 will be applied.
-
-
Method Details
-
setColumnSpan
public void setColumnSpan(int span) Sets the column span for the current component. The column span defines the number of grid columns this component will occupy in the layout.- Parameters:
span- the number of grid columns to allocate to this component. If the provided value is less than 1, it defaults to 2.
-