|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.graphiti.features.context.impl.MultiDeleteInfo
public class MultiDeleteInfo
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. See
IDeleteContext.getMultiDeleteInfo()
.
Field Summary | |
---|---|
private boolean |
deleteCanceled
|
private int |
number
|
private boolean |
showDialog
|
Constructor Summary | |
---|---|
MultiDeleteInfo(boolean showDialog,
boolean deleteCanceled,
int number)
Creates a new instance with the given settings. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private boolean showDialog
private boolean deleteCanceled
private int number
Constructor Detail |
---|
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.Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |