Package io.jmix.ui.component.impl
Class OptionDialogFacetImpl
java.lang.Object
io.jmix.ui.component.impl.AbstractFacet
io.jmix.ui.component.impl.OptionDialogFacetImpl
- All Implemented Interfaces:
ActionsAwareDialogFacet<OptionDialogFacet>,Facet,HasSubParts,OptionDialogFacet
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.ui.component.ActionsAwareDialogFacet
ActionsAwareDialogFacet.DialogAction<T>, ActionsAwareDialogFacet.DialogActionPerformedEvent<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringprotected ContentModeprotected SizeWithUnitprotected booleanprotected Stringprotected Stringprotected SizeWithUnitprotected WindowModeFields inherited from class io.jmix.ui.component.impl.AbstractFacet
id, owner -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BaseActionprotected Action[]floatgetSubPart(String name) floatgetWidth()booleanvoidSets dialog actions.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.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.voidvoidsetStyleName(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.AbstractFacet
getEventHub, getId, getOwner, hasSubscriptions, publish, setId, unsubscribe
-
Field Details
-
caption
-
message
-
width
-
height
-
styleName
-
contentMode
-
windowMode
-
actionId
-
buttonId
-
actions
-
htmlSanitizerEnabled
protected boolean htmlSanitizerEnabled
-
-
Constructor Details
-
OptionDialogFacetImpl
public OptionDialogFacetImpl()
-
-
Method Details
-
setActions
public void setActions(@Nullable Collection<ActionsAwareDialogFacet.DialogAction<OptionDialogFacet>> actions) Description copied from interface:ActionsAwareDialogFacetSets dialog actions.- Specified by:
setActionsin interfaceActionsAwareDialogFacet<OptionDialogFacet>- Parameters:
actions- actions
-
getActions
- Specified by:
getActionsin interfaceActionsAwareDialogFacet<OptionDialogFacet>- Returns:
- dialog actions
-
setCaption
Description copied from interface:OptionDialogFacetSets dialog caption.- Specified by:
setCaptionin interfaceOptionDialogFacet- Parameters:
caption- caption
-
getCaption
- Specified by:
getCaptionin interfaceOptionDialogFacet- Returns:
- dialog caption
-
setMessage
Description copied from interface:OptionDialogFacetSets dialog message.- Specified by:
setMessagein interfaceOptionDialogFacet- Parameters:
message- message
-
getMessage
- Specified by:
getMessagein interfaceOptionDialogFacet- Returns:
- dialog message
-
setContentMode
Description copied from interface:OptionDialogFacetSets dialog message content mode.- Specified by:
setContentModein interfaceOptionDialogFacet- Parameters:
contentMode- content mode
-
getContentMode
- Specified by:
getContentModein interfaceOptionDialogFacet- Returns:
- dialog message content mode
-
setWindowMode
Description copied from interface:OptionDialogFacetSets the mode of the dialog window- Specified by:
setWindowModein interfaceOptionDialogFacet- Parameters:
windowMode- the mode of the dialog window
-
getWindowMode
- Specified by:
getWindowModein interfaceOptionDialogFacet- Returns:
- the mode of the dialog window
-
setStyleName
Description copied from interface:OptionDialogFacetSets dialog style name.- Specified by:
setStyleNamein interfaceOptionDialogFacet- Parameters:
styleName- style name
-
getStyleName
- Specified by:
getStyleNamein interfaceOptionDialogFacet- Returns:
- dialog style name
-
setWidth
Description copied from interface:OptionDialogFacetSets dialog width.- Specified by:
setWidthin interfaceOptionDialogFacet- Parameters:
width- width
-
getWidth
public float getWidth()- Specified by:
getWidthin interfaceOptionDialogFacet- Returns:
- dialog width
-
getWidthSizeUnit
- Specified by:
getWidthSizeUnitin interfaceOptionDialogFacet- Returns:
- dialog width size unit
-
setHeight
Description copied from interface:OptionDialogFacetSets dialog height.- Specified by:
setHeightin interfaceOptionDialogFacet- Parameters:
height- height
-
getHeight
public float getHeight()- Specified by:
getHeightin interfaceOptionDialogFacet- Returns:
- dialog height
-
getHeightSizeUnit
- Specified by:
getHeightSizeUnitin interfaceOptionDialogFacet- Returns:
- dialog height size unit
-
getActionTarget
- Specified by:
getActionTargetin interfaceOptionDialogFacet- Returns:
- id of action that triggers dialog
-
setActionTarget
Description copied from interface:OptionDialogFacetSets that dialog should be shown when action with idactionIdis performed.- Specified by:
setActionTargetin interfaceOptionDialogFacet- Parameters:
actionId- action id
-
getButtonTarget
- Specified by:
getButtonTargetin interfaceOptionDialogFacet- Returns:
- id of button that triggers dialog
-
setButtonTarget
Description copied from interface:OptionDialogFacetSets that dialog should be shown when button with idactionIdis clicked.- Specified by:
setButtonTargetin interfaceOptionDialogFacet- Parameters:
buttonId- button id
-
setHtmlSanitizerEnabled
public void setHtmlSanitizerEnabled(boolean htmlSanitizerEnabled) Description copied from interface:OptionDialogFacetSets whether html sanitizer is enabled or not for dialog content.- Specified by:
setHtmlSanitizerEnabledin interfaceOptionDialogFacet- Parameters:
htmlSanitizerEnabled- specifies whether html sanitizer is enabled
-
isHtmlSanitizerEnabled
public boolean isHtmlSanitizerEnabled()- Specified by:
isHtmlSanitizerEnabledin interfaceOptionDialogFacet- Returns:
- html sanitizer is enabled for dialog content
-
show
public void show()Description copied from interface:OptionDialogFacetShows dialog.- Specified by:
showin interfaceOptionDialogFacet
-
getSubPart
- Specified by:
getSubPartin interfaceHasSubParts
-
setOwner
Description copied from interface:Facet- Specified by:
setOwnerin interfaceFacet- Overrides:
setOwnerin classAbstractFacet- Parameters:
owner- owner frame
-
subscribe
protected void subscribe() -
subscribeOnAction
-
subscribeOnButton
-
createActions
-
createAction
-