Class SelectedGUIElementChangedEvent

  • Direct Known Subclasses:
    SelectedEBPChangedEvent

    public abstract class SelectedGUIElementChangedEvent
    extends Object
    An object for signalling the change in a graphical selection of a model element, for instance selecting a worklist item representing an executable business process. This class has to be specialised for the various client platforms and the corresponding GUI-frameworks. The corresponding selected element and the source object have to be casted appropriately.
    An empty selected element indicates that no valid elements is currently selected, an empty source indicates that the graphical representation has been closed for the appropriate element.
    Author:
    Ulrich Kreher
    • Field Detail

      • selectedElement

        protected final Object selectedElement
        The element which is selected now.
      • source

        protected final Object source
        The graphical object where the selection occurred.
    • Constructor Detail

      • SelectedGUIElementChangedEvent

        protected SelectedGUIElementChangedEvent​(Object selectedElement,
                                                 Object source)
        Creates a new event for signalling that the designated element has been selected at the designated source.
        Parameters:
        selectedElement - The element that has been selected at the designated source.
        source - The graphical element where the element has been selected.
    • Method Detail

      • getElement

        public Object getElement()
        Returns the element that has been selected or null in case the selection has been removed but the graphical representation continues to exist.
        Returns:
        The element that has been selected or null in case the selection has been removed but the graphical representation continues to exist.
      • getSource

        public Object getSource()
        Returns the graphical object that signaled this event or null in case the graphical object has been closed/destroyed.
        Returns:
        The graphical object that signaled this event or null in case the graphical object has been closed/destroyed.