org.jaffa.components.maint
Class DeleteComponent

java.lang.Object
  extended byorg.jaffa.presentation.portlet.component.Component
      extended byorg.jaffa.components.maint.DeleteComponent
All Implemented Interfaces:
IComponent, IDeleteComponent

public abstract class DeleteComponent
extends Component
implements IDeleteComponent

This is an abstract implementation of the IDeleteComponent interface. All the Delete components should extend this component.

Author:
GautamJ

Constructor Summary
DeleteComponent()
           
 
Method Summary
 void addDeleteListener(IDeleteListener listener)
          Adds a listener.
protected  Collection getDeleteListeners()
          Returns a Collection of IDeleteListener objects.
protected  void invokeDeleteListeners()
          Invokes the deleteDone() method of the registered IDeleteListener objects in the same thread.
protected  void invokeDeleteListeners(EventObject eventObject)
          Invokes the deleteDone() method of the registered IDeleteListener objects in the same thread.
 void quit()
          This clears the internal collection of listeners.
 boolean removeDeleteListener(IDeleteListener listener)
          Removes a listener.
 
Methods inherited from class org.jaffa.presentation.portlet.component.Component
addChildComponent, addFormKeyChangeListener, display, getComponentDefinition, getComponentId, getContainerFormKey, getFormKeyChangeListeners, getReturnToFormKey, getToken, getUserSession, isActive, quitAndReturnToCallingScreen, reflectAndSetParms, removeFormKeyChangeListener, returnChildComponents, returnLastActivityDate, run, setContainerFormKey, setReturnToFormKey, setToken, updateLastActivityDate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jaffa.presentation.portlet.component.IComponent
addFormKeyChangeListener, display, getComponentDefinition, getComponentId, getContainerFormKey, getFormKeyChangeListeners, getReturnToFormKey, getToken, getUserSession, isActive, quitAndReturnToCallingScreen, removeFormKeyChangeListener, setContainerFormKey, setReturnToFormKey, setToken
 

Constructor Detail

DeleteComponent

public DeleteComponent()
Method Detail

addDeleteListener

public void addDeleteListener(IDeleteListener listener)
Adds a listener.

Specified by:
addDeleteListener in interface IDeleteComponent
Parameters:
listener - the listener.

removeDeleteListener

public boolean removeDeleteListener(IDeleteListener listener)
Removes a listener.

Specified by:
removeDeleteListener in interface IDeleteComponent
Parameters:
listener - the listener.
Returns:
true if the listener was removed.

quit

public void quit()
This clears the internal collection of listeners. It then invokes the quit() method of the base class.

Specified by:
quit in interface IComponent
Overrides:
quit in class Component

getDeleteListeners

protected Collection getDeleteListeners()
Returns a Collection of IDeleteListener objects.

Returns:
a Collection of IDeleteListener objects.

invokeDeleteListeners

protected void invokeDeleteListeners()
Invokes the deleteDone() method of the registered IDeleteListener objects in the same thread.


invokeDeleteListeners

protected void invokeDeleteListeners(EventObject eventObject)
Invokes the deleteDone() method of the registered IDeleteListener objects in the same thread.

Parameters:
eventObject - The EventObject which will probably contain the component itself.


Copyright © 2002-2004 JAFFA Project.