java.lang.Object
org.eclipse.birt.report.model.api.activity.NotificationEvent
org.eclipse.birt.report.model.api.command.NameEvent

public class NameEvent extends NotificationEvent
Identifies that the name of an element changed.
  • Constructor Details

    • NameEvent

      public NameEvent(org.eclipse.birt.report.model.core.DesignElement obj, String oldName, String newName)
      Constructor.
      Parameters:
      obj - the element that changed.
      oldName - the new name causing the event
      newName - the old name of the event
  • Method Details

    • getEventType

      public int getEventType()
      Description copied from class: NotificationEvent
      Returns the event type. The following event types are defined:
      • CONTENT_EVENT
      • ELEMENT_DELETE_EVENT
      • EXTENDS_EVENT
      • NAME_EVENT
      • NAME_SPACE_EVENT
      • PROPERTY_EVENT
      • STYLE_EVENT
      • USER_PROP_EVENT
      • CUSTOM_MSG_EVENT
      • EXTENSION_PROPERTY_DEFINITION_EVENT
      • NOTIFICATION_EVENT
      • VALIDATION_EVENT
      • LIBRARY_EVENT
      • ATTRIBUTE_EVENT
      • DISPOSE_EVENT
      • CONTENT_REPLACE_EVENT
      • TEMPLATE_TRANSFORM_EVENT
      Specified by:
      getEventType in class NotificationEvent
      Returns:
      the event type.
    • getNewName

      public String getNewName()
      Gets the new name causing the event.
      Returns:
      Returns the newName.
    • getOldName

      public String getOldName()
      Gets the old name of the event.
      Returns:
      Returns the oldName.