Package io.jmix.ui.component.impl
Class PopupViewImpl
- All Implemented Interfaces:
AttachNotifier,Component,Component.BelongToFrame,Component.HasCaption,Component.HasDescription,Component.HasIcon,Component.HasXmlDescriptor,Component.Wrapper,HasContextHelp,HasDebugId,HasHtmlCaption,HasHtmlDescription,HasHtmlSanitizer,PopupView
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classprotected classNested 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.ContextHelpIconClickEventNested classes/interfaces inherited from interface io.jmix.ui.component.PopupView
PopupView.PopupPosition, PopupView.PopupVisibilityEvent -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Componentprotected com.vaadin.shared.RegistrationFields inherited from class io.jmix.ui.component.impl.AbstractComponent
alignment, applicationContext, component, contextHelpIconClickHandler, contextHelpIconClickListener, descriptionAsHtml, element, frame, htmlSanitizerEnabled, icon, ICON_STYLE, id, parentFields inherited from interface io.jmix.ui.component.Component
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidattachToFrame(Component childComponent) protected JmixPopupViewprotected voiddetachFromFrame(Component childComponent) intintprotected voidbooleanbooleanbooleanvoidsetCaption(String caption) Sets the component's caption.voidsetCaptionAsHtml(boolean value) Sets whether the caption is rendered as HTML.voidvoidsetHideOnMouseOut(boolean value) Sets possibility to close popup window on cursor out.voidSet an icon by its source: "font-icon:ADD", "icons/myicon.png", "theme://createIcon", etc.protected voidvoidsetMinimizedValue(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 value) Sets visibility for the popup window.voidsetStyleName(String name) Sets one or more style names of the component, replacing any previous styles.Methods inherited from class io.jmix.ui.component.impl.AbstractComponent
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, withUnwrappedCompositionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedCompositionMethods inherited from interface io.jmix.ui.component.Component.BelongToFrame
getFrameMethods inherited from interface io.jmix.ui.component.Component.HasCaption
getCaptionMethods inherited from interface io.jmix.ui.component.Component.HasDescription
getDescription, setDescriptionMethods inherited from interface io.jmix.ui.component.Component.HasIcon
getIcon, 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
-
popupContent
-
minimizedValue
-
popupVisibilityListenerRegistration
protected com.vaadin.shared.Registration popupVisibilityListenerRegistration
-
-
Constructor Details
-
PopupViewImpl
public PopupViewImpl()
-
-
Method Details
-
createComponent
-
addPopupVisibilityListener
- Specified by:
addPopupVisibilityListenerin interfacePopupView
-
internalRemovePopupVisibilityListener
protected void internalRemovePopupVisibilityListener(Consumer<PopupView.PopupVisibilityEvent> listener) -
setPopupContent
Description copied from interface:PopupViewSets inner content for the popup window.- Specified by:
setPopupContentin interfacePopupView- Parameters:
popupContent- popup component.
-
attachToFrame
-
detachFromFrame
-
setFrame
- Specified by:
setFramein interfaceComponent.BelongToFrame- Overrides:
setFramein classAbstractComponent<JmixPopupView>
-
getPopupContent
- Specified by:
getPopupContentin interfacePopupView- Returns:
- popup content component.
-
setPopupVisible
public void setPopupVisible(boolean value) Description copied from interface:PopupViewSets visibility for the popup window.- Specified by:
setPopupVisiblein interfacePopupView- Parameters:
value- popup visibility.
-
setHideOnMouseOut
public void setHideOnMouseOut(boolean value) Description copied from interface:PopupViewSets possibility to close popup window on cursor out.- Specified by:
setHideOnMouseOutin interfacePopupView- Parameters:
value- popup hide option.
-
isHideOnMouseOut
public boolean isHideOnMouseOut()- Specified by:
isHideOnMouseOutin interfacePopupView- Returns:
- true if popup window closes on cursor out.
-
isPopupVisible
public boolean isPopupVisible()- Specified by:
isPopupVisiblein interfacePopupView- Returns:
- true if popup is visible.
-
setMinimizedValue
Description copied from interface:PopupViewSets value for the label of component. Value of the label can contain HTML.- Specified by:
setMinimizedValuein interfacePopupView- Parameters:
minimizedValue- label text.
-
getMinimizedValue
- Specified by:
getMinimizedValuein interfacePopupView- Returns:
- value of the label of component.
-
setCaptionAsHtml
public void setCaptionAsHtml(boolean value) Description copied from interface:HasHtmlCaptionSets whether the caption is rendered as HTML.- Specified by:
setCaptionAsHtmlin interfaceHasHtmlCaption- Specified by:
setCaptionAsHtmlin interfacePopupView- Overrides:
setCaptionAsHtmlin classAbstractComponent<JmixPopupView>- Parameters:
value-trueif the caption is rendered as HTML,falseif rendered as plain text- See Also:
-
isCaptionAsHtml
public boolean isCaptionAsHtml()- Specified by:
isCaptionAsHtmlin interfaceHasHtmlCaption- Specified by:
isCaptionAsHtmlin interfacePopupView- Overrides:
isCaptionAsHtmlin classAbstractComponent<JmixPopupView>- Returns:
trueif the caption is rendered as HTML,falseif rendered as plain text
-
setPopupPosition
public void setPopupPosition(int top, int left) Description copied from interface:PopupViewSets the popup position.- Specified by:
setPopupPositionin interfacePopupView- Parameters:
top- the top popup position in pixelsleft- the left popup position in pixels
-
setPopupPositionTop
public void setPopupPositionTop(int top) Description copied from interface:PopupViewSets the top popup position.- Specified by:
setPopupPositionTopin interfacePopupView- Parameters:
top- the top popup position in pixels
-
getPopupPositionTop
public int getPopupPositionTop()- Specified by:
getPopupPositionTopin interfacePopupView- Returns:
- top popup position if position is set via
PopupView.setPopupPosition(int, int)
-
setPopupPositionLeft
public void setPopupPositionLeft(int left) Description copied from interface:PopupViewSets the left popup position.- Specified by:
setPopupPositionLeftin interfacePopupView- Parameters:
left- the left popup position in pixels
-
getPopupPositionLeft
public int getPopupPositionLeft()- Specified by:
getPopupPositionLeftin interfacePopupView- Returns:
- left popup position if position is set via
PopupView.setPopupPosition(int, int)
-
setPopupPosition
Description copied from interface:PopupViewSets the popup position.- Specified by:
setPopupPositionin interfacePopupView- Parameters:
position- the popup position
-
getPopupPosition
Description copied from interface:PopupView- Specified by:
getPopupPositionin interfacePopupView
-
setCaption
Description copied from interface:Component.HasCaptionSets the component's caption.- Specified by:
setCaptionin interfaceComponent.HasCaption- Overrides:
setCaptionin classAbstractComponent<JmixPopupView>- Parameters:
caption- the new component's caption
-
setIcon
Description copied from interface:Component.HasIconSet an icon by its source: "font-icon:ADD", "icons/myicon.png", "theme://createIcon", etc.- Specified by:
setIconin interfaceComponent.HasIcon- Overrides:
setIconin classAbstractComponent<JmixPopupView>
-
setStyleName
Description copied from interface:ComponentSets one or more style names of the component, replacing any previous styles. Multiple styles can be specified as a space-separated list of style names. Styles implementation is client-type-specific.- Specified by:
setStyleNamein interfaceComponent- Overrides:
setStyleNamein classAbstractComponent<JmixPopupView>- Parameters:
name- one or more style names separated by space.
-
setIconStyle
protected void setIconStyle()
-