Style Intelligence v12.0

inetsoft.report
Interface CompositeLens

All Superinterfaces:
Cloneable
All Known Implementing Classes:
ElementContainer

public interface CompositeLens
extends Cloneable

CompositeLens is a lens class that represents a collection of report elements. It is very useful to allow the actual report elements to change dynamically instead of fixed at report creation time. This is intended for advanced users.


Nested Class Summary
static class CompositeLens.Separator
          Separator represents a separator element.
static class CompositeLens.Space
          Space represents a space element.
static class CompositeLens.Tab
          Tab represents a tab element.
 
Field Summary
static Object AREA_BREAK
          A constant object representing an area break.
static Object BREAK
          A constant object representing a break (non-block newline).
static Object NEWLINE
          A constant object representing a newline.
static Object PAGE_BREAK
          A constant object representing a page break.
 
Method Summary
 Object nextElement(Context context)
          Get the next element in the composite lens.
 void reset()
          Reset the enumerator to the start.
 

Field Detail

PAGE_BREAK

static final Object PAGE_BREAK
A constant object representing a page break.


AREA_BREAK

static final Object AREA_BREAK
A constant object representing an area break.


NEWLINE

static final Object NEWLINE
A constant object representing a newline.


BREAK

static final Object BREAK
A constant object representing a break (non-block newline).

Method Detail

nextElement

Object nextElement(Context context)
Get the next element in the composite lens. Currently the following types of elements are supported in a composite lens:

The context object can be modified to reflect the layout attributes of the element. The input value for the context is the current current at the point of printing this composite lens.

This method can be implemented to return the elements in the container. Each element must be one of the constants or classes defined in this class.


reset

void reset()
Reset the enumerator to the start. This is called before any nextElement() method is called.


Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.