All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class aid.cbr.tools.core.memory.casebase.CaseBaseEventSupport

java.lang.Object
   |
   +----aid.cbr.tools.core.memory.casebase.CaseBaseEventSupport

public class CaseBaseEventSupport
extends Object
implements Serializable
Gives basic operations to handle listeners and fires case base events.

Version:
$Revision$, $Date$
Author:
M. Jaczynski

Constructor Index

 o CaseBaseEventSupport(CaseBase)
Creates a new case base event support associated to a source case base.

Method Index

 o addCaseBaseListener(CaseBaseListener)
Adds a listener in the listeners list.
 o fireCaseAdded(CaseBaseEvent)
Fires a case base event after the addition of a case.
 o fireCaseAdded(Object)
Fires a case base event after the addition of a case.
 o fireCaseBaseCleared(CaseBase)
Fires a case base event when a case base is cleared.
 o fireCaseBaseCleared(CaseBaseEvent)
Fires a case base event when a case base is cleared.
 o fireCaseCommitted(CaseBaseEvent)
Fires a case base event after the a case is committed.
 o fireCaseCommitted(Object)
Fires a case base event after the a case is committed.
 o fireCaseRemoved(CaseBaseEvent)
Fires a case base event for the removal of a case.
 o fireCaseRemoved(Object)
Fires a case base event for the removal of a case.
 o fireSubCaseBaseAdded(CaseBase)
Fires a case base event after the addition of a sub-case base.
 o fireSubCaseBaseAdded(CaseBaseEvent)
Fires a case base event after the addition of a sub-case base.
 o fireSubCaseBaseRemoved(CaseBase)
Fires a case base event after the removal of a sub case base.
 o fireSubCaseBaseRemoved(CaseBaseEvent)
Fires a case base event after the removal of a sub case base.
 o removeCaseBaseListener(CaseBaseListener)
Removes a listener from the list of actives listeners.

Constructors

 o CaseBaseEventSupport
 public CaseBaseEventSupport(CaseBase sourceBean)
Creates a new case base event support associated to a source case base.

Parameters:
sourceBean - the source case base

Methods

 o addCaseBaseListener
 public synchronized void addCaseBaseListener(CaseBaseListener listener)
Adds a listener in the listeners list. Nothing is done if the listener is already in the list.

Parameters:
listener - the listener
 o removeCaseBaseListener
 public synchronized void removeCaseBaseListener(CaseBaseListener listener)
Removes a listener from the list of actives listeners. Nothing is done if the listener is not in the current list.

Parameters:
listener - the listener to remove
 o fireCaseRemoved
 public void fireCaseRemoved(Object id)
Fires a case base event for the removal of a case.

Parameters:
c - the removed case
 o fireCaseAdded
 public void fireCaseAdded(Object id)
Fires a case base event after the addition of a case.

Parameters:
c - the added case
 o fireCaseCommitted
 public void fireCaseCommitted(Object id)
Fires a case base event after the a case is committed.

Parameters:
c - the committed case
 o fireCaseBaseCleared
 public void fireCaseBaseCleared(CaseBase cb)
Fires a case base event when a case base is cleared.

Parameters:
cb - the cleared case base
 o fireSubCaseBaseAdded
 public void fireSubCaseBaseAdded(CaseBase cb)
Fires a case base event after the addition of a sub-case base.

Parameters:
cb - the added case base
 o fireSubCaseBaseRemoved
 public void fireSubCaseBaseRemoved(CaseBase cb)
Fires a case base event after the removal of a sub case base.

Parameters:
cb - the removed case base
 o fireCaseRemoved
 public void fireCaseRemoved(CaseBaseEvent evt)
Fires a case base event for the removal of a case.

Parameters:
c - the removed case
 o fireCaseAdded
 public void fireCaseAdded(CaseBaseEvent evt)
Fires a case base event after the addition of a case.

Parameters:
c - the added case
 o fireCaseCommitted
 public void fireCaseCommitted(CaseBaseEvent evt)
Fires a case base event after the a case is committed.

Parameters:
c - the committed case
 o fireCaseBaseCleared
 public void fireCaseBaseCleared(CaseBaseEvent evt)
Fires a case base event when a case base is cleared.

Parameters:
cb - the cleared case base
 o fireSubCaseBaseAdded
 public void fireSubCaseBaseAdded(CaseBaseEvent evt)
Fires a case base event after the addition of a sub-case base.

Parameters:
cb - the added case base
 o fireSubCaseBaseRemoved
 public void fireSubCaseBaseRemoved(CaseBaseEvent evt)
Fires a case base event after the removal of a sub case base.

Parameters:
cb - the removed case base

All Packages  Class Hierarchy  This Package  Previous  Next  Index