VR - The visual root node of the UI toolkit used, e.g.
javafx.scene.Node in case of JavaFX.public class DeletionPolicy<VR> extends AbstractPolicy<VR> implements ITransactional
DeletionPolicy is an ITransactional
AbstractPolicy that handles the deletion of existing
IContentParts via the ContentPolicy.| Constructor and Description |
|---|
DeletionPolicy() |
| Modifier and Type | Method and Description |
|---|---|
IUndoableOperation |
commit() |
void |
delete(java.util.Collection<IContentPart<VR,? extends VR>> contentPartsToDelete)
Marks the given
IContentParts for deletion. |
void |
delete(IContentPart<VR,? extends VR>... contentPartsToDelete)
Marks the given
IContentParts for deletion. |
void |
init() |
commit, disableRefreshVisuals, enableRefreshVisuals, getAdaptable, getHost, init, setAdaptablepublic IUndoableOperation commit()
commit in interface ITransactionalpublic void delete(java.util.Collection<IContentPart<VR,? extends VR>> contentPartsToDelete)
IContentParts for deletion.contentPartsToDelete - The IContentParts to mark for deletion.public void delete(IContentPart<VR,? extends VR>... contentPartsToDelete)
IContentParts for deletion.contentPartsToDelete - The IContentParts to mark for deletion.public void init()
init in interface ITransactionalCopyright (c) 2014 itemis AG and others. All rights reserved.