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
Modifier and TypeFieldDescriptionprotected String
protected String
protected String
protected ContentMode
protected SizeWithUnit
protected boolean
protected String
protected String
protected SizeWithUnit
protected WindowMode
Fields inherited from class io.jmix.ui.component.impl.AbstractFacet
id, owner
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected BaseAction
protected Action[]
float
getSubPart
(String name) float
getWidth()
boolean
void
Sets dialog actions.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
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
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
-
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:ActionsAwareDialogFacet
Sets dialog actions.- Specified by:
setActions
in interfaceActionsAwareDialogFacet<OptionDialogFacet>
- Parameters:
actions
- actions
-
getActions
- Specified by:
getActions
in interfaceActionsAwareDialogFacet<OptionDialogFacet>
- Returns:
- dialog actions
-
setCaption
Description copied from interface:OptionDialogFacet
Sets dialog caption.- Specified by:
setCaption
in interfaceOptionDialogFacet
- Parameters:
caption
- caption
-
getCaption
- Specified by:
getCaption
in interfaceOptionDialogFacet
- Returns:
- dialog caption
-
setMessage
Description copied from interface:OptionDialogFacet
Sets dialog message.- Specified by:
setMessage
in interfaceOptionDialogFacet
- Parameters:
message
- message
-
getMessage
- Specified by:
getMessage
in interfaceOptionDialogFacet
- Returns:
- dialog message
-
setContentMode
Description copied from interface:OptionDialogFacet
Sets dialog message content mode.- Specified by:
setContentMode
in interfaceOptionDialogFacet
- Parameters:
contentMode
- content mode
-
getContentMode
- Specified by:
getContentMode
in interfaceOptionDialogFacet
- Returns:
- dialog message content mode
-
setWindowMode
Description copied from interface:OptionDialogFacet
Sets the mode of the dialog window- Specified by:
setWindowMode
in interfaceOptionDialogFacet
- Parameters:
windowMode
- the mode of the dialog window
-
getWindowMode
- Specified by:
getWindowMode
in interfaceOptionDialogFacet
- Returns:
- the mode of the dialog window
-
setStyleName
Description copied from interface:OptionDialogFacet
Sets dialog style name.- Specified by:
setStyleName
in interfaceOptionDialogFacet
- Parameters:
styleName
- style name
-
getStyleName
- Specified by:
getStyleName
in interfaceOptionDialogFacet
- Returns:
- dialog style name
-
setWidth
Description copied from interface:OptionDialogFacet
Sets dialog width.- Specified by:
setWidth
in interfaceOptionDialogFacet
- Parameters:
width
- width
-
getWidth
public float getWidth()- Specified by:
getWidth
in interfaceOptionDialogFacet
- Returns:
- dialog width
-
getWidthSizeUnit
- Specified by:
getWidthSizeUnit
in interfaceOptionDialogFacet
- Returns:
- dialog width size unit
-
setHeight
Description copied from interface:OptionDialogFacet
Sets dialog height.- Specified by:
setHeight
in interfaceOptionDialogFacet
- Parameters:
height
- height
-
getHeight
public float getHeight()- Specified by:
getHeight
in interfaceOptionDialogFacet
- Returns:
- dialog height
-
getHeightSizeUnit
- Specified by:
getHeightSizeUnit
in interfaceOptionDialogFacet
- Returns:
- dialog height size unit
-
getActionTarget
- Specified by:
getActionTarget
in interfaceOptionDialogFacet
- Returns:
- id of action that triggers dialog
-
setActionTarget
Description copied from interface:OptionDialogFacet
Sets that dialog should be shown when action with idactionId
is performed.- Specified by:
setActionTarget
in interfaceOptionDialogFacet
- Parameters:
actionId
- action id
-
getButtonTarget
- Specified by:
getButtonTarget
in interfaceOptionDialogFacet
- Returns:
- id of button that triggers dialog
-
setButtonTarget
Description copied from interface:OptionDialogFacet
Sets that dialog should be shown when button with idactionId
is clicked.- Specified by:
setButtonTarget
in interfaceOptionDialogFacet
- Parameters:
buttonId
- button id
-
setHtmlSanitizerEnabled
public void setHtmlSanitizerEnabled(boolean htmlSanitizerEnabled) Description copied from interface:OptionDialogFacet
Sets whether html sanitizer is enabled or not for dialog content.- Specified by:
setHtmlSanitizerEnabled
in interfaceOptionDialogFacet
- Parameters:
htmlSanitizerEnabled
- specifies whether html sanitizer is enabled
-
isHtmlSanitizerEnabled
public boolean isHtmlSanitizerEnabled()- Specified by:
isHtmlSanitizerEnabled
in interfaceOptionDialogFacet
- Returns:
- html sanitizer is enabled for dialog content
-
show
public void show()Description copied from interface:OptionDialogFacet
Shows dialog.- Specified by:
show
in interfaceOptionDialogFacet
-
getSubPart
- Specified by:
getSubPart
in interfaceHasSubParts
-
setOwner
Description copied from interface:Facet
- Specified by:
setOwner
in interfaceFacet
- Overrides:
setOwner
in classAbstractFacet
- Parameters:
owner
- owner frame
-
subscribe
protected void subscribe() -
subscribeOnAction
-
subscribeOnButton
-
createActions
-
createAction
-