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 Summary
Modifier and TypeFieldDescriptionprotected String
protected String
protected String
protected boolean
protected ContentMode
protected SizeWithUnit
protected boolean
protected String
protected boolean
protected String
protected SizeWithUnit
protected WindowMode
Fields inherited from class io.jmix.ui.component.impl.AbstractFacet
id, owner
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
float
getWidth()
boolean
boolean
boolean
isModal()
void
setActionTarget
(String actionId) Sets that dialog should be shown when action with idactionId
is performed.void
setButtonTarget
(String buttonId) Sets that dialog should be shown when button with idactionId
is clicked.void
setCaption
(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
Sets dialog height.void
setHtmlSanitizerEnabled
(boolean htmlSanitizerEnabled) Sets whether html sanitizer is enabled or not for dialog content.void
setMessage
(String message) Sets dialog message.void
setModal
(boolean modal) Sets whether dialog should be modalvoid
void
setStyleName
(String styleName) Sets dialog style name.void
Sets dialog width.void
setWindowMode
(WindowMode windowMode) Sets the mode of the dialog windowvoid
show()
Shows dialog.protected void
protected void
subscribeOnAction
(Frame owner) protected void
subscribeOnButton
(Frame owner) Methods inherited from class io.jmix.ui.component.impl.AbstractFacet
getEventHub, getId, getOwner, hasSubscriptions, publish, setId, unsubscribe
-
Field Details
-
message
-
width
-
height
-
modal
protected boolean modal -
styleName
-
contentMode
-
windowMode
-
actionId
-
buttonId
-
closeOnClickOutside
protected boolean closeOnClickOutside -
htmlSanitizerEnabled
protected boolean htmlSanitizerEnabled
-
Constructor Details
-
MessageDialogFacetImpl
public MessageDialogFacetImpl()
-
-
Method Details
-
setCaption
Description copied from interface:MessageDialogFacet
Sets dialog caption.- Specified by:
setCaption
in interfaceMessageDialogFacet
- Parameters:
caption
- caption
-
getCaption
- Specified by:
getCaption
in interfaceMessageDialogFacet
- Returns:
- dialog caption
-
setMessage
Description copied from interface:MessageDialogFacet
Sets dialog message.- Specified by:
setMessage
in interfaceMessageDialogFacet
- Parameters:
message
- message
-
getMessage
- Specified by:
getMessage
in interfaceMessageDialogFacet
- Returns:
- dialog message
-
setContentMode
Description copied from interface:MessageDialogFacet
Sets dialog message content mode.- Specified by:
setContentMode
in interfaceMessageDialogFacet
- Parameters:
contentMode
- content mode
-
getContentMode
- Specified by:
getContentMode
in interfaceMessageDialogFacet
- Returns:
- dialog message content mode
-
setWindowMode
Description copied from interface:MessageDialogFacet
Sets the mode of the dialog window- Specified by:
setWindowMode
in interfaceMessageDialogFacet
- Parameters:
windowMode
- the mode of the dialog window
-
getWindowMode
- Specified by:
getWindowMode
in interfaceMessageDialogFacet
- Returns:
- the mode of the dialog window
-
setModal
public void setModal(boolean modal) Description copied from interface:MessageDialogFacet
Sets whether dialog should be modal- Specified by:
setModal
in interfaceMessageDialogFacet
- Parameters:
modal
- modal
-
isModal
public boolean isModal()- Specified by:
isModal
in interfaceMessageDialogFacet
- Returns:
- whether dialog should be modal
-
setStyleName
Description copied from interface:MessageDialogFacet
Sets dialog style name.- Specified by:
setStyleName
in interfaceMessageDialogFacet
- Parameters:
styleName
- style name
-
getStyleName
- Specified by:
getStyleName
in interfaceMessageDialogFacet
- Returns:
- dialog style name
-
setWidth
Description copied from interface:MessageDialogFacet
Sets dialog width.- Specified by:
setWidth
in interfaceMessageDialogFacet
- Parameters:
width
- width
-
getWidth
public float getWidth()- Specified by:
getWidth
in interfaceMessageDialogFacet
- Returns:
- dialog width
-
getWidthSizeUnit
- Specified by:
getWidthSizeUnit
in interfaceMessageDialogFacet
- Returns:
- dialog width size unit
-
setHeight
Description copied from interface:MessageDialogFacet
Sets dialog height.- Specified by:
setHeight
in interfaceMessageDialogFacet
- Parameters:
height
- height
-
getHeight
public float getHeight()- Specified by:
getHeight
in interfaceMessageDialogFacet
- Returns:
- dialog height
-
getHeightSizeUnit
- Specified by:
getHeightSizeUnit
in interfaceMessageDialogFacet
- Returns:
- dialog height size unit
-
getActionTarget
- Specified by:
getActionTarget
in interfaceMessageDialogFacet
- Returns:
- id of action that triggers dialog
-
setActionTarget
Description copied from interface:MessageDialogFacet
Sets that dialog should be shown when action with idactionId
is performed.- Specified by:
setActionTarget
in interfaceMessageDialogFacet
- Parameters:
actionId
- action id
-
getButtonTarget
- Specified by:
getButtonTarget
in interfaceMessageDialogFacet
- Returns:
- id of button that triggers dialog
-
setButtonTarget
Description copied from interface:MessageDialogFacet
Sets that dialog should be shown when button with idactionId
is clicked.- Specified by:
setButtonTarget
in interfaceMessageDialogFacet
- Parameters:
buttonId
- button id
-
setCloseOnClickOutside
public void setCloseOnClickOutside(boolean closeOnClickOutside) Description copied from interface:MessageDialogFacet
Sets whether the dialog should be closed on click outside.- Specified by:
setCloseOnClickOutside
in interfaceMessageDialogFacet
- Parameters:
closeOnClickOutside
- close on click outside
-
isCloseOnClickOutside
public boolean isCloseOnClickOutside()- Specified by:
isCloseOnClickOutside
in interfaceMessageDialogFacet
- Returns:
- whether the dialog should be closed on click outside
-
setHtmlSanitizerEnabled
public void setHtmlSanitizerEnabled(boolean htmlSanitizerEnabled) Description copied from interface:MessageDialogFacet
Sets whether html sanitizer is enabled or not for dialog content.- Specified by:
setHtmlSanitizerEnabled
in interfaceMessageDialogFacet
- Parameters:
htmlSanitizerEnabled
- specifies whether html sanitizer is enabled
-
isHtmlSanitizerEnabled
public boolean isHtmlSanitizerEnabled()- Specified by:
isHtmlSanitizerEnabled
in interfaceMessageDialogFacet
- Returns:
- html sanitizer is enabled for dialog content
-
setOwner
Description copied from interface:Facet
- Specified by:
setOwner
in interfaceFacet
- Overrides:
setOwner
in classAbstractFacet
- Parameters:
owner
- owner frame
-
show
public void show()Description copied from interface:MessageDialogFacet
Shows dialog.- Specified by:
show
in interfaceMessageDialogFacet
-
subscribe
protected void subscribe() -
subscribeOnAction
-
subscribeOnButton
-