Class DisplayEvent


  • public class DisplayEvent
    extends Object
    A semantic event indicating that diplay event has occured
    Version:
    $Revision$ $Date$
    Author:
    Nick Collier
    • Constructor Detail

      • DisplayEvent

        public DisplayEvent​(IDisplay source,
                            Object subject)
        Creates a display event fired from the specified source and with the specified subject.
        Parameters:
        source - the source of the event
        subject - the subject of the event
    • Method Detail

      • getSubject

        public Object getSubject()
        Gets the subject of the event.
        Returns:
        the subject of the event.
      • addProperty

        public void addProperty​(String name,
                                Object prop)
        Adds a property to this DisplayEvent.
        Parameters:
        name - the name of the property
        prop - the property
      • getProperty

        public Object getProperty​(String name)
        Gets the named property
        Parameters:
        name - the name of the property to get
        Returns:
        the named property or DisplayEvent.NULL_PROPERTY if no such property exists.
      • getSource

        public IDisplay getSource()
        Gets the source of the event.
        Returns:
        the source of the event.