public class PopupViewImpl extends AbstractComponent<JmixPopupView> implements PopupView
| Modifier and Type | Class and Description |
|---|---|
protected class |
PopupViewImpl.EmptyContent |
protected class |
PopupViewImpl.PopupContent |
PopupView.PopupPosition, PopupView.PopupVisibilityEventComponent.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.WrapperHasContextHelp.ContextHelpIconClickEvent| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
minimizedValue |
protected Component |
popupContent |
protected com.vaadin.shared.Registration |
popupVisibilityListenerRegistration |
alignment, applicationContext, component, contextHelpIconClickHandler, contextHelpIconClickListener, descriptionAsHtml, element, frame, htmlSanitizerEnabled, icon, ICON_STYLE, id, parentAUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE| Constructor and Description |
|---|
PopupViewImpl() |
| Modifier and Type | Method and Description |
|---|---|
io.jmix.core.common.event.Subscription |
addPopupVisibilityListener(java.util.function.Consumer<PopupView.PopupVisibilityEvent> listener) |
protected void |
attachToFrame(Component childComponent) |
protected JmixPopupView |
createComponent() |
protected void |
detachFromFrame(Component childComponent) |
java.lang.String |
getMinimizedValue() |
Component |
getPopupContent() |
PopupView.PopupPosition |
getPopupPosition()
|
int |
getPopupPositionLeft() |
int |
getPopupPositionTop() |
protected void |
internalRemovePopupVisibilityListener(java.util.function.Consumer<PopupView.PopupVisibilityEvent> listener) |
boolean |
isCaptionAsHtml() |
boolean |
isHideOnMouseOut() |
boolean |
isPopupVisible() |
void |
setCaption(java.lang.String caption)
Sets the component's caption.
|
void |
setCaptionAsHtml(boolean value)
Sets whether the caption is rendered as HTML.
|
void |
setFrame(Frame frame) |
void |
setHideOnMouseOut(boolean value)
Sets possibility to close popup window on cursor out.
|
void |
setIcon(java.lang.String icon)
Set an icon by its source: "font-icon:ADD", "icons/myicon.png", "theme://createIcon", etc.
|
protected void |
setIconStyle() |
void |
setMinimizedValue(java.lang.String minimizedValue)
Sets value for the label of component.
|
void |
setPopupContent(Component popupContent)
Sets inner content for the popup window.
|
void |
setPopupPosition(int top,
int left)
Sets the popup position.
|
void |
setPopupPosition(PopupView.PopupPosition position)
Sets the popup position.
|
void |
setPopupPositionLeft(int left)
Sets the left popup position.
|
void |
setPopupPositionTop(int top)
Sets the top popup position.
|
void |
setPopupVisible(boolean value)
Sets visibility for the popup window.
|
void |
setStyleName(java.lang.String name)
Sets one or more style names of the component, replacing any
previous styles.
|
addAttachListener, addDetachListener, addStyleName, assignDebugId, attached, detached, getAlignment, getCaption, getComponent, getComposition, getContextHelpIconClickHandler, getContextHelpText, getDebugId, getDescription, getEventHub, getFrame, getHeight, getHeightSizeUnit, getHtmlSanitizer, getIcon, getIconName, getIconResource, getId, getParent, getStyleName, getUiComponentProperties, getUiProperties, getWidth, getWidthSizeUnit, getXmlDescriptor, hasSubscriptions, hasValidationError, isAttached, isContextHelpTextHtmlEnabled, isDescriptionAsHtml, isEnabled, isEnabledRecursive, isHtmlSanitizerEnabled, isResponsive, isVisible, isVisibleRecursive, onContextHelpIconClick, publish, removeStyleName, sanitize, setAlignment, setApplicationContext, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled, setDebugId, setDescription, setDescriptionAsHtml, setEnabled, setHeight, setHtmlSanitizerEnabled, setIconFromSet, setId, setParent, setResponsive, setValidationError, setVisible, setWidth, setXmlDescriptor, unsubscribe, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedCompositionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFrameaddStyleName, getAlignment, getHeight, getHeightSizeUnit, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, isEnabled, isEnabledRecursive, isResponsive, isVisible, isVisibleRecursive, removeStyleName, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedCompositiongetIcon, setIconFromSetgetContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabledgetCaptiongetDescription, setDescriptionisDescriptionAsHtml, setDescriptionAsHtmlisHtmlSanitizerEnabled, setHtmlSanitizerEnabledprotected Component popupContent
protected java.lang.String minimizedValue
protected com.vaadin.shared.Registration popupVisibilityListenerRegistration
protected JmixPopupView createComponent()
public io.jmix.core.common.event.Subscription addPopupVisibilityListener(java.util.function.Consumer<PopupView.PopupVisibilityEvent> listener)
addPopupVisibilityListener in interface PopupViewprotected void internalRemovePopupVisibilityListener(java.util.function.Consumer<PopupView.PopupVisibilityEvent> listener)
public void setPopupContent(@Nullable
Component popupContent)
PopupViewsetPopupContent in interface PopupViewpopupContent - popup component.protected void attachToFrame(Component childComponent)
protected void detachFromFrame(Component childComponent)
public void setFrame(@Nullable
Frame frame)
setFrame in interface Component.BelongToFramesetFrame in class AbstractComponent<JmixPopupView>@Nullable public Component getPopupContent()
getPopupContent in interface PopupViewpublic void setPopupVisible(boolean value)
PopupViewsetPopupVisible in interface PopupViewvalue - popup visibility.public void setHideOnMouseOut(boolean value)
PopupViewsetHideOnMouseOut in interface PopupViewvalue - popup hide option.public boolean isHideOnMouseOut()
isHideOnMouseOut in interface PopupViewpublic boolean isPopupVisible()
isPopupVisible in interface PopupViewpublic void setMinimizedValue(java.lang.String minimizedValue)
PopupViewsetMinimizedValue in interface PopupViewminimizedValue - label text.public java.lang.String getMinimizedValue()
getMinimizedValue in interface PopupViewpublic void setCaptionAsHtml(boolean value)
HasHtmlCaptionsetCaptionAsHtml in interface HasHtmlCaptionsetCaptionAsHtml in interface PopupViewsetCaptionAsHtml in class AbstractComponent<JmixPopupView>value - true if the caption is rendered as HTML,
false if rendered as plain textComponent.HasCaption.setCaption(String)public boolean isCaptionAsHtml()
isCaptionAsHtml in interface HasHtmlCaptionisCaptionAsHtml in interface PopupViewisCaptionAsHtml in class AbstractComponent<JmixPopupView>true if the caption is rendered as HTML,
false if rendered as plain textpublic void setPopupPosition(int top,
int left)
PopupViewsetPopupPosition in interface PopupViewtop - the top popup position in pixelsleft - the left popup position in pixelspublic void setPopupPositionTop(int top)
PopupViewsetPopupPositionTop in interface PopupViewtop - the top popup position in pixelspublic int getPopupPositionTop()
getPopupPositionTop in interface PopupViewPopupView.setPopupPosition(int, int)public void setPopupPositionLeft(int left)
PopupViewsetPopupPositionLeft in interface PopupViewleft - the left popup position in pixelspublic int getPopupPositionLeft()
getPopupPositionLeft in interface PopupViewPopupView.setPopupPosition(int, int)public void setPopupPosition(@Nullable
PopupView.PopupPosition position)
PopupViewsetPopupPosition in interface PopupViewposition - the popup position@Nullable public PopupView.PopupPosition getPopupPosition()
PopupViewgetPopupPosition in interface PopupViewpublic void setCaption(@Nullable
java.lang.String caption)
Component.HasCaptionsetCaption in interface Component.HasCaptionsetCaption in class AbstractComponent<JmixPopupView>caption - the new component's captionpublic void setIcon(@Nullable
java.lang.String icon)
Component.HasIconsetIcon in interface Component.HasIconsetIcon in class AbstractComponent<JmixPopupView>public void setStyleName(@Nullable
java.lang.String name)
ComponentsetStyleName in interface ComponentsetStyleName in class AbstractComponent<JmixPopupView>name - one or more style names separated by space.protected void setIconStyle()