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

    Konstruktoren
    Konstruktor
    Beschreibung
    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 Typ
    Methode
    Beschreibung
     
    horizontal(ToolbarSwitch toolbarSwitch, com.vaadin.flow.component.Component... components)
    Creates a new instance listing the given components in a horizontal order (center aligned).
    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.
    Will set this dialog to open at the related toolbar switch.
    void
    setFocusOnOpenTarget(com.vaadin.flow.component.Component focusOnOpenTarget)
    Allows to define a component, that should be focused initially, when opening this instance.
    vertical(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, setWidth

    Von 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, setId

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Von Schnittstelle geerbte Methoden com.vaadin.flow.component.HasComponents

    add, add, addComponentAsFirst, remove, remove, removeAll

    Von Schnittstelle geerbte Methoden com.vaadin.flow.component.HasElement

    getElement

    Von Schnittstelle geerbte Methoden com.vaadin.flow.component.HasEnabled

    isEnabled, setEnabled

    Von Schnittstelle geerbte Methoden com.vaadin.flow.component.HasSize

    getHeightUnit, getWidthUnit, setHeight, setHeightFull, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidthFull

    Von Schnittstelle geerbte Methoden com.vaadin.flow.component.HasStyle

    addClassName, addClassNames, getClassName, hasClassName, removeClassName, removeClassNames, setClassName

    Von Schnittstelle geerbte Methoden com.vaadin.flow.component.HasTheme

    addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeName

    Von Schnittstelle geerbte Methoden com.vaadin.flow.component.shared.HasThemeVariant

    addThemeVariants, removeThemeVariants
  • Konstruktordetails

    • ToolbarDialog

      public ToolbarDialog(ToolbarSwitch toolbarSwitch)
      Creates a new instance, that opens/closes based on the given switch state.
      Parameter:
      toolbarSwitch - switch
    • ToolbarDialog

      public ToolbarDialog(ToolbarSwitch toolbarSwitch, boolean openAtSwitch)
      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 - switch
      openAtSwitch - 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 popover
      components - 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 dialog
      components - 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 dialog
      components - 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

      public ToolbarSwitch getToolbarSwitch()
    • openAtSwitch

      public ToolbarDialog openAtSwitch()
      Will set this dialog to open at the related toolbar switch.
      Gibt zurück:
      open at toolbar swith