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, getUI, hasListener, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, addComponentAsFirst, addComponentAtIndex, remove, removeAllisEnabled, setEnabledgetElementgetHeight, getWidth, setHeight, setSizeFull, setSizeUndefined, setWidthaddClassName, 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 © 2018. All rights reserved.