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.PopupVisibilityEvent
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 |
---|---|
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, parent
AUTO_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, withUnwrappedComposition
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFrame
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, withUnwrappedComposition
getIcon, setIconFromSet
getContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled
getCaption
getDescription, setDescription
isDescriptionAsHtml, setDescriptionAsHtml
isHtmlSanitizerEnabled, setHtmlSanitizerEnabled
protected 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 PopupView
protected void internalRemovePopupVisibilityListener(java.util.function.Consumer<PopupView.PopupVisibilityEvent> listener)
public void setPopupContent(@Nullable Component popupContent)
PopupView
setPopupContent
in interface PopupView
popupContent
- popup component.protected void attachToFrame(Component childComponent)
protected void detachFromFrame(Component childComponent)
public void setFrame(@Nullable Frame frame)
setFrame
in interface Component.BelongToFrame
setFrame
in class AbstractComponent<JmixPopupView>
@Nullable public Component getPopupContent()
getPopupContent
in interface PopupView
public void setPopupVisible(boolean value)
PopupView
setPopupVisible
in interface PopupView
value
- popup visibility.public void setHideOnMouseOut(boolean value)
PopupView
setHideOnMouseOut
in interface PopupView
value
- popup hide option.public boolean isHideOnMouseOut()
isHideOnMouseOut
in interface PopupView
public boolean isPopupVisible()
isPopupVisible
in interface PopupView
public void setMinimizedValue(java.lang.String minimizedValue)
PopupView
setMinimizedValue
in interface PopupView
minimizedValue
- label text.public java.lang.String getMinimizedValue()
getMinimizedValue
in interface PopupView
public void setCaptionAsHtml(boolean value)
HasHtmlCaption
setCaptionAsHtml
in interface HasHtmlCaption
setCaptionAsHtml
in interface PopupView
setCaptionAsHtml
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 HasHtmlCaption
isCaptionAsHtml
in interface PopupView
isCaptionAsHtml
in class AbstractComponent<JmixPopupView>
true
if the caption is rendered as HTML,
false
if rendered as plain textpublic void setPopupPosition(int top, int left)
PopupView
setPopupPosition
in interface PopupView
top
- the top popup position in pixelsleft
- the left popup position in pixelspublic void setPopupPositionTop(int top)
PopupView
setPopupPositionTop
in interface PopupView
top
- the top popup position in pixelspublic int getPopupPositionTop()
getPopupPositionTop
in interface PopupView
PopupView.setPopupPosition(int, int)
public void setPopupPositionLeft(int left)
PopupView
setPopupPositionLeft
in interface PopupView
left
- the left popup position in pixelspublic int getPopupPositionLeft()
getPopupPositionLeft
in interface PopupView
PopupView.setPopupPosition(int, int)
public void setPopupPosition(@Nullable PopupView.PopupPosition position)
PopupView
setPopupPosition
in interface PopupView
position
- the popup position@Nullable public PopupView.PopupPosition getPopupPosition()
PopupView
getPopupPosition
in interface PopupView
public void setCaption(@Nullable java.lang.String caption)
Component.HasCaption
setCaption
in interface Component.HasCaption
setCaption
in class AbstractComponent<JmixPopupView>
caption
- the new component's captionpublic void setIcon(@Nullable java.lang.String icon)
Component.HasIcon
setIcon
in interface Component.HasIcon
setIcon
in class AbstractComponent<JmixPopupView>
public void setStyleName(@Nullable java.lang.String name)
Component
setStyleName
in interface Component
setStyleName
in class AbstractComponent<JmixPopupView>
name
- one or more style names separated by space.protected void setIconStyle()