Package com.vaadin.flow.component.dialog
Class Dialog.DialogHeader
java.lang.Object
com.vaadin.flow.component.dialog.Dialog.DialogHeader
- All Implemented Interfaces:
HasComponents,HasElement,HasEnabled,Serializable
- Enclosing class:
Dialog
Class for adding and removing components to the header part of a dialog.
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the given components as children of this component.voidAdd the given text as a child of this component.voidadd(Collection<Component> components) Adds the given components as children of this component.voidaddComponentAsFirst(Component component) Adds the given component as the first child of this component.voidaddComponentAtIndex(int index, Component component) Adds the given component as child of this component at the specific index.Gets the element associated with this instance.voidRemoves the given child components from this component.voidremove(Collection<Component> components) Removes the given child components from this component.voidRemoves all contents from this component, this includes child components, text content as well as child elements that have been added directly to this component using theElementAPI.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabled
-
Field Details
-
root
-
-
Method Details
-
add
Description copied from interface:HasComponentsAdds the given components as children of this component.In case any of the specified components has already been added to another parent, it will be removed from there and added to this one.
- Specified by:
addin interfaceHasComponents- Parameters:
components- the components to add
-
add
Description copied from interface:HasComponentsAdds the given components as children of this component.In case any of the specified components has already been added to another parent, it will be removed from there and added to this one.
- Specified by:
addin interfaceHasComponents- Parameters:
components- the components to add
-
add
Description copied from interface:HasComponentsAdd the given text as a child of this component.- Specified by:
addin interfaceHasComponents- Parameters:
text- the text to add, notnull
-
remove
Description copied from interface:HasComponentsRemoves the given child components from this component.- Specified by:
removein interfaceHasComponents- Parameters:
components- the components to remove
-
remove
Description copied from interface:HasComponentsRemoves the given child components from this component.- Specified by:
removein interfaceHasComponents- Parameters:
components- the components to remove
-
removeAll
public void removeAll()Description copied from interface:HasComponentsRemoves all contents from this component, this includes child components, text content as well as child elements that have been added directly to this component using theElementAPI. it also removes the children that were added only at the client-side.- Specified by:
removeAllin interfaceHasComponents
-
addComponentAtIndex
Description copied from interface:HasComponentsAdds the given component as child of this component at the specific index.In case the specified component has already been added to another parent, it will be removed from there and added to this one.
- Specified by:
addComponentAtIndexin interfaceHasComponents- Parameters:
index- the index, where the component will be added. The index must be non-negative and may not exceed the children countcomponent- the component to add, value should not be null
-
addComponentAsFirst
Description copied from interface:HasComponentsAdds the given component as the first child of this component.In case the specified component has already been added to another parent, it will be removed from there and added to this one.
- Specified by:
addComponentAsFirstin interfaceHasComponents- Parameters:
component- the component to add, value should not be null
-
getElement
Description copied from interface:HasElementGets the element associated with this instance.- Specified by:
getElementin interfaceHasElement- Returns:
- the element associated with this instance
-