public class MultiDeleteInfo extends java.lang.Object implements IMultiDeleteInfo
IDeleteContext.getMultiDeleteInfo()
.Constructor and Description |
---|
MultiDeleteInfo(boolean showDialog,
boolean deleteCanceled,
int number)
Creates a new instance with the given settings.
|
Modifier and Type | Method and Description |
---|---|
int |
getNumber()
Returns the number of elements which are selected for deletion.
|
boolean |
isDeleteCanceled()
Returns the state whether delete has been canceled or not.
|
boolean |
isShowDialog()
Returns whether a dialog can be shown or should be suppressed.
|
void |
setDeleteCanceled(boolean deleteCanceled)
Sets the state whether delete has been canceled or not.
|
void |
setShowDialog(boolean showDialog)
Sets whether a dialog can be shown or should be suppressed.
|
public MultiDeleteInfo(boolean showDialog, boolean deleteCanceled, int number)
showDialog
- Determines if a "Are you sure" popup will be shown or notdeleteCanceled
- Determines if cancellation happenednumber
- Provides information on the number of objects to delete; the
number will be shown in the popup if displayed.public boolean isShowDialog()
IMultiDeleteInfo
isShowDialog
in interface IMultiDeleteInfo
public void setShowDialog(boolean showDialog)
IMultiDeleteInfo
setShowDialog
in interface IMultiDeleteInfo
showDialog
- TRUE, a dialog can be shownpublic boolean isDeleteCanceled()
IMultiDeleteInfo
isDeleteCanceled
in interface IMultiDeleteInfo
public void setDeleteCanceled(boolean deleteCanceled)
IMultiDeleteInfo
setDeleteCanceled
in interface IMultiDeleteInfo
deleteCanceled
- TRUE, if delete canceled; FALSE in all other casespublic int getNumber()
IMultiDeleteInfo
getNumber
in interface IMultiDeleteInfo