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>, org.jgrapes.core.Associator, org.jgrapes.core.Eligible

public class ConletDeleted extends org.jgrapes.core.Event<Void>
A notification that a conlet view was deleted in the browser.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface java.util.concurrent.Future

    Future.State
  • Field Summary

    Fields inherited from class org.jgrapes.core.internal.EventBase

    completed, completionEvents, invokedFor
  • Constructor Summary

    Constructors
    Constructor
    Description
    ConletDeleted(RenderSupport renderSupport, String conletId, Set<Conlet.RenderMode> renderModes)
    Creates a new event.
    ConletDeleted(RenderSupport renderSupport, String conletId, Set<Conlet.RenderMode> renderModes, Map<? extends Object,? extends Object> properties)
    Creates a new event.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the web console component id.
    Returns the properties.
    Returns the render modes that have been deleted.
    Returns the render support.

    Methods inherited from class org.jgrapes.core.Event

    addCompletionEvent, associated, cancel, channels, channels, completionEvents, currentResults, defaultCriterion, forChannels, get, get, handled, handlingError, isCancelled, isDone, isEligibleFor, isStopped, processedBy, results, results, resumeHandling, setAssociated, setChannels, setRequiresResult, setResult, stop, suspendHandling, suspendHandling, tieTo, toString

    Methods inherited from class org.jgrapes.core.internal.EventBase

    disableTracking, enqueued, firstResultAssigned, isTracked, onCompletion

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.jgrapes.core.Associator

    associated, associated, associated, associatedGet

    Methods inherited from interface java.util.concurrent.Future

    exceptionNow, resultNow, state
  • 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.