@StudioComponent(caption="PopupView", category="Components", xmlElement="popupView", icon="io/jmix/ui/icon/component/popupView.svg", canvasBehaviour=BUTTON, canvasText="New Minimized Value", canvasTextProperty="minimizedValue", documentationURL="https://docs.jmix.io/jmix/%VERSION%/backoffice-ui/vcl/components/popup-view.html") public interface PopupView extends Component.HasCaption, Component.BelongToFrame, Component.HasIcon, HasContextHelp, HasHtmlCaption, HasHtmlDescription, HasHtmlSanitizer
Modifier and Type | Interface and Description |
---|---|
static class |
PopupView.PopupPosition
Popup position.
|
static class |
PopupView.PopupVisibilityEvent
Event sent when the visibility of the popup changes.
|
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.Wrapper
HasContextHelp.ContextHelpIconClickEvent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE
Modifier and Type | Method and Description |
---|---|
io.jmix.core.common.event.Subscription |
addPopupVisibilityListener(java.util.function.Consumer<PopupView.PopupVisibilityEvent> listener) |
java.lang.String |
getMinimizedValue() |
Component |
getPopupContent() |
PopupView.PopupPosition |
getPopupPosition()
|
int |
getPopupPositionLeft() |
int |
getPopupPositionTop() |
boolean |
isCaptionAsHtml() |
boolean |
isHideOnMouseOut() |
boolean |
isPopupVisible() |
void |
setCaptionAsHtml(boolean captionAsHtml)
Sets caption rendering as HTML.
|
void |
setHideOnMouseOut(boolean hideOnMouseOut)
Sets possibility to close popup window on cursor out.
|
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 popupVisible)
Sets visibility for the popup window.
|
getFrame, setFrame
addStyleName, getAlignment, getHeight, getHeightSizeUnit, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, isEnabled, isEnabledRecursive, isResponsive, isVisible, isVisibleRecursive, removeStyleName, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedComposition
getIcon, setIcon, setIconFromSet
getContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled
getCaption, setCaption
getDescription, setDescription
isDescriptionAsHtml, setDescriptionAsHtml
isHtmlSanitizerEnabled, setHtmlSanitizerEnabled
static final java.lang.String NAME
void setPopupVisible(boolean popupVisible)
popupVisible
- popup visibility.boolean isPopupVisible()
@StudioProperty(type=LOCALIZED_STRING) void setMinimizedValue(java.lang.String minimizedValue)
minimizedValue
- label text.java.lang.String getMinimizedValue()
void setPopupContent(@Nullable Component popupContent)
popupContent
- popup component.@Nullable Component getPopupContent()
@StudioProperty(defaultValue="true", initialValue="false") void setHideOnMouseOut(boolean hideOnMouseOut)
hideOnMouseOut
- popup hide option.boolean isHideOnMouseOut()
void setCaptionAsHtml(boolean captionAsHtml)
setCaptionAsHtml
in interface HasHtmlCaption
captionAsHtml
- true if we want to show caption as HTML.Component.HasCaption.setCaption(String)
boolean isCaptionAsHtml()
isCaptionAsHtml
in interface HasHtmlCaption
void setPopupPosition(int top, int left)
top
- the top popup position in pixelsleft
- the left popup position in pixels@StudioProperty(name="popupTop", defaultValue="-1") void setPopupPositionTop(int top)
top
- the top popup position in pixelsint getPopupPositionTop()
setPopupPosition(int, int)
@StudioProperty(name="popupLeft", defaultValue="-1") void setPopupPositionLeft(int left)
left
- the left popup position in pixelsint getPopupPositionLeft()
setPopupPosition(int, int)
@StudioProperty(type=ENUMERATION, defaultValue="DEFAULT", options={"DEFAULT","TOP_LEFT","TOP_CENTER","TOP_RIGHT","MIDDLE_LEFT","MIDDLE_CENTER","MIDDLE_RIGHT","BOTTOM_LEFT","BOTTOM_CENTER","BOTTOM_RIGHT"}) void setPopupPosition(@Nullable PopupView.PopupPosition position)
position
- the popup position@Nullable PopupView.PopupPosition getPopupPosition()
io.jmix.core.common.event.Subscription addPopupVisibilityListener(java.util.function.Consumer<PopupView.PopupVisibilityEvent> listener)