Package com.storedobject.vaadin
Class Popup
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<com.vaadin.flow.component.contextmenu.ContextMenu>
com.storedobject.vaadin.Popup
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasStyle,Serializable
public class Popup
extends com.vaadin.flow.component.Composite<com.vaadin.flow.component.contextmenu.ContextMenu>
Popup emulated using Vaadin's
ContextMenu.- Author:
- Syam
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the popup.com.vaadin.flow.component.ComponentGet the target component.protected final com.vaadin.flow.component.contextmenu.ContextMenubooleanisOpened()Check if the popup is currently opened or not.voidopen()Open the popup.voidsetTarget(com.vaadin.flow.component.Component target) Set the target component for this popup.Methods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElementMethods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Constructor Details
-
Popup
public Popup(com.vaadin.flow.component.Component container) Constructor.- Parameters:
container- Container component that gets popped up
-
-
Method Details
-
initContent
protected final com.vaadin.flow.component.contextmenu.ContextMenu initContent()- Overrides:
initContentin classcom.vaadin.flow.component.Composite<com.vaadin.flow.component.contextmenu.ContextMenu>
-
setTarget
public void setTarget(com.vaadin.flow.component.Component target) Set the target component for this popup.- Parameters:
target- Target component
-
getTarget
public com.vaadin.flow.component.Component getTarget()Get the target component.- Returns:
- Current target.
-
close
public void close()Close the popup. -
open
public void open()Open the popup. -
isOpened
public boolean isOpened()Check if the popup is currently opened or not.- Returns:
- True or false.
-