public class MessageComponent
extends javax.faces.component.UIOutput
Custom component that replaces the Struts
<html:message>
tag.
Constructor and Description |
---|
MessageComponent()
Create a new
MessageComponent with default properties. |
Modifier and Type | Method and Description |
---|---|
String |
getBundle()
Return the MessageResources key.
|
String |
getFamily()
Return the component family to which this component belongs.
|
String |
getKey()
Return the message key.
|
String |
getStyle()
Return the CSS style(s) to be rendered for this component.
|
String |
getStyleClass()
Return the CSS style class(es) to be rendered for this component.
|
boolean |
isFilter()
Return a flag indicating whether filtering should take place.
|
void |
restoreState(javax.faces.context.FacesContext context,
Object state)
Restore the state of this component.
|
Object |
saveState(javax.faces.context.FacesContext context)
Save the state of this component.
|
void |
setBundle(String bundle)
Set the MessageResources key.
|
void |
setFilter(boolean filter)
Set the flag indicating that the output value should be filtered.
|
void |
setKey(String key)
Set the message key.
|
void |
setStyle(String style)
Set the CSS style(s) to be rendered for this component.
|
void |
setStyleClass(String styleClass)
Set the CSS style class(es) to be rendered for this component.
|
clearInitialState, getConverter, getLocalValue, getValue, markInitialState, setConverter, setValue
addClientBehavior, addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEvent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, visitTree
public MessageComponent()
Create a new MessageComponent
with default properties.
public String getBundle()
Return the MessageResources key.
public void setBundle(String bundle)
Set the MessageResources key.
bundle
- The new keypublic String getFamily()
Return the component family to which this component belongs.
getFamily
in class javax.faces.component.UIOutput
public boolean isFilter()
Return a flag indicating whether filtering should take place.
public void setFilter(boolean filter)
Set the flag indicating that the output value should be filtered.
filter
- The new filter flagpublic String getKey()
Return the message key.
public void setKey(String key)
Set the message key.
key
- The new keypublic String getStyle()
Return the CSS style(s) to be rendered for this component.
public void setStyle(String style)
Set the CSS style(s) to be rendered for this component.
style
- The new CSS style(s)public String getStyleClass()
Return the CSS style class(es) to be rendered for this component.
public void setStyleClass(String styleClass)
Set the CSS style class(es) to be rendered for this component.
styleClass
- The new CSS style class(es)public void restoreState(javax.faces.context.FacesContext context, Object state)
Restore the state of this component.
restoreState
in interface javax.faces.component.StateHolder
restoreState
in class javax.faces.component.UIOutput
context
- FacesContext
for the current requeststate
- State object from which to restore our statepublic Object saveState(javax.faces.context.FacesContext context)
Save the state of this component.
saveState
in interface javax.faces.component.StateHolder
saveState
in class javax.faces.component.UIOutput
context
- FacesContext
for the current requestCopyright © 2000–2016 Apache Software Foundation. All rights reserved.