org.jaffa.components.maint
Class MaintComponent

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

Deprecated. This class is required by the object_maintenance_1_0 pattern. The object_maintenance_2_0 pattern has made this class redundant.

public abstract class MaintComponent
extends Component
implements IMaintComponent

This is an abstract implementation of the IMaintComponent interface. All the Maintenance components should extend this component.

Author:
GautamJ

Field Summary
 
Fields inherited from interface org.jaffa.components.maint.IMaintComponent
MODE_CREATE, MODE_DELETE, MODE_UPDATE
 
Constructor Summary
MaintComponent()
          Deprecated.  
 
Method Summary
 void addCreateListener(ICreateListener listener)
          Deprecated. Adds a listener.
 void addDeleteListener(IDeleteListener listener)
          Deprecated. Adds a listener.
 void addUpdateListener(IUpdateListener listener)
          Deprecated. Adds a listener.
protected  Collection getCreateListeners()
          Deprecated. Returns a Collection of ICreateListener objects.
protected  Collection getDeleteListeners()
          Deprecated. Returns a Collection of IDeleteListener objects.
 int getMode()
          Deprecated. Getter for property mode.
protected  Collection getUpdateListeners()
          Deprecated. Returns a Collection of IUpdateListener objects.
protected  void invokeCreateListeners()
          Deprecated. Invokes the createDone() method of the registered ICreateListener objects in the same thread.
protected  void invokeCreateListeners(EventObject eventObject)
          Deprecated. Invokes the createDone() method of the registered ICreateListener objects in the same thread.
protected  void invokeDeleteListeners()
          Deprecated. Invokes the deleteDone() method of the registered IDeleteListener objects in the same thread.
protected  void invokeDeleteListeners(EventObject eventObject)
          Deprecated. Invokes the deleteDone() method of the registered IDeleteListener objects in the same thread.
protected  void invokeUpdateListeners()
          Deprecated. Invokes the updateDone() method of the registered IUpdateListener objects in the same thread.
protected  void invokeUpdateListeners(EventObject eventObject)
          Deprecated. Invokes the updateDone() method of the registered IUpdateListener objects in the same thread.
 boolean isCreateMode()
          Deprecated. Returns true if this is create mode.
 boolean isDeleteMode()
          Deprecated. Returns true if this is delete mode.
 boolean isUpdateMode()
          Deprecated. Returns true if this is update mode.
 void quit()
          Deprecated. This clears the internal collection of listeners.
 boolean removeCreateListener(ICreateListener listener)
          Deprecated. Removes a listener.
 boolean removeDeleteListener(IDeleteListener listener)
          Deprecated. Removes a listener.
 boolean removeUpdateListener(IUpdateListener listener)
          Deprecated. Removes a listener.
 void setMode(int mode)
          Deprecated. Setter for property mode.
 
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

MaintComponent

public MaintComponent()
Deprecated. 
Method Detail

getMode

public int getMode()
Deprecated. 
Getter for property mode.

Specified by:
getMode in interface IMaintComponent
Returns:
Value of property mode.

setMode

public void setMode(int mode)
Deprecated. 
Setter for property mode.

Specified by:
setMode in interface IMaintComponent
Parameters:
mode - New value of property mode.

isCreateMode

public boolean isCreateMode()
Deprecated. 
Returns true if this is create mode.

Specified by:
isCreateMode in interface IMaintComponent
Returns:
true if this is create mode.

isUpdateMode

public boolean isUpdateMode()
Deprecated. 
Returns true if this is update mode.

Specified by:
isUpdateMode in interface IMaintComponent
Returns:
true if this is update mode.

isDeleteMode

public boolean isDeleteMode()
Deprecated. 
Returns true if this is delete mode.

Specified by:
isDeleteMode in interface IMaintComponent
Returns:
true if this is delete mode.

addCreateListener

public void addCreateListener(ICreateListener listener)
Deprecated. 
Adds a listener.

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

removeCreateListener

public boolean removeCreateListener(ICreateListener listener)
Deprecated. 
Removes a listener.

Specified by:
removeCreateListener in interface ICreateComponent
Parameters:
listener - the listener.
Returns:
true if the listener was removed.

addUpdateListener

public void addUpdateListener(IUpdateListener listener)
Deprecated. 
Adds a listener.

Specified by:
addUpdateListener in interface IUpdateComponent
Parameters:
listener - the listener.

removeUpdateListener

public boolean removeUpdateListener(IUpdateListener listener)
Deprecated. 
Removes a listener.

Specified by:
removeUpdateListener in interface IUpdateComponent
Parameters:
listener - the listener.
Returns:
true if the listener was removed.

addDeleteListener

public void addDeleteListener(IDeleteListener listener)
Deprecated. 
Adds a listener.

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

removeDeleteListener

public boolean removeDeleteListener(IDeleteListener listener)
Deprecated. 
Removes a listener.

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

quit

public void quit()
Deprecated. 
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()
Deprecated. 
Returns a Collection of ICreateListener objects.

Returns:
a Collection of ICreateListener objects.

getUpdateListeners

protected Collection getUpdateListeners()
Deprecated. 
Returns a Collection of IUpdateListener objects.

Returns:
a Collection of IUpdateListener objects.

getDeleteListeners

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

Returns:
a Collection of IDeleteListener objects.

invokeCreateListeners

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


invokeCreateListeners

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

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

invokeUpdateListeners

protected void invokeUpdateListeners()
Deprecated. 
Invokes the updateDone() method of the registered IUpdateListener objects in the same thread.


invokeUpdateListeners

protected void invokeUpdateListeners(EventObject eventObject)
Deprecated. 
Invokes the updateDone() method of the registered IUpdateListener objects in the same thread.

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

invokeDeleteListeners

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


invokeDeleteListeners

protected void invokeDeleteListeners(EventObject eventObject)
Deprecated. 
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.