Package com.reportmill.base
Class ReportMill
java.lang.Object
com.reportmill.base.RMObject
com.reportmill.base.ReportMill
- All Implemented Interfaces:
RMArchiver.Archiving
,RMKey.ValueForKeyChain
,Cloneable
This class is used as a helper object by RMDocument to generate a report.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
An inner class to provide a hook for converting objects (like NSArray to List, etc.).static interface
An interface for classes than want to know about filled shapes. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new reportmill with the specified paginate option (true or false). -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDataObject
(Object anObj) Adds a data object to the data object list.void
addPageReferenceShape
(RMShape aShape) Registers a shape with a page key in it.void
addUserInfo
(Object userInfo) Adds a user info object to the data objects list (also handles ReportMill.Listeners).static Object
convertFromAppServerType
(Object anObj) Called by various objects to convert objects to generic types.void
didFillShape
(RMShape aShape, RMShape aCopy) Called by shapes when rpgCloned to notify listener.generateReport
(RMDocument aDoc, Object objects, Object userInfo, boolean paginate) Returns a rpg clone of the given document with given objects, userInfo and pagination setting.getDataObject
(int anIndex) Returns the data object at the specified index.Returns the data objects list.static String
Returns the ReportMill license string for the current user.Returns the string used to represent null values.int
Returns the current page being processed during report generation.boolean
Returns whether this reportmill paginates.getRPGCloneForObject
(Object anObj) Returns the corresponding rpg'd object for an original object.static boolean
Returns whether ReportMill has a valid license for the current user.static void
lc
(RMDocument aDoc) Simple lc check.listValueForKeyChain
(String aKeyChain) Returns a list for the given keychain.void
removeDataObject
(Object anObj) Removes an object from the data object list.static void
setLicense
(String aLicense) Sets the ReportMill license string for the current user.static void
setLicense
(String aLicense, boolean persistent, boolean isApp) Sets the ReportMill license string for the current user (with option to persist).static void
setLicenseState
(LicenseState licenseState) void
setRPGCloneForObject
(Object aCopy, Object anObj) Sets the corresponding rpg'd object for an original object.valueForKeyChain
(Object aKeyChain) ReportMill's valueForKeyChain implementation.Methods inherited from class com.reportmill.base.RMObject
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
-
Field Details
-
appServer
-
-
Constructor Details
-
ReportMill
public ReportMill()Creates a new reportmill with the specified paginate option (true or false).
-
-
Method Details
-
getPaginate
public boolean getPaginate()Returns whether this reportmill paginates. -
getDataObjects
Returns the data objects list. -
getPageIndex
public int getPageIndex()Returns the current page being processed during report generation. -
getNullString
Returns the string used to represent null values. -
generateReport
public RMDocument generateReport(RMDocument aDoc, Object objects, Object userInfo, boolean paginate) Returns a rpg clone of the given document with given objects, userInfo and pagination setting. -
getDataObject
Returns the data object at the specified index. -
addDataObject
Adds a data object to the data object list. -
removeDataObject
Removes an object from the data object list. -
addUserInfo
Adds a user info object to the data objects list (also handles ReportMill.Listeners). -
didFillShape
Called by shapes when rpgCloned to notify listener. -
convertFromAppServerType
Called by various objects to convert objects to generic types. -
listValueForKeyChain
Returns a list for the given keychain. -
addPageReferenceShape
Registers a shape with a page key in it. -
getRPGCloneForObject
Returns the corresponding rpg'd object for an original object. -
setRPGCloneForObject
Sets the corresponding rpg'd object for an original object. -
valueForKeyChain
ReportMill's valueForKeyChain implementation.- Specified by:
valueForKeyChain
in interfaceRMKey.ValueForKeyChain
-
getLicense
Returns the ReportMill license string for the current user. -
setLicense
Sets the ReportMill license string for the current user. -
setLicense
Sets the ReportMill license string for the current user (with option to persist). -
isLicensed
public static boolean isLicensed()Returns whether ReportMill has a valid license for the current user. -
setLicenseState
-
lc
Simple lc check.
-