Class CreateGroupAnchorsFunction

  • All Implemented Interfaces:
    Serializable, Cloneable, EventListener, ReportListener, Expression, Function

    public class CreateGroupAnchorsFunction
    extends AbstractFunction
    Deprecated.
    It is easier to create anchors using a Style-expression. The Anchor-Field has been deprecated now.
    Creates anchor objects for the current group. The anchors generated consist of the group's name and the current group count.

    To use the CreateGroupAnchorsFunction set the group's name as the function's group-property value. Next, add a AnchorElement to where the anchor should be generated (usually either the group-header or footer) and give the function's name as fieldname in the anchor-field.

    Author:
    Thomas Morgner
    See Also:
    Serialized Form
    • Constructor Detail

      • CreateGroupAnchorsFunction

        public CreateGroupAnchorsFunction()
        Deprecated.
        Default Constructor. Does nothing.
    • Method Detail

      • getAnchorPrefix

        public String getAnchorPrefix()
        Deprecated.
        Returns the prefix for the generated anchor.
        Returns:
        the anchor prefix.
      • setAnchorPrefix

        public void setAnchorPrefix​(String anchorPrefix)
        Deprecated.
        Defines the prefix for the generated anchor.
        Parameters:
        anchorPrefix - the prefix for the anchor.
      • getGroup

        public String getGroup()
        Deprecated.
        Returns the name of the group for which an anchor should be generated.
        Returns:
        the name of the group.
      • setGroup

        public void setGroup​(String group)
        Deprecated.
        Defines the name of the group for which an anchor should be generated.
        Parameters:
        group - the name of the group.
      • reportInitialized

        public void reportInitialized​(ReportEvent event)
        Deprecated.
        Receives notification that report generation initializes the current run.

        The event carries a ReportState.Started state. Use this to initialize the report.

        Specified by:
        reportInitialized in interface ReportListener
        Overrides:
        reportInitialized in class AbstractFunction
        Parameters:
        event - The event.
      • getValue

        public Object getValue()
        Deprecated.
        Return the current expression value.

        The value depends (obviously) on the expression implementation.

        Returns:
        the value of the function.