Class SelectedGUIElementChangedEvent

java.lang.Object
de.aristaflow.adept2.core.client.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 Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final Object
    The element which is selected now.
    protected final Object
    The graphical object where the selection occurred.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    SelectedGUIElementChangedEvent(Object selectedElement, Object source)
    Creates a new event for signalling that the designated element has been selected at the designated source.
  • Method Summary

    Modifier and Type
    Method
    Description
    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 graphical object that signaled this event or null in case the graphical object has been closed/destroyed.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • selectedElement

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

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

    • 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 Details

    • 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.