Class ItemChangedEvent

    • Constructor Detail

      • ItemChangedEvent

        public ItemChangedEvent​(java.lang.Object source,
                                TypedObject item,
                                java.util.Collection<? extends PropertyDescriptor> properties)
        Creates a new ItemChangedEvent.
        Parameters:
        source - source of this event
        item - the changed item
        properties - the changed properties
      • ItemChangedEvent

        public ItemChangedEvent​(java.lang.Object source,
                                TypedObject item,
                                java.util.Collection<? extends PropertyDescriptor> properties,
                                java.util.Map<java.lang.String,​? extends java.lang.Object> params)
        Creates a new ItemChangedEvent.
        Parameters:
        source - source of this event
        item - the changed item
        properties - the changed properties of the item
        params - custom parameters
      • ItemChangedEvent

        public ItemChangedEvent​(java.lang.Object source,
                                TypedObject item,
                                java.util.Collection<? extends PropertyDescriptor> properties,
                                ItemChangedEvent.ChangeType changeType)
        Creates a new ItemChangedEvent.
        Parameters:
        source - source of this event
        item - the changed item
        properties - the changed properties
        changeType - type of the item change
      • ItemChangedEvent

        public ItemChangedEvent​(java.lang.Object source,
                                TypedObject item,
                                java.util.Collection<? extends PropertyDescriptor> properties,
                                ItemChangedEvent.ChangeType changeType,
                                java.util.Map<java.lang.String,​? extends java.lang.Object> params)
        Creates a new ItemChangedEvent.
        Parameters:
        source - source of this event
        item - the changed item
        properties - the changed properties
        changeType - the type of change
        params - custom parameters
    • Method Detail

      • getItem

        public TypedObject getItem()
        Returns the item which has been changed.

        Note: Always returns non null.

        Returns:
        the item which has been changed
      • getProperties

        public java.util.Set<PropertyDescriptor> getProperties()
        Returns the properties which have changed or null if all need to be reloaded.
        Returns:
        the changed properties or null
      • getParameters

        public java.util.Map<java.lang.String,​java.lang.Object> getParameters()
        Returns the custom parameters of this event.
        Returns:
        this event's custom parameters