ERMDDeleteButton Class Reference

Inherits er::modern::directtoweb::components::buttons::ERMDActionButton.

Inherited by ERMDRemoveRelatedButton.

Collaboration diagram for ERMDDeleteButton:

Collaboration graph
[legend]

List of all members.

Classes

interface  Keys

Public Member Functions

String activeButtonClass ()
WOActionResults buttonAction ()
String buttonClass ()
String buttonLabel ()
WOActionResults cancelAction ()
String cancelButtonClass ()
String cancelButtonLabel ()
boolean canDelete ()
WOActionResults deleteAction ()
String deleteButtonClass ()
WOActionResults deleteObjectWithFinalCommit (boolean finalCommit)
String dialogMessage ()
String disabledButtonClass ()
 ERMDDeleteButton (WOContext context)
String localUpdateContainer ()
void postDeleteNotification ()
boolean showDialog ()
Boolean useAjax ()

Static Public Attributes

static final String DisplayGroupObjectDeleted = "DisplayGroupObjectDeleted"

Protected Attributes

String _dialogMessage
String _disabledButtonClass

Private Attributes

String _cancelButtonClass
String _cancelButtonLabel
String _deleteButtonClass
String _localUpdateContainer

Static Private Attributes

static final Logger log = Logger.getLogger(ERMDDeleteButton.class)


Detailed Description

Delete button for repetitions.

object dataSource displayGroup d2wContext

deleteButtonLabel classForDeleteObjButton classForDisabledDeleteObjButton cancelButtonLabel classForCancelDialogButton classForDeleteDialogButton confirmDeleteMessage

Author:
davidleber ERModernDirectToWeb

Constructor & Destructor Documentation

ERMDDeleteButton ( WOContext  context  ) 


Member Function Documentation

String activeButtonClass (  ) 

CSS class for the Delete button when active.

Defaults to "Button ObjButton DeleteObjButton"

Returns:

Reimplemented in ERMDRemoveRelatedButton.

WOActionResults buttonAction (  ) 

Deletes the current object. Behaviour is dependent on the d2wContext useAjaxControls flag.

if true: Display an in-line confirmation dialog and update the pages main update container. if false: Take user to the confirmation page.

String buttonClass (  ) 

CSS class for the Delete button.

Returns:

Reimplemented in ERMDRemoveRelatedButton.

String buttonLabel (  ) 

Label for the Delete button.

Defaults to "Delete"

Returns:

Reimplemented in ERMDRemoveRelatedButton.

WOActionResults cancelAction (  ) 

Reverts the ec, and purges the objectPendingDeletion in the d2wContext to hide the in-line confirmation dialog.

Returns:

String cancelButtonClass (  ) 

CSS class for the in-line dialog's Cancel button.

Defaults to "Button DialogButton CancelDialogButton"

Returns:

String cancelButtonLabel (  ) 

Label for the Cancel button.

Defaults to "Cancel"

Returns:

boolean canDelete (  ) 

Boolean used to hide/show the in-line confirm delete dialog.

WOActionResults deleteAction (  ) 

Delete action for component button

Returns:

Reimplemented in ERMDRemoveRelatedButton.

String deleteButtonClass (  ) 

CSS class for the in-line dialog's Delete button.

Defaults to "Button DialogButton DeleteDialogButton"

Returns:

WOActionResults deleteObjectWithFinalCommit ( boolean  finalCommit  ) 

Performs the in-line delete and purges object pending deletion from the d2wContext to hide the in-line confirmation dialog. Calls saveChanges on the parent ec if the finalCommit flag is true.

Returns:

String dialogMessage (  ) 

String to display in the in-line confirmation dialog.

Obtained from the bindings or d2wContext via this key:

confirmDeleteMessage

Returns:

Reimplemented in ERMDRemoveRelatedButton.

String disabledButtonClass (  ) 

CSS class for the delete button when disabled.

Defaults to "Button ObjButton DisabledObjButton DisabledDeleteObjButton"

Returns:

Reimplemented in ERMDRemoveRelatedButton.

String localUpdateContainer (  ) 

Returns a unique id for this control's update container

void postDeleteNotification (  ) 

Utility method to post the delete notification to the parent component

boolean showDialog (  ) 

Used to show/hide the confirmation dialog

Returns:

Boolean useAjax (  ) 

Determines whether to use an in-line confirmation dialog with ajax behaviour or a separate confirmation page.

Based on the value of the useAjax binding (or d2wContext key).

Reimplemented from ERMDActionButton.


Member Data Documentation

String _dialogMessage [protected]

final String DisplayGroupObjectDeleted = "DisplayGroupObjectDeleted" [static]

final Logger log = Logger.getLogger(ERMDDeleteButton.class) [static, private]

logging support

Reimplemented from ERMDActionButton.

Reimplemented in ERMDRemoveRelatedButton.


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:23 2012 for Project Wonder by  doxygen 1.5.8