public class MessageDialogFacetImpl extends AbstractFacet implements MessageDialogFacet
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
actionId |
protected java.lang.String |
buttonId |
protected java.lang.String |
caption |
protected boolean |
closeOnClickOutside |
protected ContentMode |
contentMode |
protected SizeWithUnit |
height |
protected boolean |
htmlSanitizerEnabled |
protected java.lang.String |
message |
protected boolean |
modal |
protected java.lang.String |
styleName |
protected SizeWithUnit |
width |
protected WindowMode |
windowMode |
id, owner
Constructor and Description |
---|
MessageDialogFacetImpl() |
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 |
setOwner(Frame owner)
|
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.
|
protected void |
subscribe() |
protected void |
subscribeOnAction(Frame owner) |
protected void |
subscribeOnButton(Frame owner) |
getEventHub, getId, getOwner, hasSubscriptions, publish, setId, unsubscribe
protected java.lang.String caption
protected java.lang.String message
protected SizeWithUnit width
protected SizeWithUnit height
protected boolean modal
protected java.lang.String styleName
protected ContentMode contentMode
protected WindowMode windowMode
protected java.lang.String actionId
protected java.lang.String buttonId
protected boolean closeOnClickOutside
protected boolean htmlSanitizerEnabled
public void setCaption(@Nullable java.lang.String caption)
MessageDialogFacet
setCaption
in interface MessageDialogFacet
caption
- caption@Nullable public java.lang.String getCaption()
getCaption
in interface MessageDialogFacet
public void setMessage(@Nullable java.lang.String message)
MessageDialogFacet
setMessage
in interface MessageDialogFacet
message
- message@Nullable public java.lang.String getMessage()
getMessage
in interface MessageDialogFacet
public void setContentMode(ContentMode contentMode)
MessageDialogFacet
setContentMode
in interface MessageDialogFacet
contentMode
- content modepublic ContentMode getContentMode()
getContentMode
in interface MessageDialogFacet
public void setWindowMode(WindowMode windowMode)
MessageDialogFacet
setWindowMode
in interface MessageDialogFacet
windowMode
- the mode of the dialog windowpublic WindowMode getWindowMode()
getWindowMode
in interface MessageDialogFacet
public void setModal(boolean modal)
MessageDialogFacet
setModal
in interface MessageDialogFacet
modal
- modalpublic boolean isModal()
isModal
in interface MessageDialogFacet
public void setStyleName(java.lang.String styleName)
MessageDialogFacet
setStyleName
in interface MessageDialogFacet
styleName
- style name@Nullable public java.lang.String getStyleName()
getStyleName
in interface MessageDialogFacet
public void setWidth(@Nullable java.lang.String width)
MessageDialogFacet
setWidth
in interface MessageDialogFacet
width
- widthpublic float getWidth()
getWidth
in interface MessageDialogFacet
public SizeUnit getWidthSizeUnit()
getWidthSizeUnit
in interface MessageDialogFacet
public void setHeight(@Nullable java.lang.String height)
MessageDialogFacet
setHeight
in interface MessageDialogFacet
height
- heightpublic float getHeight()
getHeight
in interface MessageDialogFacet
public SizeUnit getHeightSizeUnit()
getHeightSizeUnit
in interface MessageDialogFacet
@Nullable public java.lang.String getActionTarget()
getActionTarget
in interface MessageDialogFacet
public void setActionTarget(@Nullable java.lang.String actionId)
MessageDialogFacet
actionId
is performed.setActionTarget
in interface MessageDialogFacet
actionId
- action id@Nullable public java.lang.String getButtonTarget()
getButtonTarget
in interface MessageDialogFacet
public void setButtonTarget(@Nullable java.lang.String buttonId)
MessageDialogFacet
actionId
is clicked.setButtonTarget
in interface MessageDialogFacet
buttonId
- button idpublic void setCloseOnClickOutside(boolean closeOnClickOutside)
MessageDialogFacet
setCloseOnClickOutside
in interface MessageDialogFacet
closeOnClickOutside
- close on click outsidepublic boolean isCloseOnClickOutside()
isCloseOnClickOutside
in interface MessageDialogFacet
public void setHtmlSanitizerEnabled(boolean htmlSanitizerEnabled)
MessageDialogFacet
setHtmlSanitizerEnabled
in interface MessageDialogFacet
htmlSanitizerEnabled
- specifies whether html sanitizer is enabledpublic boolean isHtmlSanitizerEnabled()
isHtmlSanitizerEnabled
in interface MessageDialogFacet
public void setOwner(@Nullable Frame owner)
Facet
setOwner
in interface Facet
setOwner
in class AbstractFacet
owner
- owner framepublic void show()
MessageDialogFacet
show
in interface MessageDialogFacet
protected void subscribe()
protected void subscribeOnAction(Frame owner)
protected void subscribeOnButton(Frame owner)