|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.render.Renderer
com.sun.rave.web.ui.renderer.AbstractRenderer
com.sun.rave.web.ui.renderer.AlertRenderer
public class AlertRenderer
Renderer for an Alert
component.
Field Summary | |
---|---|
static java.lang.String |
ALERT_TYPE_DEFAULT
The default error type - if none is specified. |
static java.lang.String |
ALERT_TYPE_ERROR
The different types or categories of an alert. |
static java.lang.String |
ALERT_TYPE_INFO
|
static java.lang.String |
ALERT_TYPE_SUCCESS
|
static java.lang.String |
ALERT_TYPE_WARN
|
Fields inherited from class com.sun.rave.web.ui.renderer.AbstractRenderer |
---|
BUNDLE, EVENTS_ATTRIBUTES, I18N_ATTRIBUTES |
Constructor Summary | |
---|---|
AlertRenderer()
Creates a new instance of AlertRenderer |
Method Summary | |
---|---|
void |
encodeChildren(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Render the children of the specified UIComponent
to the output stream or writer associated with the response we are
creating. |
boolean |
getRendersChildren()
|
protected void |
renderAlertDetailArea(javax.faces.context.FacesContext context,
Alert alert,
Theme theme,
javax.faces.context.ResponseWriter writer)
Renders the optional detail message of the inline alert. |
protected void |
renderAlertIcon(javax.faces.context.FacesContext context,
Alert alert,
java.lang.String type,
Theme theme,
javax.faces.context.ResponseWriter writer)
Renders the icon associated with an inline alert message. |
protected void |
renderAlertLink(javax.faces.context.FacesContext context,
Alert alert,
Theme theme,
javax.faces.context.ResponseWriter writer)
Renders the optional link at the end of the alert. |
protected void |
renderAlertSummaryText(Alert alert,
javax.faces.context.ResponseWriter writer)
Renders the summary message of the inline alert. |
protected void |
renderClosingTags(javax.faces.context.ResponseWriter writer)
Renders the optional detail message of the inline alert. |
protected void |
renderEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
javax.faces.context.ResponseWriter writer)
Renders the inline alert component. |
protected void |
renderOpeningTable(javax.faces.context.FacesContext context,
Alert alert,
Theme theme,
javax.faces.context.ResponseWriter writer)
Renders the attributes for the outer table containing the inline alert. |
protected void |
renderOuterDiv(javax.faces.context.FacesContext context,
Alert alert,
javax.faces.context.ResponseWriter writer)
Renders the outer div which contains the alert. |
Methods inherited from class com.sun.rave.web.ui.renderer.AbstractRenderer |
---|
addBooleanAttributes, addCoreAttributes, addIntegerAttributes, addStringAttributes, decode, encodeBegin, encodeEnd, getApplication, getAsObject, getAsString, getExternalContext, getFacesContext, getSubmittedValue, isDisabled, isPortlet, isReadOnly, renderAttributes, renderMarkup, renderStart, setSubmittedValue |
Methods inherited from class javax.faces.render.Renderer |
---|
convertClientId, getConvertedValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ALERT_TYPE_ERROR
The different types or categories of an alert.
public static final java.lang.String ALERT_TYPE_WARN
public static final java.lang.String ALERT_TYPE_INFO
public static final java.lang.String ALERT_TYPE_SUCCESS
public static final java.lang.String ALERT_TYPE_DEFAULT
The default error type - if none is specified.
Constructor Detail |
---|
public AlertRenderer()
Method Detail |
---|
public boolean getRendersChildren()
getRendersChildren
in class javax.faces.render.Renderer
public void encodeChildren(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws java.io.IOException
AbstractRenderer
Render the children of the specified UIComponent
to the output stream or writer associated with the response we are
creating.
The default implementation iterates through the children of this component and renders them.
encodeChildren
in class AbstractRenderer
context
- FacesContext
for the current requestcomponent
- UIComponent
to be decoded
java.io.IOException
- if an input/output error occursprotected void renderOuterDiv(javax.faces.context.FacesContext context, Alert alert, javax.faces.context.ResponseWriter writer) throws java.io.IOException
context
- The current FacesContextalert
- The Alert object to usewriter
- The current ResponseWriter
java.io.IOException
- if an input/output error occursprotected void renderOpeningTable(javax.faces.context.FacesContext context, Alert alert, Theme theme, javax.faces.context.ResponseWriter writer) throws java.io.IOException
context
- The current FacesContextalert
- The Alert object to usetheme
- The Theme to usewriter
- The current ResponseWriter
java.io.IOException
- if an input/output error occursprotected void renderAlertIcon(javax.faces.context.FacesContext context, Alert alert, java.lang.String type, Theme theme, javax.faces.context.ResponseWriter writer) throws java.io.IOException
context
- The current FacesContextalert
- The Alert object to usetheme
- The theme to usetype
- The type of alert. Default is ALERT_TYPE_ERROR.writer
- The current ResponseWriter
java.io.IOException
- if an input/output error occursprotected void renderAlertSummaryText(Alert alert, javax.faces.context.ResponseWriter writer) throws java.io.IOException
alert
- The Alert object to usewriter
- The current ResponseWriter
java.io.IOException
- if an input/output error occursprotected void renderAlertDetailArea(javax.faces.context.FacesContext context, Alert alert, Theme theme, javax.faces.context.ResponseWriter writer) throws java.io.IOException
alert
- The Alert object to usetheme
- The theme to usewriter
- The current ResponseWriter
java.io.IOException
- if an input/output error occursprotected void renderAlertLink(javax.faces.context.FacesContext context, Alert alert, Theme theme, javax.faces.context.ResponseWriter writer) throws java.io.IOException
context
- The current FacesContextalert
- The Alert object to usewriter
- The current ResponseWriter
java.io.IOException
- if an input/output error occursprotected void renderClosingTags(javax.faces.context.ResponseWriter writer) throws java.io.IOException
writer
- The current ResponseWriter
java.io.IOException
- if an input/output error occursprotected void renderEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, javax.faces.context.ResponseWriter writer) throws java.io.IOException
renderEnd
in class AbstractRenderer
context
- The current FacesContextcomponent
- The Alert object to usewriter
- The current ResponseWriter
java.io.IOException
- if an input/output error occurss
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |