|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.reporting.engine.classic.core.elementfactory.ElementFactory
org.pentaho.reporting.engine.classic.core.elementfactory.TextElementFactory
org.pentaho.reporting.engine.classic.core.elementfactory.TextFieldElementFactory
org.pentaho.reporting.engine.classic.core.elementfactory.ResourceFieldElementFactory
public class ResourceFieldElementFactory
A factory to define ResourceFieldElements. ResourceField translate their content using a ResourceBundle instance.
| Constructor Summary | |
|---|---|
ResourceFieldElementFactory()
Default Constructor. |
|
| Method Summary | |
|---|---|
Element |
createElement()
Creates the resource field element based on the set properties. |
static Element |
createResourceElement(String name,
Rectangle2D bounds,
Color color,
ElementAlignment alignment,
ElementAlignment valignment,
FontDefinition font,
String nullValue,
String resourceBase,
String field)
Deprecated. Use a more fine-grained approach to define this element by using the element-factory directly. |
String |
getResourceBase()
Returns the base name of the resource bundle used to translate the content later. |
void |
setResourceBase(String resourceBase)
Defines the base name of the resource bundle used to translate the content later. |
| Methods inherited from class org.pentaho.reporting.engine.classic.core.elementfactory.TextFieldElementFactory |
|---|
createStringElement, createStringElement, getFieldname, getFormula, getNullString, setFieldname, setFormula, setNullString |
| Methods inherited from class org.pentaho.reporting.engine.classic.core.elementfactory.TextElementFactory |
|---|
getBold, getEmbedFont, getEncoding, getFontName, getFontSize, getItalic, getLineHeight, getMaximumLetterSpacing, getMinimumLetterSpacing, getOptimumLetterSpacing, getReservedLiteral, getStrikethrough, getTrimTextContent, getUnderline, getVerticalTextAlignment, getWhitespaceCollapse, getWrap, getWrapText, setBold, setEmbedFont, setEncoding, setFontName, setFontSize, setItalic, setLineHeight, setMaximumLetterSpacing, setMinimumLetterSpacing, setOptimumLetterSpacing, setReservedLiteral, setStrikethrough, setTrimTextContent, setUnderline, setVerticalTextAlignment, setWhitespaceCollapse, setWrap, setWrapText |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceFieldElementFactory()
| Method Detail |
|---|
public String getResourceBase()
public void setResourceBase(String resourceBase)
resourceBase - the resource bundle name of the element.public Element createElement()
createElement in class TextFieldElementFactoryElementFactory.createElement()
public static Element createResourceElement(String name,
Rectangle2D bounds,
Color color,
ElementAlignment alignment,
ElementAlignment valignment,
FontDefinition font,
String nullValue,
String resourceBase,
String field)
java.util.ResourceBundle.
name - the name of the element (null allowed)bounds - the element's boundscolor - the text color of the elementalignment - the element's horizontal text alignmentvalignment - the element's vertical text alignmentfont - the elements fontnullValue - the text used when the value of this element is nullfield - the field in the datamodel to retrieve values fromresourceBase - the classname/basename of the assigned resource bundle
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||