Package org.primefaces.model
Class DialogFrameworkOptions.Builder
java.lang.Object
org.primefaces.model.DialogFrameworkOptions.Builder
- Enclosing class:
- DialogFrameworkOptions
-
Method Summary
Modifier and TypeMethodDescriptionAppends the dialog to the element defined by the given search expression.blockScroll
(boolean blockScroll) Whether to block scrolling of the document when dialog is modal.build()
closable
(boolean closable) Whether the dialog can be closed or not.closeOnEscape
(boolean closeOnEscape) Whether the dialog can be closed with escape key.contentHeight
(String contentHeight) Height of the dialog content.contentWidth
(String contentWidth) Width of the dialog content.draggable
(boolean draggable) When enabled, makes dialog draggable.dynamic
(boolean dynamic) Enables lazy loading of the content with ajax.fitViewport
(boolean fitViewport) Dialog size might exceeed viewport if content is bigger than viewport in terms of height.Defines which component to apply focus by search expression.headerElement
(String headerElement) Client id of the element to display inside header.Height of the dialog.hideEffect
(String hideEffect) Effect to use when hiding the dialogiframeStyleClass
(String iframeStyleClass) One or more CSS classes for the iframe within the dialog.includeViewParams
(boolean includeViewParams) When enabled, includes the view parameters.maximizable
(boolean maximizable) Minimum height of a resizable dialog.minimizable
(boolean minimizable) Makes dialog minimizable.Minimum width of a resizable dialog.modal
(boolean modal) Controls modality of the dialog.Client side callback to execute when dialog is hidden.Client side callback to execute when dialog is displayed.Defines where the dialog should be displayedresizable
(boolean resizable) When enabled, makes dialog resizable.resizeObserver
(boolean resizeObserver) Use ResizeObserver to automatically adjust dialog-height after e.g.resizeObserverCenter
(boolean resizeObserverCenter) Can be used together with resizeObserver = true.responsive
(boolean responsive) In responsive mode, dialog adjusts itself based on screen width.showEffect
(String showEffect) Effect to use when showing the dialogstyleClass
(String styleClass) One or more CSS classes for the dialog.Custom widgetVar of the dialog, if not declared it will be automatically created as "id+dlgWidget".Width of the dialog.
-
Method Details
-
widgetVar
Custom widgetVar of the dialog, if not declared it will be automatically created as "id+dlgWidget".- Parameters:
widgetVar
-- Returns:
-
modal
Controls modality of the dialog.- Parameters:
modal
-- Returns:
-
resizable
When enabled, makes dialog resizable.- Parameters:
resizable
-- Returns:
-
draggable
When enabled, makes dialog draggable.- Parameters:
draggable
-- Returns:
-
width
Width of the dialog.- Parameters:
width
-- Returns:
-
height
Height of the dialog.- Parameters:
height
-- Returns:
-
contentWidth
Width of the dialog content. NOTE: 'auto' cannot be used because the dialog is displayed in an IFrame.- Parameters:
contentWidth
-- Returns:
-
contentHeight
Height of the dialog content.- Parameters:
contentHeight
-- Returns:
-
closable
Whether the dialog can be closed or not.- Parameters:
closable
-- Returns:
-
includeViewParams
When enabled, includes the view parameters.- Parameters:
includeViewParams
-- Returns:
-
headerElement
Client id of the element to display inside header.- Parameters:
headerElement
-- Returns:
-
minimizable
Makes dialog minimizable.- Parameters:
minimizable
-- Returns:
-
maximizable
-
closeOnEscape
Whether the dialog can be closed with escape key.- Parameters:
closeOnEscape
-- Returns:
-
minWidth
Minimum width of a resizable dialog.- Parameters:
minWidth
-- Returns:
-
minHeight
Minimum height of a resizable dialog.- Parameters:
minHeight
-- Returns:
-
appendTo
Appends the dialog to the element defined by the given search expression.- Parameters:
appendTo
-- Returns:
-
dynamic
Enables lazy loading of the content with ajax.- Parameters:
dynamic
-- Returns:
-
showEffect
Effect to use when showing the dialog- Parameters:
showEffect
-- Returns:
-
hideEffect
Effect to use when hiding the dialog- Parameters:
hideEffect
-- Returns:
-
position
Defines where the dialog should be displayed- Parameters:
position
-- Returns:
-
fitViewport
Dialog size might exceeed viewport if content is bigger than viewport in terms of height. fitViewport option automatically adjusts height to fit dialog within the viewport.- Parameters:
fitViewport
-- Returns:
-
responsive
In responsive mode, dialog adjusts itself based on screen width.- Parameters:
responsive
-- Returns:
-
focus
Defines which component to apply focus by search expression.- Parameters:
focus
-- Returns:
-
onShow
Client side callback to execute when dialog is displayed.- Parameters:
onShow
-- Returns:
-
onHide
Client side callback to execute when dialog is hidden.- Parameters:
onHide
-- Returns:
-
blockScroll
Whether to block scrolling of the document when dialog is modal.- Parameters:
blockScroll
-- Returns:
-
styleClass
One or more CSS classes for the dialog.- Parameters:
styleClass
-- Returns:
-
iframeStyleClass
One or more CSS classes for the iframe within the dialog.- Parameters:
iframeStyleClass
-- Returns:
-
resizeObserver
Use ResizeObserver to automatically adjust dialog-height after e.g. AJAX-updates. Resizeable must be set false to use this option.- Parameters:
resizeObserver
-- Returns:
-
resizeObserverCenter
Can be used together with resizeObserver = true. Centers the dialog again after it was resized to ensure the whole dialog is visible onscreen.- Parameters:
resizeObserverCenter
-- Returns:
-
build
-