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.
  • Field Details

  • 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

      @StudioProperty(type=LOCALIZED_STRING) void setMinimizedValue(String minimizedValue)
      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

      void setPopupContent(@Nullable Component popupContent)
      Sets inner content for the popup window.
      Parameters:
      popupContent - popup component.
    • getPopupContent

      @Nullable 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:
      setCaptionAsHtml in interface HasHtmlCaption
      Parameters:
      captionAsHtml - true if we want to show caption as HTML.
      See Also:
    • isCaptionAsHtml

      boolean isCaptionAsHtml()
      Specified by:
      isCaptionAsHtml in interface HasHtmlCaption
      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 pixels
      left - the left popup position in pixels
    • setPopupPositionTop

      @StudioProperty(name="popupTop", defaultValue="-1") void setPopupPositionTop(int top)
      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

      @StudioProperty(name="popupLeft", defaultValue="-1") void setPopupPositionLeft(int left)
      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

      @Nullable PopupView.PopupPosition getPopupPosition()
      return PopupPosition or null if position is set via setPopupPosition(PopupPosition)
    • addPopupVisibilityListener

      Subscription addPopupVisibilityListener(Consumer<PopupView.PopupVisibilityEvent> listener)