@StudioFacet(xmlElement="messageDialog", caption="MessageDialog", description="Prepares and shows message dialogs", defaultProperty="message", category="Facets", icon="io/jmix/ui/icon/facet/dialog.svg") public interface MessageDialogFacet extends Facet
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getActionTarget() |
java.lang.String |
getButtonTarget() |
java.lang.String |
getCaption() |
ContentMode |
getContentMode() |
float |
getHeight() |
SizeUnit |
getHeightSizeUnit() |
java.lang.String |
getMessage() |
java.lang.String |
getStyleName() |
float |
getWidth() |
SizeUnit |
getWidthSizeUnit() |
WindowMode |
getWindowMode() |
boolean |
isCloseOnClickOutside() |
boolean |
isHtmlSanitizerEnabled() |
boolean |
isModal() |
void |
setActionTarget(java.lang.String actionId)
Sets that dialog should be shown when action with id
actionId
is performed. |
void |
setButtonTarget(java.lang.String buttonId)
Sets that dialog should be shown when button with id
actionId
is clicked. |
void |
setCaption(java.lang.String caption)
Sets dialog caption.
|
void |
setCloseOnClickOutside(boolean closeOnClickOutside)
Sets whether the dialog should be closed on click outside.
|
void |
setContentMode(ContentMode contentMode)
Sets dialog message content mode.
|
void |
setHeight(java.lang.String height)
Sets dialog height.
|
void |
setHtmlSanitizerEnabled(boolean htmlSanitizerEnabled)
Sets whether html sanitizer is enabled or not for dialog content.
|
void |
setMessage(java.lang.String message)
Sets dialog message.
|
void |
setModal(boolean modal)
Sets whether dialog should be modal
|
void |
setStyleName(java.lang.String styleName)
Sets dialog style name.
|
void |
setWidth(java.lang.String width)
Sets dialog width.
|
void |
setWindowMode(WindowMode windowMode)
Sets the mode of the dialog window
|
void |
show()
Shows dialog.
|
@StudioProperty(type=LOCALIZED_STRING) void setCaption(@Nullable java.lang.String caption)
caption
- caption@Nullable java.lang.String getCaption()
@StudioProperty(type=LOCALIZED_STRING) void setMessage(@Nullable java.lang.String message)
message
- message@Nullable java.lang.String getMessage()
@StudioProperty(type=ENUMERATION, defaultValue="TEXT") void setContentMode(ContentMode contentMode)
contentMode
- content modeContentMode getContentMode()
@StudioProperty(type=ENUMERATION, defaultValue="NORMAL") void setWindowMode(WindowMode windowMode)
windowMode
- the mode of the dialog windowWindowMode getWindowMode()
@StudioProperty(type=BOOLEAN) void setModal(boolean modal)
modal
- modalboolean isModal()
@StudioProperty(name="stylename", type=CSS_CLASSNAME_LIST) void setStyleName(java.lang.String styleName)
styleName
- style name@Nullable java.lang.String getStyleName()
@StudioProperty(type=SIZE) void setWidth(@Nullable java.lang.String width)
width
- widthfloat getWidth()
SizeUnit getWidthSizeUnit()
@StudioProperty(type=SIZE) void setHeight(@Nullable java.lang.String height)
height
- heightfloat getHeight()
SizeUnit getHeightSizeUnit()
@StudioProperty(name="onAction", type=COMPONENT_REF, options="io.jmix.ui.action.Action") void setActionTarget(@Nullable java.lang.String actionId)
actionId
is performed.actionId
- action id@Nullable java.lang.String getActionTarget()
@StudioProperty(name="onButton", type=COMPONENT_REF, options="io.jmix.ui.component.Button") void setButtonTarget(@Nullable java.lang.String buttonId)
actionId
is clicked.buttonId
- button id@Nullable java.lang.String getButtonTarget()
@StudioProperty(type=BOOLEAN) void setCloseOnClickOutside(boolean closeOnClickOutside)
closeOnClickOutside
- close on click outsideboolean isCloseOnClickOutside()
@StudioProperty(type=BOOLEAN, defaultValue="true") void setHtmlSanitizerEnabled(boolean htmlSanitizerEnabled)
htmlSanitizerEnabled
- specifies whether html sanitizer is enabledboolean isHtmlSanitizerEnabled()
void show()