Class IContentTypeManager.ContentTypeChangeEvent

  • All Implemented Interfaces:
    Serializable
    Enclosing interface:
    IContentTypeManager

    public static final class IContentTypeManager.ContentTypeChangeEvent
    extends EventObject
    An event object which describes the details of a change to a content type.

    Types of changes include a change in the file associations or a change in the encoding setting.

    See Also:
    Serialized Form
    • Constructor Detail

      • ContentTypeChangeEvent

        public ContentTypeChangeEvent​(IContentType source)
        Constructor for a new content type change event.
        Parameters:
        source - the content type that changed
      • ContentTypeChangeEvent

        public ContentTypeChangeEvent​(IContentType source,
                                      IScopeContext context)
        Constructor for a new content type change event.
        Parameters:
        source - the content type that changed
        context - the context where a setting changed, or null
        Since:
        3.1
    • Method Detail

      • getContentType

        public IContentType getContentType()
        Return the content type object associated with this change event.
        Returns:
        the content type
      • getContext

        public IScopeContext getContext()
        Return the preference scope where the setting changed, or null, if the change happened in the content type manager default context.
        Returns:
        the context where the change happened, or null
        Since:
        3.1