Inherited by ERMDRemoveRelatedButton.

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) |
object dataSource displayGroup d2wContext
deleteButtonLabel classForDeleteObjButton classForDisabledDeleteObjButton cancelButtonLabel classForCancelDialogButton classForDeleteDialogButton confirmDeleteMessage
| ERMDDeleteButton | ( | WOContext | context | ) |
| String activeButtonClass | ( | ) |
CSS class for the Delete button when active.
Defaults to "Button ObjButton DeleteObjButton"
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 | ( | ) |
| String buttonLabel | ( | ) |
Label for the Delete button.
Defaults to "Delete"
Reimplemented in ERMDRemoveRelatedButton.
| WOActionResults cancelAction | ( | ) |
Reverts the ec, and purges the objectPendingDeletion in the d2wContext to hide the in-line confirmation dialog.
| String cancelButtonClass | ( | ) |
CSS class for the in-line dialog's Cancel button.
Defaults to "Button DialogButton CancelDialogButton"
| String cancelButtonLabel | ( | ) |
Label for the Cancel button.
Defaults to "Cancel"
| boolean canDelete | ( | ) |
Boolean used to hide/show the in-line confirm delete dialog.
| WOActionResults deleteAction | ( | ) |
| String deleteButtonClass | ( | ) |
CSS class for the in-line dialog's Delete button.
Defaults to "Button DialogButton DeleteDialogButton"
| 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.
| String dialogMessage | ( | ) |
String to display in the in-line confirmation dialog.
Obtained from the bindings or d2wContext via this key:
confirmDeleteMessage
Reimplemented in ERMDRemoveRelatedButton.
| String disabledButtonClass | ( | ) |
CSS class for the delete button when disabled.
Defaults to "Button ObjButton DisabledObjButton DisabledDeleteObjButton"
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
| 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.
String _cancelButtonClass [private] |
String _cancelButtonLabel [private] |
String _deleteButtonClass [private] |
String _dialogMessage [protected] |
String _disabledButtonClass [protected] |
String _localUpdateContainer [private] |
final String DisplayGroupObjectDeleted = "DisplayGroupObjectDeleted" [static] |
final Logger log = Logger.getLogger(ERMDDeleteButton.class) [static, private] |
1.5.8