org.jaffa.components.maint
Interface IMaintComponent

All Superinterfaces:
IComponent, ICreateComponent, IDeleteComponent, IUpdateComponent
All Known Implementing Classes:
MaintComponent, MaintComponent2

public interface IMaintComponent
extends ICreateComponent, IUpdateComponent, IDeleteComponent

This interface will be implemented by all Maintenance components.

Author:
GautamJ

Field Summary
static int MODE_CREATE
          This should be used for executing a Maintenence component in Create mode.
static int MODE_DELETE
          This should be used for executing a Maintenence component in Delete mode.
static int MODE_UPDATE
          This should be used for executing a Maintenence component in Update mode.
 
Method Summary
 int getMode()
          Getter for property mode.
 boolean isCreateMode()
          Returns true if this is create mode.
 boolean isDeleteMode()
          Returns true if this is delete mode.
 boolean isUpdateMode()
          Returns true if this is update mode.
 void setMode(int mode)
          Setter for property mode.
 
Methods inherited from interface org.jaffa.components.maint.ICreateComponent
addCreateListener, removeCreateListener
 
Methods inherited from interface org.jaffa.presentation.portlet.component.IComponent
addFormKeyChangeListener, display, getComponentDefinition, getComponentId, getContainerFormKey, getFormKeyChangeListeners, getReturnToFormKey, getToken, getUserSession, isActive, quit, quitAndReturnToCallingScreen, removeFormKeyChangeListener, setContainerFormKey, setReturnToFormKey, setToken
 
Methods inherited from interface org.jaffa.components.maint.IUpdateComponent
addUpdateListener, removeUpdateListener
 
Methods inherited from interface org.jaffa.components.maint.IDeleteComponent
addDeleteListener, removeDeleteListener
 

Field Detail

MODE_CREATE

public static final int MODE_CREATE
This should be used for executing a Maintenence component in Create mode.

See Also:
Constant Field Values

MODE_UPDATE

public static final int MODE_UPDATE
This should be used for executing a Maintenence component in Update mode.

See Also:
Constant Field Values

MODE_DELETE

public static final int MODE_DELETE
This should be used for executing a Maintenence component in Delete mode.

See Also:
Constant Field Values
Method Detail

getMode

public int getMode()
Getter for property mode.

Returns:
Value of property mode.

setMode

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

Parameters:
mode - New value of property mode.

isCreateMode

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

Returns:
true if this is create mode.

isUpdateMode

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

Returns:
true if this is update mode.

isDeleteMode

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

Returns:
true if this is delete mode.


Copyright © 2002-2004 JAFFA Project.