Class EnvironmentEvent


  • public class EnvironmentEvent
    extends java.lang.Object
    An event in the environment (related to some space object).
    • Field Detail

      • OBJECT_CREATED

        public static final java.lang.String OBJECT_CREATED
        Event type when an object has been created.
        See Also:
        Constant Field Values
      • OBJECT_DESTROYED

        public static final java.lang.String OBJECT_DESTROYED
        Event type when an object has been destroyed.
        See Also:
        Constant Field Values
      • OBJECT_PROPERTY_CHANGED

        public static final java.lang.String OBJECT_PROPERTY_CHANGED
        Event type when an object has been changed.
        See Also:
        Constant Field Values
      • type

        protected java.lang.String type
        The event type.
      • spaceobject

        protected ISpaceObject spaceobject
        The space object.
      • property

        protected java.lang.String property
        The property (if any).
      • oldvalue

        protected java.lang.Object oldvalue
        The previous property value (if any).
    • Constructor Detail

      • EnvironmentEvent

        public EnvironmentEvent​(java.lang.String type,
                                IEnvironmentSpace space,
                                ISpaceObject object,
                                java.lang.String property,
                                java.lang.Object oldvalue)
        Create a new environment event.
    • Method Detail

      • getType

        public java.lang.String getType()
        Get the event type.
        Returns:
        The event type.
      • getSpace

        public IEnvironmentSpace getSpace()
        Get the source space.
        Returns:
        The source.
      • getSpaceObject

        public ISpaceObject getSpaceObject()
        Get the space object.
        Returns:
        The space object.
      • getProperty

        public java.lang.String getProperty()
        Get the property.
        Returns:
        The property.
      • getOldValue

        public java.lang.Object getOldValue()
        Get the previous property value.
        Returns:
        The old value.