|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.component.UIComponent
javax.faces.component.UIComponentBase
net.sf.jasperreports.jsf.component.UIReport
public abstract class UIReport
Base class for report components.
Field Summary | |
---|---|
static String |
COMPONENT_FAMILY
Name used to identify the reports component family. |
Fields inherited from class javax.faces.component.UIComponent |
---|
bindings |
Constructor Summary | |
---|---|
UIReport()
Instantiates a new UIReport. |
Method Summary | |
---|---|
protected void |
decodeReport(javax.faces.context.FacesContext context)
Decodes the report value. |
protected void |
decodeSource(javax.faces.context.FacesContext context)
Decodes the source value into a Source instace. |
protected void |
executeDecodes(javax.faces.context.FacesContext context)
Executes the decoding process. |
protected void |
executeValidate(javax.faces.context.FacesContext context)
Executes the validation process. |
String |
getFamily()
Obtains the family name. |
protected JRFacesContext |
getJRFacesContext()
Utility method for obtaining the current JRFacesContext instance. |
String |
getName()
Obtains the name of the report. |
ReportConverter |
getReportConverter()
|
Object |
getSource()
Obtains the established report source. |
SourceConverter |
getSourceConverter()
Obtains the current sourceConverter instance. |
net.sf.jasperreports.engine.JasperPrint |
getSubmittedPrint()
|
net.sf.jasperreports.engine.JasperReport |
getSubmittedReport()
Obtains the interpretted report value. |
Source |
getSubmittedSource()
Obtains the interpretted report source. |
javax.faces.validator.Validator |
getValidator()
Obtain the report validator instance. |
Object |
getValue()
Obtains the current report value. |
boolean |
isLocalValueSet()
Used to identify if current value has been programatically set. |
boolean |
isValid()
Obtains the valid flag. |
void |
processDecodes(javax.faces.context.FacesContext context)
Performs the decoding process in which the source value is interpretted. |
void |
processValidators(javax.faces.context.FacesContext context)
Method invoked during the PROCESS_VALIDATORS phase. |
void |
resetValue()
Resets the report component state. |
void |
restoreState(javax.faces.context.FacesContext context,
Object state)
|
Object |
saveState(javax.faces.context.FacesContext context)
|
void |
setName(String name)
Establishes a new name for the report. |
void |
setReportConverter(ReportConverter reportConverter)
|
void |
setSource(Object source)
Establishes a new report source. |
void |
setSourceConverter(SourceConverter converter)
Establishes a new source sourceConverter instance. |
void |
setSubmittedPrint(net.sf.jasperreports.engine.JasperPrint submittedPrint)
|
void |
setSubmittedReport(net.sf.jasperreports.engine.JasperReport submittedReport)
Establishes the interpretted report value. |
void |
setSubmittedSource(Source submittedSource)
Establishes the value for the report source. |
protected void |
setValid(boolean valid)
Establishes the value for the valid flag. |
void |
setValidator(javax.faces.validator.Validator validator)
Establishes a new validator instance. |
void |
setValue(Object value)
Establishes a new value for this project. |
void |
validate(javax.faces.context.FacesContext context)
Validates the current report instance. |
Methods inherited from class javax.faces.component.UIComponentBase |
---|
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processRestoreState, processSaveState, processUpdates, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding |
Methods inherited from class javax.faces.component.UIComponent |
---|
encodeAll, getContainerClientId, getValueExpression, setValueExpression |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String COMPONENT_FAMILY
Constructor Detail |
---|
public UIReport()
Method Detail |
---|
public final String getFamily()
getFamily
in class javax.faces.component.UIComponent
public final Object getSource()
public final void setSource(Object source)
source
- the new report source.public final String getName()
public final void setName(String name)
name
- the new report name.public final Object getValue()
public final void setValue(Object value)
value
- the new value.public final boolean isLocalValueSet()
public final SourceConverter getSourceConverter()
public final void setSourceConverter(SourceConverter converter)
sourceConverter
- a new sourceConverter instance.public final ReportConverter getReportConverter()
public void setReportConverter(ReportConverter reportConverter)
public final javax.faces.validator.Validator getValidator()
public final void setValidator(javax.faces.validator.Validator validator)
validator
- the validator instance.public final Source getSubmittedSource()
public final void setSubmittedSource(Source submittedSource)
submittedSource
- the report source.public final net.sf.jasperreports.engine.JasperReport getSubmittedReport()
public final void setSubmittedReport(net.sf.jasperreports.engine.JasperReport submittedReport)
submittedReport
- the report value.public net.sf.jasperreports.engine.JasperPrint getSubmittedPrint()
public void setSubmittedPrint(net.sf.jasperreports.engine.JasperPrint submittedPrint)
public final boolean isValid()
protected final void setValid(boolean valid)
valid
- if this report is valid.public void restoreState(javax.faces.context.FacesContext context, Object state)
restoreState
in interface javax.faces.component.StateHolder
restoreState
in class javax.faces.component.UIComponentBase
public Object saveState(javax.faces.context.FacesContext context)
saveState
in interface javax.faces.component.StateHolder
saveState
in class javax.faces.component.UIComponentBase
public void resetValue()
public void processDecodes(javax.faces.context.FacesContext context)
processDecodes
in class javax.faces.component.UIComponentBase
context
- current faces' context.public void processValidators(javax.faces.context.FacesContext context)
processValidators
in class javax.faces.component.UIComponentBase
context
- current faces' instance.protected final void decodeSource(javax.faces.context.FacesContext context)
context
- current faces' context.protected final void decodeReport(javax.faces.context.FacesContext context)
context
- current faces' context.public void validate(javax.faces.context.FacesContext context) throws javax.faces.validator.ValidatorException
context
- current faces' context
javax.faces.validator.ValidatorException
- when report configuration is not valid.protected final JRFacesContext getJRFacesContext()
protected final void executeDecodes(javax.faces.context.FacesContext context)
context
- current faces' context.protected final void executeValidate(javax.faces.context.FacesContext context)
context
- current faces' context.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |