Class ConletDeleted

java.lang.Object
org.jgrapes.core.internal.EventBase<Void>
org.jgrapes.core.Event<Void>
org.jgrapes.webconsole.base.events.ConletDeleted
All Implemented Interfaces:
Future<Void>, Associator, Eligible

public class ConletDeleted extends Event<Void>
A notification that a conlet view was deleted in the browser.
  • Constructor Details

    • ConletDeleted

      public ConletDeleted(RenderSupport renderSupport, String conletId, Set<Conlet.RenderMode> renderModes)
      Creates a new event.
      Parameters:
      renderSupport - the render support from the web console in case the response requires it
      conletId - the web console component model that the notification is directed at
      renderModes - the kind of views that have been deleted. If empty, the last view has been deleted, i.e. the conlet is no longer used in the browser.
    • ConletDeleted

      public ConletDeleted(RenderSupport renderSupport, String conletId, Set<Conlet.RenderMode> renderModes, Map<? extends Object,? extends Object> properties)
      Creates a new event.
      Parameters:
      renderSupport - the render support from the web console in case the response requires it
      conletId - the web console component model that the notification is directed at
      renderModes - the kind of views that have been deleted. If empty, the last view has been deleted, i.e. the conlet is no longer used in the browser.
      properties - optional values for properties of the web console component instance
  • Method Details

    • renderSupport

      Returns the render support.
      Returns:
      the render support
    • conletId

      public String conletId()
      Returns the web console component id.
      Returns:
      the web console component id
    • renderModes

      Returns the render modes that have been deleted.

      An empty set indicates that all views have been deleted, i.e. the conlet is no longer used in the browser.

      Returns:
      the render modes
    • properties

      Returns the properties.

      Every event returns a mutable map, thus allowing event handlers to modify the map even if none was passed to the constructor.