Package io.jmix.ui.component
Interface PopupView
- All Superinterfaces:
Component,Component.BelongToFrame,Component.HasCaption,Component.HasDescription,Component.HasIcon,HasContextHelp,HasHtmlCaption,HasHtmlDescription,HasHtmlSanitizer
- All Known Implementing Classes:
PopupViewImpl
@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%/ui/vcl/components/popup-view.html")
public interface PopupView
extends Component.HasCaption, Component.BelongToFrame, Component.HasIcon, HasContextHelp, HasHtmlCaption, HasHtmlDescription, HasHtmlSanitizer
A component for displaying a two different views to data. The minimized view is normally used to render the component,
and when it is clicked the full view is displayed on a popup.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumPopup position.static classEvent sent when the visibility of the popup changes.Nested classes/interfaces inherited from interface io.jmix.ui.component.Component
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.WrapperNested classes/interfaces inherited from interface io.jmix.ui.component.HasContextHelp
HasContextHelp.ContextHelpIconClickEvent -
Field Summary
FieldsFields inherited from interface io.jmix.ui.component.Component
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE -
Method Summary
Modifier and TypeMethodDescriptionintintbooleanbooleanbooleanvoidsetCaptionAsHtml(boolean captionAsHtml) Sets caption rendering as HTML.voidsetHideOnMouseOut(boolean hideOnMouseOut) Sets possibility to close popup window on cursor out.voidsetMinimizedValue(String minimizedValue) Sets value for the label of component.voidsetPopupContent(Component popupContent) Sets inner content for the popup window.voidsetPopupPosition(int top, int left) Sets the popup position.voidsetPopupPosition(PopupView.PopupPosition position) Sets the popup position.voidsetPopupPositionLeft(int left) Sets the left popup position.voidsetPopupPositionTop(int top) Sets the top popup position.voidsetPopupVisible(boolean popupVisible) Sets visibility for the popup window.Methods inherited from interface io.jmix.ui.component.Component
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, withUnwrappedCompositionMethods inherited from interface io.jmix.ui.component.Component.BelongToFrame
getFrame, setFrameMethods inherited from interface io.jmix.ui.component.Component.HasCaption
getCaption, setCaptionMethods inherited from interface io.jmix.ui.component.Component.HasDescription
getDescription, setDescriptionMethods inherited from interface io.jmix.ui.component.Component.HasIcon
getIcon, setIcon, setIconFromSetMethods inherited from interface io.jmix.ui.component.HasContextHelp
getContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabledMethods inherited from interface io.jmix.ui.component.HasHtmlDescription
isDescriptionAsHtml, setDescriptionAsHtmlMethods inherited from interface io.jmix.ui.component.HasHtmlSanitizer
isHtmlSanitizerEnabled, setHtmlSanitizerEnabled
-
Field Details
-
NAME
- See Also:
-
-
Method Details
-
setPopupVisible
void setPopupVisible(boolean popupVisible) Sets visibility for the popup window.- Parameters:
popupVisible- popup visibility.
-
isPopupVisible
boolean isPopupVisible()- Returns:
- true if popup is visible.
-
setMinimizedValue
Sets value for the label of component. Value of the label can contain HTML.- Parameters:
minimizedValue- label text.
-
getMinimizedValue
String getMinimizedValue()- Returns:
- value of the label of component.
-
setPopupContent
Sets inner content for the popup window.- Parameters:
popupContent- popup component.
-
getPopupContent
- Returns:
- popup content component.
-
setHideOnMouseOut
@StudioProperty(defaultValue="true", initialValue="false") void setHideOnMouseOut(boolean hideOnMouseOut) Sets possibility to close popup window on cursor out.- Parameters:
hideOnMouseOut- popup hide option.
-
isHideOnMouseOut
boolean isHideOnMouseOut()- Returns:
- true if popup window closes on cursor out.
-
setCaptionAsHtml
void setCaptionAsHtml(boolean captionAsHtml) Sets caption rendering as HTML.- Specified by:
setCaptionAsHtmlin interfaceHasHtmlCaption- Parameters:
captionAsHtml- true if we want to show caption as HTML.- See Also:
-
isCaptionAsHtml
boolean isCaptionAsHtml()- Specified by:
isCaptionAsHtmlin interfaceHasHtmlCaption- Returns:
- true if caption is shown as HTML.
-
setPopupPosition
void setPopupPosition(int top, int left) Sets the popup position.- Parameters:
top- the top popup position in pixelsleft- the left popup position in pixels
-
setPopupPositionTop
Sets the top popup position.- Parameters:
top- the top popup position in pixels
-
getPopupPositionTop
int getPopupPositionTop()- Returns:
- top popup position if position is set via
setPopupPosition(int, int)
-
setPopupPositionLeft
Sets the left popup position.- Parameters:
left- the left popup position in pixels
-
getPopupPositionLeft
int getPopupPositionLeft()- Returns:
- left popup position if position is set via
setPopupPosition(int, int)
-
setPopupPosition
@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) Sets the popup position.- Parameters:
position- the popup position
-
getPopupPosition
-
addPopupVisibilityListener
-