net.sf.dynamicreports.report.builder.component
Class Components

java.lang.Object
  extended by net.sf.dynamicreports.report.builder.component.Components

public class Components
extends Object

A set of methods of creating components

Author:
Ricardo Mariaca (r.mariaca@dynamicreports.org)

Constructor Summary
Components()
           
 
Method Summary
static BooleanFieldBuilder booleanField(Boolean value)
           
static BooleanFieldBuilder booleanField(DRIExpression<Boolean> valueExpression)
           
static BooleanFieldBuilder booleanField(FieldBuilder<Boolean> field)
           
static HorizontalListBuilder centerHorizontal(ComponentBuilder<?,?> component)
           
static VerticalListBuilder centerVertical(ComponentBuilder<?,?> component)
           
static BreakBuilder columnBreak()
           
static CurrentDateBuilder currentDate()
           
static EllipseBuilder ellipse()
           
static FillerBuilder filler()
           
static FillerBuilder gap(int width, int height)
           
static GenericElementBuilder genericElement(String namespace, String name)
           
static HorizontalListCellBuilder hListCell(ComponentBuilder<?,?> component)
           
static HorizontalListBuilder horizontalFlowList()
           
static HorizontalListBuilder horizontalFlowList(ComponentBuilder<?,?>... components)
           
static HorizontalListBuilder horizontalFlowList(HorizontalListCellBuilder... cells)
           
static FillerBuilder horizontalGap(int width)
           
static HorizontalListBuilder horizontalList()
           
static HorizontalListBuilder horizontalList(ComponentBuilder<?,?>... components)
           
static HorizontalListBuilder horizontalList(HorizontalListCellBuilder... cells)
           
static ImageBuilder image(DRIExpression<?> imageExpression)
           
static ImageBuilder image(Image image)
           
static ImageBuilder image(InputStream imageInputStream)
           
static ImageBuilder image(net.sf.jasperreports.engine.Renderable image)
           
static ImageBuilder image(String imagePath)
           
static ImageBuilder image(URL imageUrl)
           
static LineBuilder line()
           
static MapBuilder map()
           
static MapBuilder map(Float latitude, Float longitude, Integer zoom)
           
static MultiPageListBuilder multiPageList()
           
static MultiPageListBuilder multiPageList(ComponentBuilder<?,?>... components)
           
static BreakBuilder pageBreak()
           
static PageNumberBuilder pageNumber()
           
static PageXofYBuilder pageXofY()
           
static PageXslashYBuilder pageXslashY()
           
static RectangleBuilder rectangle()
           
static RectangleBuilder roundRectangle()
           
static RectangleBuilder roundRectangle(int radius)
           
static SubreportBuilder subreport(DRIExpression<?> reportExpression)
           
static SubreportBuilder subreport(net.sf.jasperreports.engine.JasperReport jasperReport)
           
static SubreportBuilder subreport(JasperReportBuilder reportBuilder)
           
static TextFieldBuilder<Date> text(Date date)
           
static
<T> TextFieldBuilder<T>
text(DRIExpression<T> textExpression)
           
static
<T> TextFieldBuilder<T>
text(FieldBuilder<T> field)
           
static TextFieldBuilder<String> text(String text)
           
static
<T extends Number>
TextFieldBuilder<T>
text(T number)
           
static
<T> TextFieldBuilder<T>
text(VariableBuilder<T> variable)
           
static TotalPagesBuilder totalPages()
           
static FillerBuilder verticalGap(int height)
           
static VerticalListBuilder verticalList()
           
static VerticalListBuilder verticalList(ComponentBuilder<?,?>... components)
           
static VerticalListBuilder verticalList(VerticalListCellBuilder... cells)
           
static VerticalListCellBuilder vListCell(ComponentBuilder<?,?> component)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Components

public Components()
Method Detail

horizontalList

public static HorizontalListBuilder horizontalList()

horizontalList

public static HorizontalListBuilder horizontalList(ComponentBuilder<?,?>... components)

horizontalList

public static HorizontalListBuilder horizontalList(HorizontalListCellBuilder... cells)

hListCell

public static HorizontalListCellBuilder hListCell(ComponentBuilder<?,?> component)

horizontalFlowList

public static HorizontalListBuilder horizontalFlowList()

horizontalFlowList

public static HorizontalListBuilder horizontalFlowList(ComponentBuilder<?,?>... components)

horizontalFlowList

public static HorizontalListBuilder horizontalFlowList(HorizontalListCellBuilder... cells)

verticalList

public static VerticalListBuilder verticalList()

verticalList

public static VerticalListBuilder verticalList(ComponentBuilder<?,?>... components)

verticalList

public static VerticalListBuilder verticalList(VerticalListCellBuilder... cells)

vListCell

public static VerticalListCellBuilder vListCell(ComponentBuilder<?,?> component)

multiPageList

public static MultiPageListBuilder multiPageList()

multiPageList

public static MultiPageListBuilder multiPageList(ComponentBuilder<?,?>... components)

currentDate

public static CurrentDateBuilder currentDate()

pageNumber

public static PageNumberBuilder pageNumber()

pageXofY

public static PageXofYBuilder pageXofY()

pageXslashY

public static PageXslashYBuilder pageXslashY()

totalPages

public static TotalPagesBuilder totalPages()

text

public static TextFieldBuilder<String> text(String text)

text

public static TextFieldBuilder<Date> text(Date date)

text

public static <T extends Number> TextFieldBuilder<T> text(T number)

text

public static <T> TextFieldBuilder<T> text(FieldBuilder<T> field)

text

public static <T> TextFieldBuilder<T> text(VariableBuilder<T> variable)

text

public static <T> TextFieldBuilder<T> text(DRIExpression<T> textExpression)

filler

public static FillerBuilder filler()

horizontalGap

public static FillerBuilder horizontalGap(int width)

verticalGap

public static FillerBuilder verticalGap(int height)

gap

public static FillerBuilder gap(int width,
                                int height)

image

public static ImageBuilder image(DRIExpression<?> imageExpression)

image

public static ImageBuilder image(String imagePath)

image

public static ImageBuilder image(Image image)

image

public static ImageBuilder image(InputStream imageInputStream)

image

public static ImageBuilder image(URL imageUrl)

image

public static ImageBuilder image(net.sf.jasperreports.engine.Renderable image)

subreport

public static SubreportBuilder subreport(JasperReportBuilder reportBuilder)

subreport

public static SubreportBuilder subreport(net.sf.jasperreports.engine.JasperReport jasperReport)

subreport

public static SubreportBuilder subreport(DRIExpression<?> reportExpression)

line

public static LineBuilder line()

pageBreak

public static BreakBuilder pageBreak()

columnBreak

public static BreakBuilder columnBreak()

genericElement

public static GenericElementBuilder genericElement(String namespace,
                                                   String name)

booleanField

public static BooleanFieldBuilder booleanField(Boolean value)

booleanField

public static BooleanFieldBuilder booleanField(FieldBuilder<Boolean> field)

booleanField

public static BooleanFieldBuilder booleanField(DRIExpression<Boolean> valueExpression)

ellipse

public static EllipseBuilder ellipse()

rectangle

public static RectangleBuilder rectangle()

roundRectangle

public static RectangleBuilder roundRectangle()

roundRectangle

public static RectangleBuilder roundRectangle(int radius)

map

public static MapBuilder map()

map

public static MapBuilder map(Float latitude,
                             Float longitude,
                             Integer zoom)

centerHorizontal

public static HorizontalListBuilder centerHorizontal(ComponentBuilder<?,?> component)

centerVertical

public static VerticalListBuilder centerVertical(ComponentBuilder<?,?> component)


Copyright © 2010-2014. All Rights Reserved.