|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnextapp.echo.AbstractComponent
net.sf.jzeno.reporting.pdf.PdfReportComponent
public class PdfReportComponent
Base class for creating your pdf reports
Field Summary |
---|
Constructor Summary | |
---|---|
PdfReportComponent()
|
|
PdfReportComponent(java.lang.Class beanClass,
java.lang.String property,
java.lang.String constructionHints)
|
Method Summary | |
---|---|
void |
addValidator(Validator validator)
Add extra validators to this component. |
void |
buildDoc(java.io.OutputStream outputStream)
|
protected void |
fireActionEvent()
|
protected void |
fireActionEvent(ActionEvent event)
|
protected void |
fireActionEvent(java.lang.String command)
|
java.lang.String |
getActionCommand()
|
java.lang.Object |
getBean()
Retrieve the root bean this editor is bound to. |
java.lang.Class |
getBeanClass()
Determine the type of bean we are bound to. |
Decorator |
getDecorator()
Implementation of RebindableComponent |
java.lang.Object |
getNullObject()
|
protected PdfLayout |
getPdfLayout()
|
java.lang.String |
getProperty()
Retrieve the property path to bind to on the domain model cluster. |
java.util.List |
getValidationErrors()
Retrieves a list of currently pending validation errors on this component. |
java.util.List |
getValidators()
Retrieve the list of active validators on this component. |
java.lang.Object |
getValue()
Retrieve the property value from the domain model cluster. |
boolean |
isBound()
|
boolean |
isMarkedInvalid()
|
boolean |
isReadOnly()
|
boolean |
isRequired()
Query if the editor is required to be filled in. |
boolean |
isValid()
Check if this component contains valid user input. |
void |
markInvalid()
Marks the component as invalid. |
void |
markValid()
Marks the component as valid (remove error marking) |
void |
preRender()
Make changes to the visual representation of this component before Echo starts rendering the component. |
void |
printToFile(java.lang.String fileName)
|
void |
rebind()
This operation causes the component to reset it's content to that of the domain model. |
void |
removeValidator(Validator validator)
Remove an existing validator from this component. |
void |
setActionCommand(java.lang.String command)
|
void |
setBean(java.lang.Object bean)
sets the root bean for property-binding. |
void |
setBeanClass(java.lang.Class beanClass)
Change the type of model bean this property component will be bound to. |
void |
setDecorator(Decorator decorator)
Sets the decorator. |
void |
setNullObject(java.lang.Object nullObject)
This object should be returned by the implementor in getValue, when the property path ends in a null value. |
void |
setProperty(java.lang.String propertyPath)
Set the property(path) to bind to on the domain model cluster. |
void |
setReadOnly(boolean readOnly)
Mark this component as read-only. |
void |
setRequired(boolean required)
Determine if the editor is required to be filled in. |
void |
setValue(java.lang.Object value)
Writes the supplied data into the property we are bound to. |
java.util.List |
traceValue()
Reads the properties in this components property path, and traces all read properties, returning the actual property values in a List. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PdfReportComponent()
public PdfReportComponent(java.lang.Class beanClass, java.lang.String property, java.lang.String constructionHints)
Method Detail |
---|
public Decorator getDecorator()
getDecorator
in interface PropertyComponent
public void setDecorator(Decorator decorator)
PropertyComponent
Sets the decorator.
setDecorator
in interface PropertyComponent
public java.lang.Object getBean()
PropertyComponent
Retrieve the root bean this editor is bound to.
getBean
in interface PropertyComponent
public java.lang.String getProperty()
PropertyComponent
Retrieve the property path to bind to on the domain model cluster.
getProperty
in interface PropertyComponent
public java.lang.Object getValue()
PropertyComponent
Retrieve the property value from the domain model cluster.
getValue
in interface PropertyComponent
public boolean isRequired()
PropertyComponent
Query if the editor is required to be filled in.
isRequired
in interface PropertyComponent
public void setBean(java.lang.Object bean)
PropertyComponent
sets the root bean for property-binding.
setBean
in interface PropertyComponent
public void setProperty(java.lang.String propertyPath)
PropertyComponent
Set the property(path) to bind to on the domain model cluster.
setProperty
in interface PropertyComponent
public void setRequired(boolean required)
PropertyComponent
Determine if the editor is required to be filled in.
setRequired
in interface PropertyComponent
public void setValue(java.lang.Object value)
PropertyComponent
Writes the supplied data into the property we are bound to.
setValue
in interface PropertyComponent
public final boolean isValid()
PropertyComponent
Check if this component contains valid user input. In itself this
operation will not mark the component in error. In order to apply error
marking on invalid components you should use
EchoSupport.doValidationRecursively(Component)
.
isValid
in interface PropertyComponent
public java.lang.Class getBeanClass()
PropertyComponent
Determine the type of bean we are bound to.
During the lifecycle of a property component, this may NOT change ! In other words, if this component has been bound to, let's say, an Address object, this component must at all times remain bound to Address components ! (It may ofcourse change the specific instance to which it is bound, by calling setBean.)
getBeanClass
in interface PropertyComponent
public void setBeanClass(java.lang.Class beanClass)
PropertyComponent
Change the type of model bean this property component will be bound to.
setBeanClass
in interface PropertyComponent
public java.lang.Object getNullObject()
getNullObject
in interface RebindableComponent
public void setNullObject(java.lang.Object nullObject)
RebindableComponent
This object should be returned by the implementor in getValue, when the property path ends in a null value.
setNullObject
in interface RebindableComponent
public boolean isReadOnly()
isReadOnly
in interface PropertyComponent
public void setReadOnly(boolean readOnly)
PropertyComponent
Mark this component as read-only.
setReadOnly
in interface PropertyComponent
public void preRender()
PropertyComponent
Make changes to the visual representation of this component before Echo starts rendering the component.
Do not modify any bound javabeans in this method, as the changes to these will not be reflected properly on the screen.
preRender
in interface PropertyComponent
public final void markInvalid()
PropertyComponent
Marks the component as invalid. Typically puts a colored border around it to indicate the error.
markInvalid
in interface PropertyComponent
public void markValid()
PropertyComponent
Marks the component as valid (remove error marking)
markValid
in interface PropertyComponent
public boolean isMarkedInvalid()
isMarkedInvalid
in interface PropertyComponent
public java.util.List traceValue()
RebindableComponent
Reads the properties in this components property path, and traces all read properties, returning the actual property values in a List.
traceValue
in interface RebindableComponent
public boolean isBound()
public void rebind()
RebindableComponent
This operation causes the component to reset it's content to that of the domain model.
rebind
in interface RebindableComponent
public final java.util.List getValidationErrors()
PropertyComponent
Retrieves a list of currently pending validation errors on this component.
getValidationErrors
in interface PropertyComponent
public void addValidator(Validator validator)
PropertyComponent
Add extra validators to this component.
addValidator
in interface PropertyComponent
public void removeValidator(Validator validator)
PropertyComponent
Remove an existing validator from this component.
removeValidator
in interface PropertyComponent
public java.util.List getValidators()
PropertyComponent
Retrieve the list of active validators on this component.
getValidators
in interface PropertyComponent
public java.lang.String getActionCommand()
getActionCommand
in interface EventSource
public void setActionCommand(java.lang.String command)
setActionCommand
in interface EventSource
protected final void fireActionEvent(java.lang.String command)
protected final void fireActionEvent()
protected final void fireActionEvent(ActionEvent event)
public final void buildDoc(java.io.OutputStream outputStream) throws com.lowagie.text.DocumentException
com.lowagie.text.DocumentException
public final void printToFile(java.lang.String fileName) throws java.io.FileNotFoundException, com.lowagie.text.DocumentException
java.io.FileNotFoundException
com.lowagie.text.DocumentException
protected PdfLayout getPdfLayout()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |