LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.app.behaviorinterface
Interface LyDeleteBehaviorInterface

All Superinterfaces:
LyActionBehaviorInterface, LyBehaviorInterface
All Known Subinterfaces:
LyClassBehaviorInterface
All Known Implementing Classes:
LyClassBehavior

public interface LyDeleteBehaviorInterface
extends LyActionBehaviorInterface

This interface defines the methods to implement in order to modify the behavior of a deletion action.

See Also:
LyDeleteController

Field Summary
static java.lang.String __VERSION
          File version
 
Method Summary
 java.lang.String checkDeletion(LyDeleteController delete, LyObject object)
          Checks if the given object deletion is enabled or not (used before asking to the end-user if he want to delete).
 LyObjectList checkDeletions(LyDeleteController delete, LyObjectList list)
          hecks if the given objects list deletion is enabled or not (used before asking to the end-user if he want to delete them).
 boolean endDeletion(LyDeleteController delete)
          Final step of object deletion process.
 java.lang.String getConfirmDeletionMessage(LyDeleteController delete, LyObject object)
          Asks for the deletion message for the given object.
 
Methods inherited from interface leon.app.behaviorinterface.LyActionBehaviorInterface
endAction, getClientContext, getContextTitle, getHelpFile, getImage, getImageTooltip, getKeyValue, getMenuItemImage, getTitle, reset, startAction
 
Methods inherited from interface leon.app.behaviorinterface.LyBehaviorInterface
free, handleDemand, init
 

Field Detail

__VERSION

static final java.lang.String __VERSION
File version

See Also:
Constant Field Values
Method Detail

checkDeletion

java.lang.String checkDeletion(LyDeleteController delete,
                               LyObject object)
Checks if the given object deletion is enabled or not (used before asking to the end-user if he want to delete).

Parameters:
delete - current LyDeleteController instance
object - Object checked before deletion.
Returns:
Error message if deletion is not allowed, null otherwise.

checkDeletions

LyObjectList checkDeletions(LyDeleteController delete,
                            LyObjectList list)
hecks if the given objects list deletion is enabled or not (used before asking to the end-user if he want to delete them).

Parameters:
delete - current LyDeleteController instance
list - list of objects to checked before deletion.
Returns:
The list of allowed objects to delete.

getConfirmDeletionMessage

java.lang.String getConfirmDeletionMessage(LyDeleteController delete,
                                           LyObject object)
Asks for the deletion message for the given object.

Parameters:
delete - current LyDeleteController instance
object - Object checked before deletion.
Returns:
Confirmation message to display to the user if necessary, null otherwise.

endDeletion

boolean endDeletion(LyDeleteController delete)
Final step of object deletion process.

Parameters:
delete - current LyDeleteController instance
Returns:
true if the deletion is complete, false otherwise

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com