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
IContentPart
s 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
IContentPart s for deletion. |
void |
delete(IContentPart<VR,? extends VR>... contentPartsToDelete)
Marks the given
IContentPart s for deletion. |
void |
init() |
commit, disableRefreshVisuals, enableRefreshVisuals, getAdaptable, getHost, init, setAdaptable
public IUndoableOperation commit()
commit
in interface ITransactional
public void delete(java.util.Collection<IContentPart<VR,? extends VR>> contentPartsToDelete)
IContentPart
s for deletion.contentPartsToDelete
- The IContentPart
s to mark for deletion.public void delete(IContentPart<VR,? extends VR>... contentPartsToDelete)
IContentPart
s for deletion.contentPartsToDelete
- The IContentPart
s to mark for deletion.public void init()
init
in interface ITransactional
Copyright (c) 2014 itemis AG and others. All rights reserved.