Package io.jmix.ui.component.impl
Class MessageDialogFacetImpl
java.lang.Object
io.jmix.ui.component.impl.AbstractFacet
io.jmix.ui.component.impl.MessageDialogFacetImpl
- All Implemented Interfaces:
- Facet,- MessageDialogFacet
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringprotected booleanprotected ContentModeprotected SizeWithUnitprotected booleanprotected Stringprotected booleanprotected Stringprotected SizeWithUnitprotected WindowModeFields inherited from class io.jmix.ui.component.impl.AbstractFacetid, owner
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfloatfloatgetWidth()booleanbooleanbooleanisModal()voidsetActionTarget(String actionId) Sets that dialog should be shown when action with idactionIdis performed.voidsetButtonTarget(String buttonId) Sets that dialog should be shown when button with idactionIdis clicked.voidsetCaption(String caption) Sets dialog caption.voidsetCloseOnClickOutside(boolean closeOnClickOutside) Sets whether the dialog should be closed on click outside.voidsetContentMode(ContentMode contentMode) Sets dialog message content mode.voidSets dialog height.voidsetHtmlSanitizerEnabled(boolean htmlSanitizerEnabled) Sets whether html sanitizer is enabled or not for dialog content.voidsetMessage(String message) Sets dialog message.voidsetModal(boolean modal) Sets whether dialog should be modalvoidvoidsetStyleName(String styleName) Sets dialog style name.voidSets dialog width.voidsetWindowMode(WindowMode windowMode) Sets the mode of the dialog windowvoidshow()Shows dialog.protected voidprotected voidsubscribeOnAction(Frame owner) protected voidsubscribeOnButton(Frame owner) Methods inherited from class io.jmix.ui.component.impl.AbstractFacetgetEventHub, getId, getOwner, hasSubscriptions, publish, setId, unsubscribe
- 
Field Details- 
caption
- 
message
- 
width
- 
height
- 
modalprotected boolean modal
- 
styleName
- 
contentMode
- 
windowMode
- 
actionId
- 
buttonId
- 
closeOnClickOutsideprotected boolean closeOnClickOutside
- 
htmlSanitizerEnabledprotected boolean htmlSanitizerEnabled
 
- 
- 
Constructor Details- 
MessageDialogFacetImplpublic MessageDialogFacetImpl()
 
- 
- 
Method Details- 
setCaptionDescription copied from interface:MessageDialogFacetSets dialog caption.- Specified by:
- setCaptionin interface- MessageDialogFacet
- Parameters:
- caption- caption
 
- 
getCaption- Specified by:
- getCaptionin interface- MessageDialogFacet
- Returns:
- dialog caption
 
- 
setMessageDescription copied from interface:MessageDialogFacetSets dialog message.- Specified by:
- setMessagein interface- MessageDialogFacet
- Parameters:
- message- message
 
- 
getMessage- Specified by:
- getMessagein interface- MessageDialogFacet
- Returns:
- dialog message
 
- 
setContentModeDescription copied from interface:MessageDialogFacetSets dialog message content mode.- Specified by:
- setContentModein interface- MessageDialogFacet
- Parameters:
- contentMode- content mode
 
- 
getContentMode- Specified by:
- getContentModein interface- MessageDialogFacet
- Returns:
- dialog message content mode
 
- 
setWindowModeDescription copied from interface:MessageDialogFacetSets the mode of the dialog window- Specified by:
- setWindowModein interface- MessageDialogFacet
- Parameters:
- windowMode- the mode of the dialog window
 
- 
getWindowMode- Specified by:
- getWindowModein interface- MessageDialogFacet
- Returns:
- the mode of the dialog window
 
- 
setModalpublic void setModal(boolean modal) Description copied from interface:MessageDialogFacetSets whether dialog should be modal- Specified by:
- setModalin interface- MessageDialogFacet
- Parameters:
- modal- modal
 
- 
isModalpublic boolean isModal()- Specified by:
- isModalin interface- MessageDialogFacet
- Returns:
- whether dialog should be modal
 
- 
setStyleNameDescription copied from interface:MessageDialogFacetSets dialog style name.- Specified by:
- setStyleNamein interface- MessageDialogFacet
- Parameters:
- styleName- style name
 
- 
getStyleName- Specified by:
- getStyleNamein interface- MessageDialogFacet
- Returns:
- dialog style name
 
- 
setWidthDescription copied from interface:MessageDialogFacetSets dialog width.- Specified by:
- setWidthin interface- MessageDialogFacet
- Parameters:
- width- width
 
- 
getWidthpublic float getWidth()- Specified by:
- getWidthin interface- MessageDialogFacet
- Returns:
- dialog width
 
- 
getWidthSizeUnit- Specified by:
- getWidthSizeUnitin interface- MessageDialogFacet
- Returns:
- dialog width size unit
 
- 
setHeightDescription copied from interface:MessageDialogFacetSets dialog height.- Specified by:
- setHeightin interface- MessageDialogFacet
- Parameters:
- height- height
 
- 
getHeightpublic float getHeight()- Specified by:
- getHeightin interface- MessageDialogFacet
- Returns:
- dialog height
 
- 
getHeightSizeUnit- Specified by:
- getHeightSizeUnitin interface- MessageDialogFacet
- Returns:
- dialog height size unit
 
- 
getActionTarget- Specified by:
- getActionTargetin interface- MessageDialogFacet
- Returns:
- id of action that triggers dialog
 
- 
setActionTargetDescription copied from interface:MessageDialogFacetSets that dialog should be shown when action with idactionIdis performed.- Specified by:
- setActionTargetin interface- MessageDialogFacet
- Parameters:
- actionId- action id
 
- 
getButtonTarget- Specified by:
- getButtonTargetin interface- MessageDialogFacet
- Returns:
- id of button that triggers dialog
 
- 
setButtonTargetDescription copied from interface:MessageDialogFacetSets that dialog should be shown when button with idactionIdis clicked.- Specified by:
- setButtonTargetin interface- MessageDialogFacet
- Parameters:
- buttonId- button id
 
- 
setCloseOnClickOutsidepublic void setCloseOnClickOutside(boolean closeOnClickOutside) Description copied from interface:MessageDialogFacetSets whether the dialog should be closed on click outside.- Specified by:
- setCloseOnClickOutsidein interface- MessageDialogFacet
- Parameters:
- closeOnClickOutside- close on click outside
 
- 
isCloseOnClickOutsidepublic boolean isCloseOnClickOutside()- Specified by:
- isCloseOnClickOutsidein interface- MessageDialogFacet
- Returns:
- whether the dialog should be closed on click outside
 
- 
setHtmlSanitizerEnabledpublic void setHtmlSanitizerEnabled(boolean htmlSanitizerEnabled) Description copied from interface:MessageDialogFacetSets whether html sanitizer is enabled or not for dialog content.- Specified by:
- setHtmlSanitizerEnabledin interface- MessageDialogFacet
- Parameters:
- htmlSanitizerEnabled- specifies whether html sanitizer is enabled
 
- 
isHtmlSanitizerEnabledpublic boolean isHtmlSanitizerEnabled()- Specified by:
- isHtmlSanitizerEnabledin interface- MessageDialogFacet
- Returns:
- html sanitizer is enabled for dialog content
 
- 
setOwnerDescription copied from interface:Facet- Specified by:
- setOwnerin interface- Facet
- Overrides:
- setOwnerin class- AbstractFacet
- Parameters:
- owner- owner frame
 
- 
showpublic void show()Description copied from interface:MessageDialogFacetShows dialog.- Specified by:
- showin interface- MessageDialogFacet
 
- 
subscribeprotected void subscribe()
- 
subscribeOnAction
- 
subscribeOnButton
 
-