public class HtmlContainer extends HtmlComponent implements HasComponents, HasText
Component that represents a single built-in HTML
element that can contain child components or text.| Modifier | Constructor and Description |
|---|---|
protected |
HtmlContainer()
Creates an empty component with the element determined by the
Tag
annotation of a sub class. |
protected |
HtmlContainer(Component... components)
Creates a component with the given child components.
|
|
HtmlContainer(String tagName)
Creates a new empty component with a new element with the given tag name.
|
|
HtmlContainer(String tagName,
Component... components)
Creates a new component with the given contents and a new element with
the given tag name.
|
getTitle, setTitleaddListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, add, addComponentAsFirst, addComponentAtIndex, remove, removeAllisEnabled, setEnabledgetElementgetCssSize, getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFulladdClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassNameaddAttachListeneraddDetachListenerprotected HtmlContainer()
Tag
annotation of a sub class.protected HtmlContainer(Component... components)
Tag annotation of a sub class.components - the child componentspublic HtmlContainer(String tagName)
tagName - the tag name of the element to use for this component, not
nullCopyright © 2025. All rights reserved.