org.jaffa.components.maint
Class CreateComponent

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

public abstract class CreateComponent
extends Component
implements ICreateComponent

This is an abstract implementation of the ICreateComponent interface. All the Create components should extend this component.

Author:
GautamJ

Constructor Summary
CreateComponent()
           
 
Method Summary
 void addCreateListener(ICreateListener listener)
          Adds a listener.
protected  Collection getCreateListeners()
          Returns a Collection of ICreateListener objects.
protected  void invokeCreateListeners()
          Invokes the createDone() method of the registered ICreateListener objects in the same thread.
protected  void invokeCreateListeners(EventObject eventObject)
          Invokes the createDone() method of the registered ICreateListener objects in the same thread.
 void quit()
          This clears the internal collection of listeners.
 boolean removeCreateListener(ICreateListener 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

CreateComponent

public CreateComponent()
Method Detail

addCreateListener

public void addCreateListener(ICreateListener listener)
Adds a listener.

Specified by:
addCreateListener in interface ICreateComponent
Parameters:
listener - the listener.

removeCreateListener

public boolean removeCreateListener(ICreateListener listener)
Removes a listener.

Specified by:
removeCreateListener in interface ICreateComponent
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

getCreateListeners

protected Collection getCreateListeners()
Returns a Collection of ICreateListener objects.

Returns:
a Collection of ICreateListener objects.

invokeCreateListeners

protected void invokeCreateListeners()
Invokes the createDone() method of the registered ICreateListener objects in the same thread.


invokeCreateListeners

protected void invokeCreateListeners(EventObject eventObject)
Invokes the createDone() method of the registered ICreateListener objects in the same thread.

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


Copyright © 2002-2004 JAFFA Project.