Package com.vaadin.flow.component.dialog
Class Dialog.DialogFooter
java.lang.Object
com.vaadin.flow.component.dialog.Dialog.DialogFooter
- All Implemented Interfaces:
HasComponents
,HasElement
,HasEnabled
,Serializable
- Enclosing class:
- Dialog
Class for adding and removing components to the footer part of a dialog.
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the given components as children of this component.void
Add the given text as a child of this component.void
add
(Collection<Component> components) Adds the given components as children of this component.void
addComponentAsFirst
(Component component) Adds the given component as the first child of this component.void
addComponentAtIndex
(int index, Component component) Adds the given component as child of this component at the specific index.Gets the element associated with this instance.void
Removes the given child components from this component.void
remove
(Collection<Component> components) Removes the given child components from this component.void
Removes 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 theElement
API.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabled
-
Field Details
-
root
-
-
Method Details
-
add
Description copied from interface:HasComponents
Adds 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:
add
in interfaceHasComponents
- Parameters:
components
- the components to add
-
add
Description copied from interface:HasComponents
Adds 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:
add
in interfaceHasComponents
- Parameters:
components
- the components to add
-
add
Description copied from interface:HasComponents
Add the given text as a child of this component.- Specified by:
add
in interfaceHasComponents
- Parameters:
text
- the text to add, notnull
-
remove
Description copied from interface:HasComponents
Removes the given child components from this component.- Specified by:
remove
in interfaceHasComponents
- Parameters:
components
- the components to remove
-
remove
Description copied from interface:HasComponents
Removes the given child components from this component.- Specified by:
remove
in interfaceHasComponents
- Parameters:
components
- the components to remove
-
removeAll
public void removeAll()Description copied from interface:HasComponents
Removes 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 theElement
API. it also removes the children that were added only at the client-side.- Specified by:
removeAll
in interfaceHasComponents
-
addComponentAtIndex
Description copied from interface:HasComponents
Adds 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:
addComponentAtIndex
in 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:HasComponents
Adds 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:
addComponentAsFirst
in interfaceHasComponents
- Parameters:
component
- the component to add, value should not be null
-
getElement
Description copied from interface:HasElement
Gets the element associated with this instance.- Specified by:
getElement
in interfaceHasElement
- Returns:
- the element associated with this instance
-