com.vaadin.flow.component.dialog.
Class GeneratedVaadinDialog<R extends GeneratedVaadinDialog<R>>
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- com.vaadin.flow.component.dialog.GeneratedVaadinDialog<R>
-
All Implemented Interfaces:
Direct Known Subclasses:
@Generated(value={"Generator: com.vaadin.generator.ComponentGenerator#1.1-SNAPSHOT","WebComponent: Vaadin.DialogElement#null","Flow#1.1-SNAPSHOT"}) @Tag(value="vaadin-dialog") @HtmlImport(value="frontend://bower_components/vaadin-dialog/src/vaadin-dialog.html") public abstract class GeneratedVaadinDialog<R extends GeneratedVaadinDialog<R>> extends Component
Description copied from corresponding location in WebComponent:
<vaadin-dialog>
is a Web Component for customized modal dialogs.<vaadin-dialog opened> <template> Sample dialog </template> </vaadin-dialog>
Styling
See
<vaadin-overlay>
documentation for<vaadin-dialog-overlay>
parts.See ThemableMixin ? how to apply styles for shadow parts
See Also:
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
GeneratedVaadinDialog.OpenedChangeEvent<R extends GeneratedVaadinDialog<R>>
-
Constructor Summary
Constructors Constructor and Description GeneratedVaadinDialog()
-
Method Summary
All Methods Modifier and Type Method and Description protected Registration
addOpenedChangeListener(ComponentEventListener<GeneratedVaadinDialog.OpenedChangeEvent<R>> listener)
Adds a listener for
opened-changed
events fired by the webcomponent.protected String
getAriaLabelString()
Description copied from corresponding location in WebComponent:
protected boolean
isOpenedBoolean()
Description copied from corresponding location in WebComponent:
protected void
setAriaLabel(String ariaLabel)
Description copied from corresponding location in WebComponent:
protected void
setOpened(boolean opened)
Description copied from corresponding location in WebComponent:
-
Methods inherited from class com.vaadin.flow.component.Component
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getUI, hasListener, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisible
-
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.AttachNotifier
addAttachListener
-
Methods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListener
-
-
-
-
Method Detail
-
isOpenedBoolean
@Synchronize(property="opened", value="opened-changed") protected boolean isOpenedBoolean()
Description copied from corresponding location in WebComponent:
True if the overlay is currently displayed.
This property is synchronized automatically from client side when a 'opened-changed' event happens.
Returns:
the
opened
property from the webcomponent
-
setOpened
protected void setOpened(boolean opened)
Description copied from corresponding location in WebComponent:
True if the overlay is currently displayed.
Parameters:
opened
- the boolean value to set
-
getAriaLabelString
protected String getAriaLabelString()
Description copied from corresponding location in WebComponent:
Set the
aria-label
attribute for assistive technologies like screen readers. Anundefined
value for this property (the default) means that thearia-label
attribute is not present at all.This property is not synchronized automatically from the client side, so the returned value may not be the same as in client side.
Returns:
the
ariaLabel
property from the webcomponent
-
setAriaLabel
protected void setAriaLabel(String ariaLabel)
Description copied from corresponding location in WebComponent:
Set the
aria-label
attribute for assistive technologies like screen readers. Anundefined
value for this property (the default) means that thearia-label
attribute is not present at all.Parameters:
ariaLabel
- the String value to set
-
addOpenedChangeListener
protected Registration addOpenedChangeListener(ComponentEventListener<GeneratedVaadinDialog.OpenedChangeEvent<R>> listener)
Adds a listener for
opened-changed
events fired by the webcomponent.Parameters:
listener
- the listenerReturns:
a
Registration
for removing the event listener
-
-