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, setTitle
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getUI, hasListener, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, addComponentAsFirst, addComponentAtIndex, remove, removeAll
isEnabled, setEnabled
getElement
getHeight, getWidth, setHeight, setSizeFull, setSizeUndefined, setWidth
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
addAttachListener
addDetachListener
protected 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
null
Copyright © 2018. All rights reserved.