org.rcfaces.core.component
Class MessageDialogComponent

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by javax.faces.component.UIOutput
              extended by javax.faces.component.UIInput
                  extended by org.rcfaces.core.internal.component.CameliaInputComponent
                      extended by org.rcfaces.core.component.MessageDialogComponent
All Implemented Interfaces:
EditableValueHolder, StateHolder, ValueHolder, IDialogPriorityCapability, IHeightCapability, IHiddenModeCapability, IImageCapability, IImmediateCapability, ILookAndFeelCapability, ISelectionEventCapability, ISizeCapability, IStyleClassCapability, ITextCapability, ITextDirectionCapability, IUserEventCapability, IValidationEventCapability, IVisibilityCapability, IWAIRoleCapability, IWidthCapability, org.rcfaces.core.internal.capability.IComponentLifeCycle, org.rcfaces.core.internal.capability.IConvertValueHolder, org.rcfaces.core.internal.capability.IImageAccessorsCapability, org.rcfaces.core.internal.capability.IRCFacesComponent, org.rcfaces.core.internal.capability.ISubmittedExternalValue, org.rcfaces.core.internal.manager.IContainerManager, org.rcfaces.core.internal.manager.ITransientAttributesManager

public class MessageDialogComponent
extends org.rcfaces.core.internal.component.CameliaInputComponent
implements IImageCapability, IStyleClassCapability, ITextCapability, ITextDirectionCapability, IVisibilityCapability, IDialogPriorityCapability, IImmediateCapability, IValidationEventCapability, ISizeCapability, IHiddenModeCapability, ILookAndFeelCapability, IWAIRoleCapability, ISelectionEventCapability, IUserEventCapability, org.rcfaces.core.internal.capability.IImageAccessorsCapability


Field Summary
protected static Set CAMELIA_ATTRIBUTES
           
static String COMPONENT_TYPE
           
 
Fields inherited from class org.rcfaces.core.internal.component.CameliaInputComponent
engine
 
Fields inherited from class javax.faces.component.UIInput
COMPONENT_FAMILY, CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID, UPDATE_MESSAGE_ID
 
Fields inherited from class javax.faces.component.UIComponent
bindings
 
Fields inherited from interface org.rcfaces.core.component.capability.ITextDirectionCapability
DEFAULT_TEXT_DIRECTION, LEFT_TO_RIGHT_TEXT_DIRECTION, RIGHT_LEFT_TEXT_DIRECTION
 
Fields inherited from interface org.rcfaces.core.component.capability.IDialogPriorityCapability
MAX_PRIORITY
 
Fields inherited from interface org.rcfaces.core.component.capability.IHiddenModeCapability
CLIENT_HIDDEN_MODE, DEFAULT_HIDDEN_MODE, IGNORE_HIDDEN_MODE, PHANTOM_HIDDEN_MODE, SERVER_HIDDEN_MODE
 
Constructor Summary
MessageDialogComponent()
           
MessageDialogComponent(String componentId)
           
 
Method Summary
 void addSelectionListener(ISelectionListener listener)
          Adds a listener to the component for the selection event
 void addUserEventListener(IUserEventListener listener)
          Adds a listener to the component for the user event
 void addValidationListener(IValidationListener listener)
          Adds a listener to the component for the validation event
 String getAriaLabel()
           
 String getAriaLabel(FacesContext facesContext)
          See getAriaLabel() for more details
 int getAriaLevel()
           
 int getAriaLevel(FacesContext facesContext)
          See getAriaLevel() for more details
protected  Set getCameliaFields()
           
 String getDefaultValue()
           
 String getDefaultValue(FacesContext facesContext)
           
 int getDialogPriority()
           
 int getDialogPriority(FacesContext facesContext)
          See getDialogPriority() for more details
 String getHeight()
          Returns a string value (as specified by CSS) for the height of the component.
 String getHeight(FacesContext facesContext)
          See getHeight() for more details
 int getHiddenMode()
          Returns the hidden mode in client side.
 int getHiddenMode(FacesContext facesContext)
          See getHiddenMode() for more details
 IContentAccessors getImageAccessors()
          Returns ImageAccessors associated to the url.
 IContentAccessors getImageAccessors(FacesContext facesContext)
           
 String getImageURL()
          Returns the URL of the image.
 String getImageURL(FacesContext facesContext)
          See getImageURL() for more details
 String getLookId()
          Returns a string value specifying the choosen look of the component.
 String getLookId(FacesContext facesContext)
          See getLookId() for more details
 String getStyleClass()
          Returns the style class of the component.
 String getStyleClass(FacesContext facesContext)
          See getStyleClass() for more details
 String getText()
          Returns a string value specifying the text shown.
 String getText(FacesContext facesContext)
          See getText() for more details
 int getTextDirection()
           
 int getTextDirection(FacesContext facesContext)
          See getTextDirection() for more details
 String getTitle()
          Returns a string value specifying the title for the document.
 String getTitle(FacesContext facesContext)
          Returns a string value specifying the title for the document.
 Boolean getVisibleState()
          Returns TRUE if the receiver is visible, FALSE if the receiver is specified "not visible", and null otherwise.
 Boolean getVisibleState(FacesContext facesContext)
           
 String getWaiRole()
           
 String getWaiRole(FacesContext facesContext)
          See getWaiRole() for more details
 String getWidth()
          Returns a string value (as specified by CSS) for the width of the component.
 String getWidth(FacesContext facesContext)
          See getWidth() for more details
 boolean isAriaLabelSetted()
          Returns true if the attribute "ariaLabel" is set.
 boolean isAriaLevelSetted()
          Returns true if the attribute "ariaLevel" is set.
 boolean isDefaultValueSetted()
          Returns true if the attribute "defaultValue" is set.
 boolean isDialogPrioritySetted()
          Returns true if the attribute "dialogPriority" is set.
 boolean isHeightSetted()
          Returns true if the attribute "height" is set.
 boolean isHiddenModeSetted()
          Returns true if the attribute "hiddenMode" is set.
 boolean isImageURLSetted()
          Returns true if the attribute "imageURL" is set.
 boolean isLookIdSetted()
          Returns true if the attribute "lookId" is set.
 boolean isStyleClassSetted()
          Returns true if the attribute "styleClass" is set.
 boolean isTextDirectionSetted()
          Returns true if the attribute "textDirection" is set.
 boolean isTextSetted()
          Returns true if the attribute "text" is set.
 boolean isTitleSetted()
          Returns true if the attribute "title" is set.
 boolean isVisible()
           
 boolean isVisible(FacesContext facesContext)
          See isVisible() for more details
 boolean isVisibleSetted()
          Returns true if the attribute "visible" is set.
 boolean isWaiRoleSetted()
          Returns true if the attribute "waiRole" is set.
 boolean isWidthSetted()
          Returns true if the attribute "width" is set.
 FacesListener[] listSelectionListeners()
          Returns a list of selection listener for the component
 FacesListener[] listUserEventListeners()
          Returns a list of user listener for the component
 FacesListener[] listValidationListeners()
          Returns a list of validation listener for the component
 void removeSelectionListener(ISelectionListener listener)
          Removes a listener from the component for the selection event
 void removeUserEventListener(IUserEventListener listener)
          Removes a listener from the component for the user event
 void removeValidationListener(IValidationListener listener)
          Removes a listener from the component for the validation event
 void setAriaLabel(String ariaLabel)
           
 void setAriaLevel(int ariaLevel)
           
 void setDefaultValue(String defaultValue)
           
 void setDialogPriority(int dialogPriority)
           
 void setHeight(String height)
          Sets a string value (as specified by CSS) for the height of the component.
 void setHiddenMode(int hiddenMode)
          Set the hidden mode in client side.
 void setHiddenMode(String hiddenMode)
           
 void setImageURL(String imageURL)
          Specify the URL of the image.
 void setLookId(String lookId)
          Sets a string value specifying the choosen look of the component.
 void setStyleClass(String styleClass)
          Specify the style class of the component.
 void setText(String text)
          Sets a string value specifying the text to be shown.
 void setTextDirection(int textDirection)
           
 void setTitle(String title)
          Sets a string value specifying the title for the document.
 void setVisible(boolean visible)
          Marks the receiver as visible if the argument is TRUE, and marks it invisible if argument is FALSE.
 void setWaiRole(String waiRole)
           
 void setWidth(String width)
          Sets a string value (as specified by CSS) for the width of the component.
 
Methods inherited from class org.rcfaces.core.internal.component.CameliaInputComponent
broadcast, clearListeners, confirmListenerAppend, constructPhase, constructTemplate, decodePhase, encodeBegin, encodeChildren, encodeEnd, getAsyncRenderer, getCameliaValueAlias, getChildren, getChildrenListState, getConvertedValue, getFamily, getLocalValue, getRendererType, getSubmittedExternalValue, getTransientAttribute, getValue, getValueExpression, hasDefaultProperties, initializeComponent, initializePhase, isClientRendered, isRendered, isSubmittedValueSetted, isTemplateComponent, processDecodes, processEngineUpdates, processEngineValidators, processUpdates, processValidators, queueEvent, renderPhase, restoreState, saveState, setConverter, setConverter, setDefaultProperties, setRendered, setSubmittedExternalValue, setTransientAttribute, setValueExpression, toString, updatePhase, validationPhase, verifyAsyncDecode
 
Methods inherited from class javax.faces.component.UIInput
addValidator, addValueChangeListener, compareValues, decode, getConverterMessage, getRequiredMessage, getSubmittedValue, getValidator, getValidatorMessage, getValidators, getValueChangeListener, getValueChangeListeners, isImmediate, isLocalValueSet, isRequired, isValid, removeValidator, removeValueChangeListener, resetValue, setConverterMessage, setImmediate, setLocalValueSet, setRequired, setRequiredMessage, setSubmittedValue, setValid, setValidator, setValidatorMessage, setValue, setValueChangeListener, updateModel, validate, validateValue
 
Methods inherited from class javax.faces.component.UIOutput
getConverter, setConverter
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, findComponent, getAttributes, getChildCount, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendersChildren, getValueBinding, invokeOnComponent, isTransient, processRestoreState, processSaveState, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getContainerClientId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.rcfaces.core.component.capability.IImmediateCapability
isImmediate, setImmediate
 
Methods inherited from interface org.rcfaces.core.internal.manager.IContainerManager
getChildCount
 
Methods inherited from interface javax.faces.component.ValueHolder
getConverter, setConverter, setValue
 

Field Detail

COMPONENT_TYPE

public static final String COMPONENT_TYPE
See Also:
Constant Field Values

CAMELIA_ATTRIBUTES

protected static final Set CAMELIA_ATTRIBUTES
Constructor Detail

MessageDialogComponent

public MessageDialogComponent()

MessageDialogComponent

public MessageDialogComponent(String componentId)
Method Detail

getImageAccessors

public IContentAccessors getImageAccessors(FacesContext facesContext)
Specified by:
getImageAccessors in interface org.rcfaces.core.internal.capability.IImageAccessorsCapability

setHiddenMode

public void setHiddenMode(String hiddenMode)

getVisibleState

public Boolean getVisibleState(FacesContext facesContext)

getImageURL

public String getImageURL()
Description copied from interface: IImageCapability
Returns the URL of the image.

Specified by:
getImageURL in interface IImageCapability

getImageURL

public String getImageURL(FacesContext facesContext)
See getImageURL() for more details


isImageURLSetted

public final boolean isImageURLSetted()
Returns true if the attribute "imageURL" is set.

Returns:
true if the attribute is set.

setImageURL

public void setImageURL(String imageURL)
Description copied from interface: IImageCapability
Specify the URL of the image.

Specified by:
setImageURL in interface IImageCapability

getImageAccessors

public IContentAccessors getImageAccessors()
Description copied from interface: IImageCapability
Returns ImageAccessors associated to the url. (or java.awt.Image binding)

Specified by:
getImageAccessors in interface IImageCapability
Returns:
IImageAccessors object.

getStyleClass

public String getStyleClass()
Description copied from interface: IStyleClassCapability
Returns the style class of the component.

Specified by:
getStyleClass in interface IStyleClassCapability
Returns:
style class

getStyleClass

public String getStyleClass(FacesContext facesContext)
See getStyleClass() for more details


isStyleClassSetted

public final boolean isStyleClassSetted()
Returns true if the attribute "styleClass" is set.

Returns:
true if the attribute is set.

setStyleClass

public void setStyleClass(String styleClass)
Description copied from interface: IStyleClassCapability
Specify the style class of the component.

Specified by:
setStyleClass in interface IStyleClassCapability
Parameters:
styleClass - style class

getText

public String getText()
Description copied from interface: ITextCapability
Returns a string value specifying the text shown.

Specified by:
getText in interface ITextCapability
Returns:
text

getText

public String getText(FacesContext facesContext)
See getText() for more details


isTextSetted

public final boolean isTextSetted()
Returns true if the attribute "text" is set.

Returns:
true if the attribute is set.

setText

public void setText(String text)
Description copied from interface: ITextCapability
Sets a string value specifying the text to be shown.

Specified by:
setText in interface ITextCapability
Parameters:
text - text

getTextDirection

public int getTextDirection()
Specified by:
getTextDirection in interface ITextDirectionCapability

getTextDirection

public int getTextDirection(FacesContext facesContext)
See getTextDirection() for more details


isTextDirectionSetted

public final boolean isTextDirectionSetted()
Returns true if the attribute "textDirection" is set.

Returns:
true if the attribute is set.

setTextDirection

public void setTextDirection(int textDirection)
Specified by:
setTextDirection in interface ITextDirectionCapability

isVisible

public boolean isVisible()
Specified by:
isVisible in interface IVisibilityCapability

isVisible

public boolean isVisible(FacesContext facesContext)
See isVisible() for more details


isVisibleSetted

public final boolean isVisibleSetted()
Returns true if the attribute "visible" is set.

Returns:
true if the attribute is set.

setVisible

public void setVisible(boolean visible)
Description copied from interface: IVisibilityCapability
Marks the receiver as visible if the argument is TRUE, and marks it invisible if argument is FALSE.
If one of the receiver's ancestors is not visible or some other condition makes the receiver not visible, marking it visible may not actually cause it to be displayed.

Specified by:
setVisible in interface IVisibilityCapability
Parameters:
visible - the new visibility state.

getVisibleState

public Boolean getVisibleState()
Description copied from interface: IVisibilityCapability
Returns TRUE if the receiver is visible, FALSE if the receiver is specified "not visible", and null otherwise.
If one of the receiver's ancestors is not visible or some other condition makes the receiver not visible, this method may still indicate that it is considered visible even though it may not actually be showing.

Specified by:
getVisibleState in interface IVisibilityCapability
Returns:
the receiver's visibility state

getDialogPriority

public int getDialogPriority()
Specified by:
getDialogPriority in interface IDialogPriorityCapability

getDialogPriority

public int getDialogPriority(FacesContext facesContext)
See getDialogPriority() for more details


isDialogPrioritySetted

public final boolean isDialogPrioritySetted()
Returns true if the attribute "dialogPriority" is set.

Returns:
true if the attribute is set.

setDialogPriority

public void setDialogPriority(int dialogPriority)
Specified by:
setDialogPriority in interface IDialogPriorityCapability

addValidationListener

public final void addValidationListener(IValidationListener listener)
Description copied from interface: IValidationEventCapability
Adds a listener to the component for the validation event

Specified by:
addValidationListener in interface IValidationEventCapability
Parameters:
listener - the validation listener to add

removeValidationListener

public final void removeValidationListener(IValidationListener listener)
Description copied from interface: IValidationEventCapability
Removes a listener from the component for the validation event

Specified by:
removeValidationListener in interface IValidationEventCapability
Parameters:
listener - the validation listener to remove

listValidationListeners

public final FacesListener[] listValidationListeners()
Description copied from interface: IValidationEventCapability
Returns a list of validation listener for the component

Specified by:
listValidationListeners in interface IValidationEventCapability
Returns:
validation listeners' list

getWidth

public String getWidth()
Description copied from interface: IWidthCapability
Returns a string value (as specified by CSS) for the width of the component.

Specified by:
getWidth in interface IWidthCapability
Returns:
width

getWidth

public String getWidth(FacesContext facesContext)
See getWidth() for more details


isWidthSetted

public final boolean isWidthSetted()
Returns true if the attribute "width" is set.

Returns:
true if the attribute is set.

setWidth

public void setWidth(String width)
Description copied from interface: IWidthCapability
Sets a string value (as specified by CSS) for the width of the component.

Specified by:
setWidth in interface IWidthCapability
Parameters:
width - width

getHeight

public String getHeight()
Description copied from interface: IHeightCapability
Returns a string value (as specified by CSS) for the height of the component.

Specified by:
getHeight in interface IHeightCapability
Returns:
height

getHeight

public String getHeight(FacesContext facesContext)
See getHeight() for more details


isHeightSetted

public final boolean isHeightSetted()
Returns true if the attribute "height" is set.

Returns:
true if the attribute is set.

setHeight

public void setHeight(String height)
Description copied from interface: IHeightCapability
Sets a string value (as specified by CSS) for the height of the component.

Specified by:
setHeight in interface IHeightCapability
Parameters:
height - height

getHiddenMode

public int getHiddenMode()
Description copied from interface: IHiddenModeCapability
Returns the hidden mode in client side.

Specified by:
getHiddenMode in interface IHiddenModeCapability
Returns:
hidden mode

getHiddenMode

public int getHiddenMode(FacesContext facesContext)
See getHiddenMode() for more details


isHiddenModeSetted

public final boolean isHiddenModeSetted()
Returns true if the attribute "hiddenMode" is set.

Returns:
true if the attribute is set.

setHiddenMode

public void setHiddenMode(int hiddenMode)
Description copied from interface: IHiddenModeCapability
Set the hidden mode in client side.

Specified by:
setHiddenMode in interface IHiddenModeCapability
Parameters:
hiddenMode - hidden mode

getLookId

public String getLookId()
Description copied from interface: ILookAndFeelCapability
Returns a string value specifying the choosen look of the component.

Specified by:
getLookId in interface ILookAndFeelCapability
Returns:
lookId

getLookId

public String getLookId(FacesContext facesContext)
See getLookId() for more details


isLookIdSetted

public final boolean isLookIdSetted()
Returns true if the attribute "lookId" is set.

Returns:
true if the attribute is set.

setLookId

public void setLookId(String lookId)
Description copied from interface: ILookAndFeelCapability
Sets a string value specifying the choosen look of the component.

Specified by:
setLookId in interface ILookAndFeelCapability
Parameters:
lookId - lookId

getAriaLabel

public String getAriaLabel()
Specified by:
getAriaLabel in interface IWAIRoleCapability

getAriaLabel

public String getAriaLabel(FacesContext facesContext)
See getAriaLabel() for more details


isAriaLabelSetted

public final boolean isAriaLabelSetted()
Returns true if the attribute "ariaLabel" is set.

Returns:
true if the attribute is set.

setAriaLabel

public void setAriaLabel(String ariaLabel)
Specified by:
setAriaLabel in interface IWAIRoleCapability

getAriaLevel

public int getAriaLevel()
Specified by:
getAriaLevel in interface IWAIRoleCapability

getAriaLevel

public int getAriaLevel(FacesContext facesContext)
See getAriaLevel() for more details


isAriaLevelSetted

public final boolean isAriaLevelSetted()
Returns true if the attribute "ariaLevel" is set.

Returns:
true if the attribute is set.

setAriaLevel

public void setAriaLevel(int ariaLevel)
Specified by:
setAriaLevel in interface IWAIRoleCapability

getWaiRole

public String getWaiRole()
Specified by:
getWaiRole in interface IWAIRoleCapability

getWaiRole

public String getWaiRole(FacesContext facesContext)
See getWaiRole() for more details


isWaiRoleSetted

public final boolean isWaiRoleSetted()
Returns true if the attribute "waiRole" is set.

Returns:
true if the attribute is set.

setWaiRole

public void setWaiRole(String waiRole)
Specified by:
setWaiRole in interface IWAIRoleCapability

addSelectionListener

public final void addSelectionListener(ISelectionListener listener)
Description copied from interface: ISelectionEventCapability
Adds a listener to the component for the selection event

Specified by:
addSelectionListener in interface ISelectionEventCapability
Parameters:
listener - the selection listener to add

removeSelectionListener

public final void removeSelectionListener(ISelectionListener listener)
Description copied from interface: ISelectionEventCapability
Removes a listener from the component for the selection event

Specified by:
removeSelectionListener in interface ISelectionEventCapability
Parameters:
listener - the selection listener to remove

listSelectionListeners

public final FacesListener[] listSelectionListeners()
Description copied from interface: ISelectionEventCapability
Returns a list of selection listener for the component

Specified by:
listSelectionListeners in interface ISelectionEventCapability
Returns:
selection listeners' list

addUserEventListener

public final void addUserEventListener(IUserEventListener listener)
Description copied from interface: IUserEventCapability
Adds a listener to the component for the user event

Specified by:
addUserEventListener in interface IUserEventCapability
Parameters:
listener - the user listener to add

removeUserEventListener

public final void removeUserEventListener(IUserEventListener listener)
Description copied from interface: IUserEventCapability
Removes a listener from the component for the user event

Specified by:
removeUserEventListener in interface IUserEventCapability
Parameters:
listener - the user listener to remove

listUserEventListeners

public final FacesListener[] listUserEventListeners()
Description copied from interface: IUserEventCapability
Returns a list of user listener for the component

Specified by:
listUserEventListeners in interface IUserEventCapability
Returns:
user listeners' list

getTitle

public String getTitle()
Returns a string value specifying the title for the document.

Returns:
title

getTitle

public String getTitle(FacesContext facesContext)
Returns a string value specifying the title for the document.

Returns:
title

setTitle

public void setTitle(String title)
Sets a string value specifying the title for the document.

Parameters:
title - title

isTitleSetted

public boolean isTitleSetted()
Returns true if the attribute "title" is set.

Returns:
true if the attribute is set.

getDefaultValue

public String getDefaultValue()

getDefaultValue

public String getDefaultValue(FacesContext facesContext)

setDefaultValue

public void setDefaultValue(String defaultValue)

isDefaultValueSetted

public boolean isDefaultValueSetted()
Returns true if the attribute "defaultValue" is set.

Returns:
true if the attribute is set.

getCameliaFields

protected Set getCameliaFields()
Overrides:
getCameliaFields in class org.rcfaces.core.internal.component.CameliaInputComponent


Copyright © 2006-2011 Vedana. All Rights Reserved.