public class KPopupView
| Constructor and Description |
|---|
KPopupView() |
| Modifier and Type | Method and Description |
|---|---|
void |
addComponent(com.vaadin.ui.Component component) |
com.vaadin.shared.Registration |
addPopupVisibilityListener(com.vaadin.ui.PopupView.PopupVisibilityListener listener)
Add a listener that is called whenever the visibility of the popup is
changed.
|
java.lang.String |
getMinimizedValueAsHTML() |
boolean |
isHideOnMouseOut()
Should the popup automatically hide when the user takes the mouse cursor
out of the popup area? If this is false, the user must click outside the
popup to close it. The default is true.
|
boolean |
isPopupVisible()
Gets/sets the visibility of the popup. Does not hide the minimal
representation.
|
void |
lazy(kotlin.jvm.functions.Function1<? super com.vaadin.ui.HasComponents,kotlin.Unit> block)
Registers a block which produces popup contents lazily, when the popup is shown for the first time. The block
is called at most once.
|
void |
removeComponent(com.vaadin.ui.Component component) |
void |
setHideOnMouseOut(boolean value)
Should the popup automatically hide when the user takes the mouse cursor
out of the popup area? If this is false, the user must click outside the
popup to close it. The default is true.
|
void |
setMinimizedValueAsHTML(java.lang.String value) |
void |
setPopupVisible(boolean value)
Gets/sets the visibility of the popup. Does not hide the minimal
representation.
|
public java.lang.String getMinimizedValueAsHTML()
public void setMinimizedValueAsHTML(java.lang.String value)
public void addComponent(com.vaadin.ui.Component component)
public void removeComponent(com.vaadin.ui.Component component)
public void lazy(kotlin.jvm.functions.Function1<? super com.vaadin.ui.HasComponents,kotlin.Unit> block)
Registers a block which produces popup contents lazily, when the popup is shown for the first time. The block is called at most once.
Example of use:
popupView {
lazy {
verticalLayout { ... }
}
}
public boolean isPopupVisible()
Gets/sets the visibility of the popup. Does not hide the minimal representation.
public void setPopupVisible(boolean value)
Gets/sets the visibility of the popup. Does not hide the minimal representation.
public boolean isHideOnMouseOut()
Should the popup automatically hide when the user takes the mouse cursor out of the popup area? If this is false, the user must click outside the popup to close it. The default is true.
public void setHideOnMouseOut(boolean value)
Should the popup automatically hide when the user takes the mouse cursor out of the popup area? If this is false, the user must click outside the popup to close it. The default is true.
public com.vaadin.shared.Registration addPopupVisibilityListener(com.vaadin.ui.PopupView.PopupVisibilityListener listener)
Add a listener that is called whenever the visibility of the popup is changed.
listener - the listener to add, not null