Klasse ToolbarDialog
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.dialog.Dialog
com.vaadin.componentfactory.toolbar.ToolbarDialog
- Alle implementierten Schnittstellen:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasComponents,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasEnabled,com.vaadin.flow.component.HasSize,com.vaadin.flow.component.HasStyle,com.vaadin.flow.component.HasTheme,com.vaadin.flow.component.shared.HasThemeVariant<com.vaadin.flow.component.dialog.DialogVariant>,Serializable
public class ToolbarDialog
extends com.vaadin.flow.component.dialog.Dialog
A dialog, that can be opened/closed using a toolbar switch.
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen com.vaadin.flow.component.dialog.Dialog
com.vaadin.flow.component.dialog.Dialog.DialogCloseActionEvent, com.vaadin.flow.component.dialog.Dialog.DialogDraggedEvent, com.vaadin.flow.component.dialog.Dialog.DialogFooter, com.vaadin.flow.component.dialog.Dialog.DialogHeader, com.vaadin.flow.component.dialog.Dialog.DialogResizeEvent, com.vaadin.flow.component.dialog.Dialog.OpenedChangeEvent -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungToolbarDialog(ToolbarSwitch toolbarSwitch) Creates a new instance, that opens/closes based on the given switch state.ToolbarDialog(ToolbarSwitch toolbarSwitch, boolean openAtSwitch) Creates a new instance, that opens/closes based on the given switch state. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic ToolbarDialoghorizontal(ToolbarSwitch toolbarSwitch, com.vaadin.flow.component.Component... components) Creates a new instance listing the given components in a horizontal order (center aligned).static ToolbarDialoghorizontal(ToolbarSwitch toolbarSwitch, com.vaadin.flow.component.orderedlayout.FlexComponent.Alignment alignment, com.vaadin.flow.component.Component... components) Creates a new instance listing the given components in a horizontal order with the given alignment.Will set this dialog to open at the related toolbar switch.voidsetFocusOnOpenTarget(com.vaadin.flow.component.Component focusOnOpenTarget) Allows to define a component, that should be focused initially, when opening this instance.static ToolbarDialogvertical(ToolbarSwitch toolbarSwitch, com.vaadin.flow.component.Component... components) Creates a new instance listing the given components in a vertical order.Von Klasse geerbte Methoden com.vaadin.flow.component.dialog.Dialog
add, addAttachListener, addComponentAtIndex, addDetachListener, addDialogCloseActionListener, addDraggedListener, addOpenedChangeListener, addResizeListener, close, getAriaLabel, getClassNames, getFooter, getHeader, getHeaderTitle, getHeight, getLeft, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOverlayRole, getStyle, getTop, getWidth, isCloseOnEsc, isCloseOnOutsideClick, isDraggable, isModal, isOpened, isResizable, onAttach, open, setAriaLabel, setClassName, setCloseOnEsc, setCloseOnOutsideClick, setDraggable, setHeaderTitle, setHeight, setLeft, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setModal, setOpened, setOverlayRole, setResizable, setTop, setVisible, setWidthVon Klasse geerbte Methoden com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setIdVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden com.vaadin.flow.component.HasComponents
add, add, addComponentAsFirst, remove, remove, removeAllVon Schnittstelle geerbte Methoden com.vaadin.flow.component.HasElement
getElementVon Schnittstelle geerbte Methoden com.vaadin.flow.component.HasEnabled
isEnabled, setEnabledVon Schnittstelle geerbte Methoden com.vaadin.flow.component.HasSize
getHeightUnit, getWidthUnit, setHeight, setHeightFull, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidthFullVon Schnittstelle geerbte Methoden com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, hasClassName, removeClassName, removeClassNames, setClassNameVon Schnittstelle geerbte Methoden com.vaadin.flow.component.HasTheme
addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeNameVon Schnittstelle geerbte Methoden com.vaadin.flow.component.shared.HasThemeVariant
addThemeVariants, removeThemeVariants
-
Konstruktordetails
-
ToolbarDialog
Creates a new instance, that opens/closes based on the given switch state.- Parameter:
toolbarSwitch- switch
-
ToolbarDialog
Creates a new instance, that opens/closes based on the given switch state. The boolean parameter defines, if the dialog shall be opened aligned to the switch or not.- Parameter:
toolbarSwitch- switchopenAtSwitch- should be aligned to the switch
-
-
Methodendetails
-
vertical
public static ToolbarDialog vertical(ToolbarSwitch toolbarSwitch, com.vaadin.flow.component.Component... components) Creates a new instance listing the given components in a vertical order.- Parameter:
toolbarSwitch- switch to open the popovercomponents- content- Gibt zurück:
- new instance
-
horizontal
public static ToolbarDialog horizontal(ToolbarSwitch toolbarSwitch, com.vaadin.flow.component.Component... components) Creates a new instance listing the given components in a horizontal order (center aligned).- Parameter:
toolbarSwitch- switch to open the dialogcomponents- content- Gibt zurück:
- new instance
-
horizontal
public static ToolbarDialog horizontal(ToolbarSwitch toolbarSwitch, com.vaadin.flow.component.orderedlayout.FlexComponent.Alignment alignment, com.vaadin.flow.component.Component... components) Creates a new instance listing the given components in a horizontal order with the given alignment.- Parameter:
toolbarSwitch- switch to open the dialogcomponents- content- Gibt zurück:
- new instance
-
setFocusOnOpenTarget
public void setFocusOnOpenTarget(com.vaadin.flow.component.Component focusOnOpenTarget) Allows to define a component, that should be focused initially, when opening this instance.- Parameter:
focusOnOpenTarget- initial focus target
-
getToolbarSwitch
-
openAtSwitch
Will set this dialog to open at the related toolbar switch.- Gibt zurück:
- open at toolbar swith
-