public abstract class DialogBase extends javax.faces.component.UIPanel implements IDialog, IceClientBehaviorHolder
For more information, see the Dialog Wiki Documentation.
| Modifier and Type | Class and Description |
|---|---|
protected static class |
DialogBase.PropertyKeys |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COMPONENT_TYPE |
static java.lang.String |
RENDERER_TYPE |
| Constructor and Description |
|---|
DialogBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
addClientBehavior(java.lang.String eventName,
javax.faces.component.behavior.ClientBehavior behavior) |
java.lang.String |
getDefaultEventName() |
java.lang.String |
getDefaultExecute(java.lang.String event) |
java.lang.String |
getDefaultRender(java.lang.String event) |
java.lang.String |
getDialogPosition()
Return the value of the
dialogPosition property. |
java.lang.String |
getDragHandle()
Return the value of the
dragHandle property. |
java.util.Collection<java.lang.String> |
getEventNames() |
java.lang.String |
getFamily() |
java.lang.String |
getHeader()
Return the value of the
header property. |
int |
getHeight()
Return the value of the
height property. |
java.lang.String |
getHideEffect()
Return the value of the
hideEffect property. |
java.lang.String |
getListenerArgument(java.lang.String event) |
int |
getMinHeight()
Return the value of the
minHeight property. |
int |
getMinWidth()
Return the value of the
minWidth property. |
java.lang.String |
getOnHide()
Return the value of the
onHide property. |
java.lang.String |
getOnShow()
Return the value of the
onShow property. |
java.lang.String |
getPosition()
Return the value of the
position property. |
java.lang.String |
getRelativePosition()
Return the value of the
relativePosition property. |
java.lang.String |
getRelativeTo()
Return the value of the
relativeTo property. |
java.lang.String |
getSetFocus()
Return the value of the
setFocus property. |
java.lang.String |
getShowEffect()
Return the value of the
showEffect property. |
java.lang.String |
getStyle()
Return the value of the
style property. |
java.lang.String |
getStyleClass()
Return the value of the
styleClass property. |
int |
getWidth()
Return the value of the
width property. |
int |
getZindex()
Return the value of the
zindex property. |
boolean |
isClosable()
Return the value of the
closable property. |
boolean |
isCloseOnEscape()
Return the value of the
closeOnEscape property. |
boolean |
isDraggable()
Return the value of the
draggable property. |
boolean |
isMaximizableRestorable()
Return the value of the
maximizableRestorable property. |
boolean |
isModal()
Return the value of the
modal property. |
protected boolean |
isPropertySet(java.lang.String finder) |
boolean |
isResizable()
Return the value of the
resizable property. |
boolean |
isShowHeader()
Return the value of the
showHeader property. |
boolean |
isVisible()
Return the value of the
visible property. |
void |
setClosable(boolean closable)
Set the value of the
closable property. |
void |
setCloseOnEscape(boolean closeOnEscape)
Set the value of the
closeOnEscape property. |
void |
setDialogPosition(java.lang.String dialogPosition)
Set the value of the
dialogPosition property. |
void |
setDraggable(boolean draggable)
Set the value of the
draggable property. |
void |
setDragHandle(java.lang.String dragHandle)
Set the value of the
dragHandle property. |
void |
setHeader(java.lang.String header)
Set the value of the
header property. |
void |
setHeight(int height)
Set the value of the
height property. |
void |
setHideEffect(java.lang.String hideEffect)
Set the value of the
hideEffect property. |
void |
setMaximizableRestorable(boolean maximizableRestorable)
Set the value of the
maximizableRestorable property. |
void |
setMinHeight(int minHeight)
Set the value of the
minHeight property. |
void |
setMinWidth(int minWidth)
Set the value of the
minWidth property. |
void |
setModal(boolean modal)
Set the value of the
modal property. |
void |
setOnHide(java.lang.String onHide)
Set the value of the
onHide property. |
void |
setOnShow(java.lang.String onShow)
Set the value of the
onShow property. |
void |
setPosition(java.lang.String position)
Set the value of the
position property. |
void |
setRelativePosition(java.lang.String relativePosition)
Set the value of the
relativePosition property. |
void |
setRelativeTo(java.lang.String relativeTo)
Set the value of the
relativeTo property. |
void |
setResizable(boolean resizable)
Set the value of the
resizable property. |
void |
setSetFocus(java.lang.String setFocus)
Set the value of the
setFocus property. |
void |
setShowEffect(java.lang.String showEffect)
Set the value of the
showEffect property. |
void |
setShowHeader(boolean showHeader)
Set the value of the
showHeader property. |
void |
setStyle(java.lang.String style)
Set the value of the
style property. |
void |
setStyleClass(java.lang.String styleClass)
Set the value of the
styleClass property. |
void |
setValueExpression(java.lang.String name,
javax.el.ValueExpression binding) |
void |
setVisible(boolean visible)
Set the value of the
visible property. |
void |
setWidth(int width)
Set the value of the
width property. |
void |
setZindex(int zindex)
Set the value of the
zindex property. |
addFacesListener, broadcast, clearInitialState, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEventencodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, visitTreepublic static final java.lang.String COMPONENT_TYPE
public static final java.lang.String RENDERER_TYPE
public java.lang.String getFamily()
getFamily in class javax.faces.component.UIPanelpublic void setClosable(boolean closable)
Set the value of the closable property.
Contents: Boolean value that specifies whether the dialog should have a close button in the header.
setClosable in interface IDialogpublic boolean isClosable()
Return the value of the closable property.
Contents: Boolean value that specifies whether the dialog should have a close button in the header. Default = 'true'.
isClosable in interface IDialogpublic void setCloseOnEscape(boolean closeOnEscape)
Set the value of the closeOnEscape property.
Contents: Boolean value that Specifies whether the dialog should close when it has focus and the user presses the escape (ESC) key.
setCloseOnEscape in interface IDialogpublic boolean isCloseOnEscape()
Return the value of the closeOnEscape property.
Contents: Boolean value that Specifies whether the dialog should close when it has focus and the user presses the escape (ESC) key. Default = 'true'.
isCloseOnEscape in interface IDialogpublic void setDialogPosition(java.lang.String dialogPosition)
Set the value of the dialogPosition property.
Contents: The side of the dialog to position in relation to the target component. The format is "
setDialogPosition in interface IDialogpublic java.lang.String getDialogPosition()
Return the value of the dialogPosition property.
Contents: The side of the dialog to position in relation to the target component. The format is "
getDialogPosition in interface IDialogpublic void setDragHandle(java.lang.String dragHandle)
Set the value of the dragHandle property.
Contents: Specifies the jQuery selector(s) of the elements inside the dialog container that will be used as the drag handle(s). If this attribute isn't specified, any point of the dialog container can initiate the dragging action. The selectors are relative to the dialog's root element. When using multiple selectors, separate them by commas.
setDragHandle in interface IDialogpublic java.lang.String getDragHandle()
Return the value of the dragHandle property.
Contents: Specifies the jQuery selector(s) of the elements inside the dialog container that will be used as the drag handle(s). If this attribute isn't specified, any point of the dialog container can initiate the dragging action. The selectors are relative to the dialog's root element. When using multiple selectors, separate them by commas.
getDragHandle in interface IDialogpublic void setDraggable(boolean draggable)
Set the value of the draggable property.
Contents: Boolean value whether to allow the user to drag the Panel using its header
setDraggable in interface IDialogpublic boolean isDraggable()
Return the value of the draggable property.
Contents: Boolean value whether to allow the user to drag the Panel using its header Default = 'true'.
isDraggable in interface IDialogpublic void setHeader(java.lang.String header)
Set the value of the header property.
Contents: Header text
public java.lang.String getHeader()
Return the value of the header property.
Contents: Header text
public void setHeight(int height)
Set the value of the height property.
Contents: Height of the element in pixels. Default (not specified or value <= 0) is auto. If auto, resizable should be false, or resizing may hehave erratically. If auto, IE7 may not size or position properly.
public int getHeight()
Return the value of the height property.
Contents: Height of the element in pixels. Default (not specified or value <= 0) is auto. If auto, resizable should be false, or resizing may hehave erratically. If auto, IE7 may not size or position properly. Default = 'Integer.MIN_VALUE'.
public void setHideEffect(java.lang.String hideEffect)
Set the value of the hideEffect property.
Contents: Effect to use when hiding the dialog. Possible values are 'blind', 'clip', 'drop', 'explode, 'fade', 'fold', 'puff', 'slide', 'scale', 'bounce', 'highlight', and 'shake' (Some effects are not supported in IE browsers, see wiki page for more information).
setHideEffect in interface IDialogpublic java.lang.String getHideEffect()
Return the value of the hideEffect property.
Contents: Effect to use when hiding the dialog. Possible values are 'blind', 'clip', 'drop', 'explode, 'fade', 'fold', 'puff', 'slide', 'scale', 'bounce', 'highlight', and 'shake' (Some effects are not supported in IE browsers, see wiki page for more information).
getHideEffect in interface IDialogpublic void setMaximizableRestorable(boolean maximizableRestorable)
Set the value of the maximizableRestorable property.
Contents: Boolean value that specifies whether the dialog should have maximize and restore buttons in the header. The maximize button expands the dialog to take 95% of the viewport and changes the CSS position value of the dialog to fixed. The restore button changes the current position and dimensions of the dialog to those it had at the moment it was shown.
setMaximizableRestorable in interface IDialogpublic boolean isMaximizableRestorable()
Return the value of the maximizableRestorable property.
Contents: Boolean value that specifies whether the dialog should have maximize and restore buttons in the header. The maximize button expands the dialog to take 95% of the viewport and changes the CSS position value of the dialog to fixed. The restore button changes the current position and dimensions of the dialog to those it had at the moment it was shown. Default = 'false'.
isMaximizableRestorable in interface IDialogpublic void setMinHeight(int minHeight)
Set the value of the minHeight property.
Contents: Minimum height of resizable dialog
setMinHeight in interface IDialogpublic int getMinHeight()
Return the value of the minHeight property.
Contents: Minimum height of resizable dialog Default = '0'.
getMinHeight in interface IDialogpublic void setMinWidth(int minWidth)
Set the value of the minWidth property.
Contents: Minimum width of a resizable dialog
setMinWidth in interface IDialogpublic int getMinWidth()
Return the value of the minWidth property.
Contents: Minimum width of a resizable dialog Default = '150'.
getMinWidth in interface IDialogpublic void setModal(boolean modal)
Set the value of the modal property.
Contents: Boolean value that specifies whether the document should be shielded with a partially transparent mask to require the user to close the Panel before being able to activate any elements in the document
public boolean isModal()
Return the value of the modal property.
Contents: Boolean value that specifies whether the document should be shielded with a partially transparent mask to require the user to close the Panel before being able to activate any elements in the document Default = 'false'.
public void setOnHide(java.lang.String onHide)
Set the value of the onHide property.
Contents: Javascript code to be executed when hiding the dialog
public java.lang.String getOnHide()
Return the value of the onHide property.
Contents: Javascript code to be executed when hiding the dialog
public void setOnShow(java.lang.String onShow)
Set the value of the onShow property.
Contents: Javascript code to be executed when showing the dialog
public java.lang.String getOnShow()
Return the value of the onShow property.
Contents: Javascript code to be executed when showing the dialog
public void setPosition(java.lang.String position)
Set the value of the position property.
Contents: Specifies where the dialog should be displayed relative to the viewport. Possible values: 1) a single string representing position within viewport: 'center', 'left', 'right', 'top', 'bottom'. 2) an array containing an x,y coordinate pair in pixel offset from left, top corner of viewport (e.g. [350,100]) 3) an array containing x,y position string values (e.g. ['right','top'] for top right corner).
setPosition in interface IDialogpublic java.lang.String getPosition()
Return the value of the position property.
Contents: Specifies where the dialog should be displayed relative to the viewport. Possible values: 1) a single string representing position within viewport: 'center', 'left', 'right', 'top', 'bottom'. 2) an array containing an x,y coordinate pair in pixel offset from left, top corner of viewport (e.g. [350,100]) 3) an array containing x,y position string values (e.g. ['right','top'] for top right corner).
getPosition in interface IDialogpublic void setRelativePosition(java.lang.String relativePosition)
Set the value of the relativePosition property.
Contents: The side of the target component to position the dialog against. The format is "
setRelativePosition in interface IDialogpublic java.lang.String getRelativePosition()
Return the value of the relativePosition property.
Contents: The side of the target component to position the dialog against. The format is "
getRelativePosition in interface IDialogpublic void setRelativeTo(java.lang.String relativeTo)
Set the value of the relativeTo property.
Contents: Id of the component to position the dialog against. Setting this id will override the 'position' attribute, using 'dialogPosition' and 'relativePosition' instead.
setRelativeTo in interface IDialogpublic java.lang.String getRelativeTo()
Return the value of the relativeTo property.
Contents: Id of the component to position the dialog against. Setting this id will override the 'position' attribute, using 'dialogPosition' and 'relativePosition' instead.
getRelativeTo in interface IDialogpublic void setResizable(boolean resizable)
Set the value of the resizable property.
Contents: Makes the dialog resizable. Should be false if width or height is auto, or resizing may hehave erratically.
setResizable in interface IDialogpublic boolean isResizable()
Return the value of the resizable property.
Contents: Makes the dialog resizable. Should be false if width or height is auto, or resizing may hehave erratically. Default = 'true'.
isResizable in interface IDialogpublic void setSetFocus(java.lang.String setFocus)
Set the value of the setFocus property.
Contents: Specifies the ID of the component that should receive focus when the dialog is opened.
setSetFocus in interface IDialogpublic java.lang.String getSetFocus()
Return the value of the setFocus property.
Contents: Specifies the ID of the component that should receive focus when the dialog is opened.
getSetFocus in interface IDialogpublic void setShowEffect(java.lang.String showEffect)
Set the value of the showEffect property.
Contents: Effect to use when showing the dialog. Possible values are 'blind', 'clip', 'drop', 'explode, 'fade', 'fold', 'puff', 'slide', 'scale', 'bounce', 'highlight', 'pulsate', and 'shake' (Some effects are not supported in IE7, see wiki page for more information).
setShowEffect in interface IDialogpublic java.lang.String getShowEffect()
Return the value of the showEffect property.
Contents: Effect to use when showing the dialog. Possible values are 'blind', 'clip', 'drop', 'explode, 'fade', 'fold', 'puff', 'slide', 'scale', 'bounce', 'highlight', 'pulsate', and 'shake' (Some effects are not supported in IE7, see wiki page for more information).
getShowEffect in interface IDialogpublic void setShowHeader(boolean showHeader)
Set the value of the showHeader property.
Contents: Boolean value that specifies whether the dialog should have a header (default true)
setShowHeader in interface IDialogpublic boolean isShowHeader()
Return the value of the showHeader property.
Contents: Boolean value that specifies whether the dialog should have a header (default true) Default = 'true'.
isShowHeader in interface IDialogpublic void setStyle(java.lang.String style)
Set the value of the style property.
Contents: Style to apply to the container element.
public java.lang.String getStyle()
Return the value of the style property.
Contents: Style to apply to the container element.
public void setStyleClass(java.lang.String styleClass)
Set the value of the styleClass property.
Contents: Style class of the main container of dialog
setStyleClass in interface IDialogpublic java.lang.String getStyleClass()
Return the value of the styleClass property.
Contents: Style class of the main container of dialog
getStyleClass in interface IDialogpublic void setVisible(boolean visible)
Set the value of the visible property.
Contents: visible can be used to toggle visibility on the server, rendered should not be used that way, setting rendered=false on a visible modal dialog will not remove the modality layer, visible=false must be set first (or client-side JS function called)
setVisible in interface IDialogpublic boolean isVisible()
Return the value of the visible property.
Contents: visible can be used to toggle visibility on the server, rendered should not be used that way, setting rendered=false on a visible modal dialog will not remove the modality layer, visible=false must be set first (or client-side JS function called) Default = 'false'.
public void setWidth(int width)
Set the value of the width property.
Contents: Width of the element in pixels. Default (not specified or value <= 0) is auto. If auto, resizable should be false, or resizing may hehave erratically. If auto, IE7 may not size or position properly.
public int getWidth()
Return the value of the width property.
Contents: Width of the element in pixels. Default (not specified or value <= 0) is auto. If auto, resizable should be false, or resizing may hehave erratically. If auto, IE7 may not size or position properly. Default = 'Integer.MIN_VALUE'.
public void setZindex(int zindex)
Set the value of the zindex property.
Contents: zindex property to control overlapping with other elements
public int getZindex()
Return the value of the zindex property.
Contents: zindex property to control overlapping with other elements Default = '1000'.
protected boolean isPropertySet(java.lang.String finder)
public void setValueExpression(java.lang.String name,
javax.el.ValueExpression binding)
setValueExpression in class javax.faces.component.UIComponentpublic java.util.Collection<java.lang.String> getEventNames()
getEventNames in interface javax.faces.component.behavior.ClientBehaviorHoldergetEventNames in class javax.faces.component.UIComponentBasepublic java.lang.String getDefaultEventName()
getDefaultEventName in interface javax.faces.component.behavior.ClientBehaviorHoldergetDefaultEventName in class javax.faces.component.UIComponentBasepublic java.lang.String getDefaultRender(java.lang.String event)
getDefaultRender in interface IceClientBehaviorHolderpublic java.lang.String getDefaultExecute(java.lang.String event)
getDefaultExecute in interface IceClientBehaviorHolderpublic java.lang.String getListenerArgument(java.lang.String event)
getListenerArgument in interface IceClientBehaviorHolderpublic void addClientBehavior(java.lang.String eventName,
javax.faces.component.behavior.ClientBehavior behavior)
addClientBehavior in interface javax.faces.component.behavior.ClientBehaviorHolderaddClientBehavior in class javax.faces.component.UIComponentBaseCopyright 2017 ICEsoft Technologies Canada Corp., All Rights Reserved.