|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.reporting.engine.classic.core.function.FunctionUtilities
public final class FunctionUtilities
A collection of utility methods relating to functions.
| Method Summary | |
|---|---|
static Element[] |
findAllElements(Band band,
String element)
Try to find all element with the given name in the last active root-band. |
static Element |
findElement(Band band,
String element)
Try to find the first element with the given name in the last active root-band. |
static ReportElement |
findElementByAttribute(Section band,
String attributeNamespace,
String attributeName,
String attributeValue)
Try to find the defined element in the last active root-band. |
static ReportElement |
findElementById(ReportDefinition reportDefinition,
String id)
|
static ReportElement |
findElementById(Section band,
String id)
Try to find the defined element in the last active root-band. |
static ReportElement |
findElementByInstanceId(ReportDefinition reportDefinition,
InstanceID id)
|
static ReportElement |
findElementByInstanceId(Section band,
InstanceID id)
Try to find the defined element in the last active root-band. |
static Group |
getCurrentDeepTraverseGroup(ReportEvent event)
Returns the current group instance, based on the given report event. |
static Group |
getCurrentGroup(ReportEvent event)
Returns the current group instance, based on the given report event. |
static boolean |
isDefinedGroup(String groupName,
ReportEvent event)
Returns true if the events current groupname is equal to the group name. |
static boolean |
isDefinedPrepareRunLevel(Function f,
ReportEvent event)
Returns true, if the current run level is defined for the given function and this is a prepare run. |
static boolean |
isLayoutLevel(ReportEvent event)
Returns true or false. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Element findElement(Band band,
String element)
band - the band that is suspected to contain the element.element - the element name.
public static ReportElement findElementById(ReportDefinition reportDefinition,
String id)
public static ReportElement findElementByInstanceId(ReportDefinition reportDefinition,
InstanceID id)
public static ReportElement findElementById(Section band,
String id)
band - the band that is suspected to contain the element.id - the element's unique id.
public static ReportElement findElementByInstanceId(Section band,
InstanceID id)
band - the band that is suspected to contain the element.id - the element's unique id.
public static ReportElement findElementByAttribute(Section band,
String attributeNamespace,
String attributeName,
String attributeValue)
band - the band that is suspected to contain the element.attributeNamespace - attributeValue - attributeName -
public static Element[] findAllElements(Band band,
String element)
band - the band that is suspected to contain the element.element - the element name.
public static boolean isDefinedGroup(String groupName,
ReportEvent event)
groupName - the group name.event - the report event.
public static boolean isDefinedPrepareRunLevel(Function f,
ReportEvent event)
f - the function.event - the event.
public static boolean isLayoutLevel(ReportEvent event)
event - the report event.
public static Group getCurrentGroup(ReportEvent event)
event - the event which is base for the action.
public static Group getCurrentDeepTraverseGroup(ReportEvent event)
event - the event which is base for the action.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||