Class MultiDeleteInfo
- java.lang.Object
-
- org.eclipse.graphiti.features.context.impl.MultiDeleteInfo
-
- All Implemented Interfaces:
IMultiDeleteInfo
public class MultiDeleteInfo extends java.lang.Object implements IMultiDeleteInfo
Can be used to pass the information if a popup shall be shown or of a multi delete has been cancelled by the user to the next delete steps. SeeIDeleteContext.getMultiDeleteInfo().
-
-
Constructor Summary
Constructors Constructor Description MultiDeleteInfo(boolean showDialog, boolean deleteCanceled, int number)Creates a new instance with the given settings.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetNumber()Returns the number of elements which are selected for deletion.booleanisDeleteCanceled()Returns the state whether delete has been canceled or not.booleanisShowDialog()Returns whether a dialog can be shown or should be suppressed.voidsetDeleteCanceled(boolean deleteCanceled)Sets the state whether delete has been canceled or not.voidsetShowDialog(boolean showDialog)Sets whether a dialog can be shown or should be suppressed.
-
-
-
Constructor Detail
-
MultiDeleteInfo
public MultiDeleteInfo(boolean showDialog, boolean deleteCanceled, int number)Creates a new instance with the given settings.- Parameters:
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.
-
-
Method Detail
-
isShowDialog
public boolean isShowDialog()
Description copied from interface:IMultiDeleteInfoReturns whether a dialog can be shown or should be suppressed.- Specified by:
isShowDialogin interfaceIMultiDeleteInfo- Returns:
- TRUE, a dialog can be shown
-
setShowDialog
public void setShowDialog(boolean showDialog)
Description copied from interface:IMultiDeleteInfoSets whether a dialog can be shown or should be suppressed.- Specified by:
setShowDialogin interfaceIMultiDeleteInfo- Parameters:
showDialog- TRUE, a dialog can be shown
-
isDeleteCanceled
public boolean isDeleteCanceled()
Description copied from interface:IMultiDeleteInfoReturns the state whether delete has been canceled or not.- Specified by:
isDeleteCanceledin interfaceIMultiDeleteInfo- Returns:
- TRUE if delete canceled; FALSE in all other cases
-
setDeleteCanceled
public void setDeleteCanceled(boolean deleteCanceled)
Description copied from interface:IMultiDeleteInfoSets the state whether delete has been canceled or not.- Specified by:
setDeleteCanceledin interfaceIMultiDeleteInfo- Parameters:
deleteCanceled- TRUE, if delete canceled; FALSE in all other cases
-
getNumber
public int getNumber()
Description copied from interface:IMultiDeleteInfoReturns the number of elements which are selected for deletion.- Specified by:
getNumberin interfaceIMultiDeleteInfo- Returns:
- the number of selected elements
-
-