Package com.vaadin.flow.component.html
Class NativeTable
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.HtmlComponent
com.vaadin.flow.component.HtmlContainer
com.vaadin.flow.component.html.NativeTable
- All Implemented Interfaces:
AttachNotifier,ClickNotifier<NativeTable>,DetachNotifier,HasComponents,HasComponentsOfType<Component>,HasElement,HasEnabled,HasSize,HasStyle,HasText,Serializable
@Deprecated(since="25.3",
forRemoval=true)
@Tag("table")
public class NativeTable
extends HtmlContainer
implements ClickNotifier<NativeTable>
Deprecated, for removal: This API element is subject to removal in a future version.
Component representing a
<table> element.- Since:
- 24.5
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.vaadin.flow.component.HasText
HasText.WhiteSpace -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Creates a new empty table.NativeTable(Component... components) Deprecated, for removal: This API element is subject to removal in a future version.Creates a new table with the given children components. -
Method Summary
Modifier and TypeMethodDescriptionaddBody()Deprecated, for removal: This API element is subject to removal in a future version.Adds a new body element to the table.Deprecated, for removal: This API element is subject to removal in a future version.Returns the list of<tbody>elements in this table.getBody()Deprecated, for removal: This API element is subject to removal in a future version.Returns the first body element in this table.getBody(int index) Deprecated, for removal: This API element is subject to removal in a future version.Returns the<tbody>element at a given position relative to other<tbody>elements.Deprecated, for removal: This API element is subject to removal in a future version.Return the table's caption component.Deprecated, for removal: This API element is subject to removal in a future version.Return the caption text for this table.getFoot()Deprecated, for removal: This API element is subject to removal in a future version.Returns the<tfoot>element of this table.getHead()Deprecated, for removal: This API element is subject to removal in a future version.Returns the head of this table.voidDeprecated, for removal: This API element is subject to removal in a future version.Removes the first body element in the list of bodies of this table.voidremoveBody(int index) Deprecated, for removal: This API element is subject to removal in a future version.Removes a body element at a given position.voidremoveBody(NativeTableBody body) Deprecated, for removal: This API element is subject to removal in a future version.Removes a body element from the table.voidDeprecated, for removal: This API element is subject to removal in a future version.Remove the caption from this table.voidDeprecated, for removal: This API element is subject to removal in a future version.Removes the foot from this table, if present.voidDeprecated, for removal: This API element is subject to removal in a future version.Remove the head from this table, if present.voidsetCaptionText(String text) Deprecated, for removal: This API element is subject to removal in a future version.Sets the caption text for this table.Methods inherited from class com.vaadin.flow.component.HtmlComponent
getTitle, setTitleMethods inherited from class com.vaadin.flow.component.Component
addListener, bindVisible, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTestId, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setTestId, setVisible, whenAttachedMethods 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.ClickNotifier
addClickListener, addClickShortcut, addDoubleClickListener, addSingleClickListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasComponents
addMethods inherited from interface com.vaadin.flow.component.HasComponentsOfType
add, add, addComponentAsFirst, addComponentAtIndex, bindChildren, getChildren, getComponentAt, getComponentCount, indexOf, remove, remove, removeAll, replaceMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasEnabled
bindEnabled, isEnabled, setEnabledMethods inherited from interface com.vaadin.flow.component.HasSize
bindHeight, bindWidth, 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, bindClassName, bindClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassNameMethods inherited from interface com.vaadin.flow.component.HasText
bindText, getText, getWhiteSpace, setText, setWhiteSpace
-
Constructor Details
-
NativeTable
public NativeTable()Deprecated, for removal: This API element is subject to removal in a future version.Creates a new empty table. -
NativeTable
Deprecated, for removal: This API element is subject to removal in a future version.Creates a new table with the given children components.- Parameters:
components- the children components.
-
-
Method Details
-
getCaption
Deprecated, for removal: This API element is subject to removal in a future version.Return the table's caption component. Creates a new instance if no caption is present.- Returns:
- the table's caption.
-
getCaptionText
Deprecated, for removal: This API element is subject to removal in a future version.Return the caption text for this table.- Returns:
- the table's caption text.
-
setCaptionText
Deprecated, for removal: This API element is subject to removal in a future version.Sets the caption text for this table.- Parameters:
text- the caption's text
-
removeCaption
public void removeCaption()Deprecated, for removal: This API element is subject to removal in a future version.Remove the caption from this table. -
getHead
Deprecated, for removal: This API element is subject to removal in a future version.Returns the head of this table.- Returns:
- This table's
<thead>element. Creates a new one if no element was present.
-
removeHead
public void removeHead()Deprecated, for removal: This API element is subject to removal in a future version.Remove the head from this table, if present. -
getFoot
Deprecated, for removal: This API element is subject to removal in a future version.Returns the<tfoot>element of this table.- Returns:
- The
<tfoot>element of this table. Creates a new one if none was present.
-
removeFoot
public void removeFoot()Deprecated, for removal: This API element is subject to removal in a future version.Removes the foot from this table, if present. -
getBodies
Deprecated, for removal: This API element is subject to removal in a future version.Returns the list of<tbody>elements in this table.- Returns:
- the list of table body elements of this table.
-
getBody
Deprecated, for removal: This API element is subject to removal in a future version.Returns the first body element in this table. Creates one if there's none.- Returns:
- the first
<tbody>element in the table. Creates one if there's none.
-
getBody
Deprecated, for removal: This API element is subject to removal in a future version.Returns the<tbody>element at a given position relative to other<tbody>elements.- Parameters:
index- The position of the body element relative to other body elements.- Returns:
- The table body component at the given position. If the position is 0 and there are no body elements present, a new one is created and returned.
-
addBody
Deprecated, for removal: This API element is subject to removal in a future version.Adds a new body element to the table.- Returns:
- The new body.
-
removeBody
Deprecated, for removal: This API element is subject to removal in a future version.Removes a body element from the table.- Parameters:
body- The body component to remove.
-
removeBody
public void removeBody(int index) Deprecated, for removal: This API element is subject to removal in a future version.Removes a body element at a given position.- Parameters:
index- The position of the body element to remove.
-
removeBody
public void removeBody()Deprecated, for removal: This API element is subject to removal in a future version.Removes the first body element in the list of bodies of this table.
-
Tableinstead. It does not extendHtmlContainer, so it has no genericadd(Component)and cannot be given children the HTML specification does not allow inside a<table>; it keeps the caption, column groups and sections in the order the specification requires whatever order they are added in; and it carries a good deal more API, including<colgroup>and<col>support, row and cell factories that setscope,colspanandrowspan, and binding a section's rows to a signal.