|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UIMessage
org.rcfaces.core.internal.component.CameliaMessageComponent
org.rcfaces.core.component.AbstractMessageComponent
org.rcfaces.core.component.MessageComponent
public class MessageComponent
The message Component is a placeholder for error messages (only one is shown).
The message Component has the following capabilities :
The default message renderer is linked to the f_message javascript class. f_message extends f_component, fa_message1
Table of component style classes:
| Style Name | Description |
|---|---|
| f_message | Defines styles for the wrapper DIV element |
| f_message_summary | Defines styles for the summary error message |
| f_message_detail | Defines styles for the detail error message |
| Field Summary | |
|---|---|
protected static Set |
CAMELIA_ATTRIBUTES
|
static String |
COMPONENT_TYPE
|
| Fields inherited from class org.rcfaces.core.internal.component.CameliaMessageComponent |
|---|
engine |
| Fields inherited from class javax.faces.component.UIMessage |
|---|
COMPONENT_FAMILY |
| Fields inherited from class javax.faces.component.UIComponent |
|---|
bindings |
| 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 | |
|---|---|
MessageComponent()
|
|
MessageComponent(String componentId)
|
|
| Method Summary | |
|---|---|
protected Set |
getCameliaFields()
|
String |
getErrorImageURL()
Returns an url string pointing to the image used for an error message. |
String |
getErrorImageURL(FacesContext facesContext)
See getErrorImageURL() for more details |
String |
getErrorStyleClass()
Returns a space-separated list of CSS style class(es) to be applied for error messages. |
String |
getErrorStyleClass(FacesContext facesContext)
See getErrorStyleClass() for more details |
String |
getFatalImageURL()
Returns an url string pointing to the image used for an fatal message. |
String |
getFatalImageURL(FacesContext facesContext)
See getFatalImageURL() for more details |
String |
getFatalStyleClass()
Returns a space-separated list of CSS style class(es) to be applied for fatal messages. |
String |
getFatalStyleClass(FacesContext facesContext)
See getFatalStyleClass() for more details |
IContentAccessors |
getImageAccessors()
Returns ImageAccessors associated to the url. |
IContentAccessors |
getImageAccessors(FacesContext facesContext)
|
int |
getImageHeight()
Returns an int value specifying the height (in pixels) to use for the image shown. |
int |
getImageHeight(FacesContext facesContext)
See getImageHeight() for more details |
String |
getImageURL()
Returns the URL of the image. |
String |
getImageURL(FacesContext facesContext)
See getImageURL() for more details |
int |
getImageWidth()
Returns an int value specifying the width (in pixels) to use for the image shown. |
int |
getImageWidth(FacesContext facesContext)
See getImageWidth() for more details |
String |
getInfoImageURL()
Returns an url string pointing to the image used for an info message. |
String |
getInfoImageURL(FacesContext facesContext)
See getInfoImageURL() for more details |
String |
getInfoStyleClass()
Returns a space-separated list of CSS style class(es) to be applied for info messages. |
String |
getInfoStyleClass(FacesContext facesContext)
See getInfoStyleClass() for more details |
String |
getText()
Returns a string value specifying the text shown. |
String |
getText(FacesContext facesContext)
See getText() for more details |
String |
getWarnImageURL()
Returns an url string pointing to the image used for an warning message. |
String |
getWarnImageURL(FacesContext facesContext)
See getWarnImageURL() for more details |
String |
getWarnStyleClass()
Returns a space-separated list of CSS style class(es) to be applied for warning messages. |
String |
getWarnStyleClass(FacesContext facesContext)
See getWarnStyleClass() for more details |
boolean |
isErrorImageURLSetted()
Returns true if the attribute "errorImageURL" is set. |
boolean |
isErrorStyleClassSetted()
Returns true if the attribute "errorStyleClass" is set. |
boolean |
isFatalImageURLSetted()
Returns true if the attribute "fatalImageURL" is set. |
boolean |
isFatalStyleClassSetted()
Returns true if the attribute "fatalStyleClass" is set. |
boolean |
isImageHeightSetted()
Returns true if the attribute "imageHeight" is set. |
boolean |
isImageURLSetted()
Returns true if the attribute "imageURL" is set. |
boolean |
isImageWidthSetted()
Returns true if the attribute "imageWidth" is set. |
boolean |
isInfoImageURLSetted()
Returns true if the attribute "infoImageURL" is set. |
boolean |
isInfoStyleClassSetted()
Returns true if the attribute "infoStyleClass" is set. |
boolean |
isShowActiveComponentMessage()
|
boolean |
isShowActiveComponentMessage(FacesContext facesContext)
|
boolean |
isShowActiveComponentMessageSetted()
Returns true if the attribute "showActiveComponentMessage" is set. |
boolean |
isShowIfMessage()
|
boolean |
isShowIfMessage(FacesContext facesContext)
|
boolean |
isShowIfMessageSetted()
Returns true if the attribute "showIfMessage" is set. |
boolean |
isTextSetted()
Returns true if the attribute "text" is set. |
boolean |
isWarnImageURLSetted()
Returns true if the attribute "warnImageURL" is set. |
boolean |
isWarnStyleClassSetted()
Returns true if the attribute "warnStyleClass" is set. |
void |
setErrorImageURL(String errorImageURL)
Sets an url string pointing to the image used for an error message. |
void |
setErrorStyleClass(String errorStyleClass)
Sets a space-separated list of CSS style class(es) to be applied for error messages. |
void |
setFatalImageURL(String fatalImageURL)
Sets an url string pointing to the image used for an fatal message. |
void |
setFatalStyleClass(String fatalStyleClass)
Sets a space-separated list of CSS style class(es) to be applied for fatal messages. |
void |
setImageHeight(int imageHeight)
Sets an int value specifying the height (in pixels) to use for the image shown. |
void |
setImageURL(String imageURL)
Specify the URL of the image. |
void |
setImageWidth(int imageWidth)
Sets an int value specifying the width (in pixels) to use for the image shown. |
void |
setInfoImageURL(String infoImageURL)
Sets an url string pointing to the image used for an info message. |
void |
setInfoStyleClass(String infoStyleClass)
Sets a space-separated list of CSS style class(es) to be applied for info messages. |
void |
setShowActiveComponentMessage(boolean showActiveComponentMessage)
|
void |
setShowIfMessage(boolean showIfMessage)
|
void |
setText(String text)
Sets a string value specifying the text to be shown. |
void |
setWarnImageURL(String warnImageURL)
Sets an url string pointing to the image used for an warning message. |
void |
setWarnStyleClass(String warnStyleClass)
Sets a space-separated list of CSS style class(es) to be applied for warning messages. |
| Methods inherited from class org.rcfaces.core.internal.component.CameliaMessageComponent |
|---|
clearListeners, confirmListenerAppend, constructPhase, constructTemplate, decodePhase, encodeBegin, encodeChildren, encodeEnd, getAsyncRenderer, getCameliaValueAlias, getChildren, getChildrenListState, getFamily, getRendererType, getTransientAttribute, getValueExpression, hasDefaultProperties, initializeComponent, initializePhase, isClientRendered, isRendered, isTemplateComponent, processDecodes, processEngineUpdates, processEngineValidators, processUpdates, processValidators, queueEvent, renderPhase, restoreState, saveState, setDefaultProperties, setRendered, setTransientAttribute, setValueExpression, toString, updatePhase, validationPhase, verifyAsyncDecode |
| Methods inherited from class javax.faces.component.UIMessage |
|---|
getFor, isShowDetail, isShowSummary, setFor, setShowDetail, setShowSummary |
| Methods inherited from class javax.faces.component.UIComponentBase |
|---|
addFacesListener, broadcast, decode, 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.IStyleClassCapability |
|---|
getStyleClass, setStyleClass |
| Methods inherited from interface org.rcfaces.core.component.capability.IForCapability |
|---|
getFor, setFor |
| Methods inherited from interface org.rcfaces.core.internal.manager.IContainerManager |
|---|
getChildCount |
| Field Detail |
|---|
public static final String COMPONENT_TYPE
protected static final Set CAMELIA_ATTRIBUTES
| Constructor Detail |
|---|
public MessageComponent()
public MessageComponent(String componentId)
| Method Detail |
|---|
public IContentAccessors getImageAccessors(FacesContext facesContext)
getImageAccessors in interface org.rcfaces.core.internal.capability.IImageAccessorsCapabilitypublic int getImageHeight()
IImageSizeCapability
getImageHeight in interface IImageSizeCapabilitypublic int getImageHeight(FacesContext facesContext)
getImageHeight() for more details
public final boolean isImageHeightSetted()
true if the attribute "imageHeight" is set.
true if the attribute is set.public void setImageHeight(int imageHeight)
IImageSizeCapability
setImageHeight in interface IImageSizeCapabilityimageHeight - image height in pixelspublic int getImageWidth()
IImageSizeCapability
getImageWidth in interface IImageSizeCapabilitypublic int getImageWidth(FacesContext facesContext)
getImageWidth() for more details
public final boolean isImageWidthSetted()
true if the attribute "imageWidth" is set.
true if the attribute is set.public void setImageWidth(int imageWidth)
IImageSizeCapability
setImageWidth in interface IImageSizeCapabilityimageWidth - image width in pixelspublic String getText()
ITextCapability
getText in interface ITextCapabilitypublic String getText(FacesContext facesContext)
getText() for more details
public final boolean isTextSetted()
true if the attribute "text" is set.
true if the attribute is set.public void setText(String text)
ITextCapability
setText in interface ITextCapabilitytext - textpublic String getErrorStyleClass()
ISeverityStyleClassCapability
getErrorStyleClass in interface ISeverityStyleClassCapabilitypublic String getErrorStyleClass(FacesContext facesContext)
getErrorStyleClass() for more details
public final boolean isErrorStyleClassSetted()
true if the attribute "errorStyleClass" is set.
true if the attribute is set.public void setErrorStyleClass(String errorStyleClass)
ISeverityStyleClassCapability
setErrorStyleClass in interface ISeverityStyleClassCapabilityerrorStyleClass - list of CSS style classespublic String getFatalStyleClass()
ISeverityStyleClassCapability
getFatalStyleClass in interface ISeverityStyleClassCapabilitypublic String getFatalStyleClass(FacesContext facesContext)
getFatalStyleClass() for more details
public final boolean isFatalStyleClassSetted()
true if the attribute "fatalStyleClass" is set.
true if the attribute is set.public void setFatalStyleClass(String fatalStyleClass)
ISeverityStyleClassCapability
setFatalStyleClass in interface ISeverityStyleClassCapabilityfatalStyleClass - list of CSS style classespublic String getInfoStyleClass()
ISeverityStyleClassCapability
getInfoStyleClass in interface ISeverityStyleClassCapabilitypublic String getInfoStyleClass(FacesContext facesContext)
getInfoStyleClass() for more details
public final boolean isInfoStyleClassSetted()
true if the attribute "infoStyleClass" is set.
true if the attribute is set.public void setInfoStyleClass(String infoStyleClass)
ISeverityStyleClassCapability
setInfoStyleClass in interface ISeverityStyleClassCapabilityinfoStyleClass - list of CSS style classespublic String getWarnStyleClass()
ISeverityStyleClassCapability
getWarnStyleClass in interface ISeverityStyleClassCapabilitypublic String getWarnStyleClass(FacesContext facesContext)
getWarnStyleClass() for more details
public final boolean isWarnStyleClassSetted()
true if the attribute "warnStyleClass" is set.
true if the attribute is set.public void setWarnStyleClass(String warnStyleClass)
ISeverityStyleClassCapability
setWarnStyleClass in interface ISeverityStyleClassCapabilitywarnStyleClass - list of CSS style classespublic String getErrorImageURL()
ISeverityImagesCapability
getErrorImageURL in interface ISeverityImagesCapabilitypublic String getErrorImageURL(FacesContext facesContext)
getErrorImageURL() for more details
public final boolean isErrorImageURLSetted()
true if the attribute "errorImageURL" is set.
true if the attribute is set.public void setErrorImageURL(String errorImageURL)
ISeverityImagesCapability
setErrorImageURL in interface ISeverityImagesCapabilityerrorImageURL - urlpublic String getFatalImageURL()
ISeverityImagesCapability
getFatalImageURL in interface ISeverityImagesCapabilitypublic String getFatalImageURL(FacesContext facesContext)
getFatalImageURL() for more details
public final boolean isFatalImageURLSetted()
true if the attribute "fatalImageURL" is set.
true if the attribute is set.public void setFatalImageURL(String fatalImageURL)
ISeverityImagesCapability
setFatalImageURL in interface ISeverityImagesCapabilityfatalImageURL - urlpublic String getInfoImageURL()
ISeverityImagesCapability
getInfoImageURL in interface ISeverityImagesCapabilitypublic String getInfoImageURL(FacesContext facesContext)
getInfoImageURL() for more details
public final boolean isInfoImageURLSetted()
true if the attribute "infoImageURL" is set.
true if the attribute is set.public void setInfoImageURL(String infoImageURL)
ISeverityImagesCapability
setInfoImageURL in interface ISeverityImagesCapabilityinfoImageURL - urlpublic String getWarnImageURL()
ISeverityImagesCapability
getWarnImageURL in interface ISeverityImagesCapabilitypublic String getWarnImageURL(FacesContext facesContext)
getWarnImageURL() for more details
public final boolean isWarnImageURLSetted()
true if the attribute "warnImageURL" is set.
true if the attribute is set.public void setWarnImageURL(String warnImageURL)
ISeverityImagesCapability
setWarnImageURL in interface ISeverityImagesCapabilitywarnImageURL - urlpublic String getImageURL()
IImageCapability
getImageURL in interface IImageCapabilitypublic String getImageURL(FacesContext facesContext)
getImageURL() for more details
public final boolean isImageURLSetted()
true if the attribute "imageURL" is set.
true if the attribute is set.public void setImageURL(String imageURL)
IImageCapability
setImageURL in interface IImageCapabilitypublic IContentAccessors getImageAccessors()
IImageCapability
getImageAccessors in interface IImageCapabilitypublic boolean isShowIfMessage()
public boolean isShowIfMessage(FacesContext facesContext)
public void setShowIfMessage(boolean showIfMessage)
public boolean isShowIfMessageSetted()
true if the attribute "showIfMessage" is set.
true if the attribute is set.public boolean isShowActiveComponentMessage()
public boolean isShowActiveComponentMessage(FacesContext facesContext)
public void setShowActiveComponentMessage(boolean showActiveComponentMessage)
public boolean isShowActiveComponentMessageSetted()
true if the attribute "showActiveComponentMessage" is set.
true if the attribute is set.protected Set getCameliaFields()
getCameliaFields in class AbstractMessageComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||