public class HidePolicy extends AbstractTransactionPolicy<javafx.scene.Node>
HidePolicy can be installed on NodeContentPart to hide
the contents.| Constructor and Description |
|---|
HidePolicy() |
| Modifier and Type | Method and Description |
|---|---|
protected ITransactionalOperation |
createDeselectOperation(NodeContentPart part)
Returns an
ITransactionalOperation that removes the given
NodeContentPart from the SelectionModel of the
corresponding IViewer. |
protected ITransactionalOperation |
createHideOperation(NodeContentPart part)
Returns an
ITransactionalOperation that adds the given
NodeContentPart to the HidingModel of its IViewer
. |
protected ITransactionalOperation |
createOperation() |
protected ITransactionalOperation |
createUnfocusOperation(NodeContentPart part)
Returns an
ITransactionalOperation that removes the given
NodeContentPart from the FocusModel of the corresponding
IViewer. |
NodeContentPart |
getHost() |
void |
hide()
Executes an operation on the history that hides the
host NodeContentPart (and removes it from the FocusModel
and from the SelectionModel). |
checkInitialized, commit, getOperation, init, isInitialized, locallyExecuteOperation, rollbackgetAdaptable, setAdaptableprotected ITransactionalOperation createDeselectOperation(NodeContentPart part)
ITransactionalOperation that removes the given
NodeContentPart from the SelectionModel of the
corresponding IViewer.part - The NodeContentPart that is to be removed from the
SelectionModel.ITransactionalOperation that removes the given
NodeContentPart from the SelectionModel.protected ITransactionalOperation createHideOperation(NodeContentPart part)
ITransactionalOperation that adds the given
NodeContentPart to the HidingModel of its IViewer
.part - The NodeContentPart that is to be hidden.ITransactionalOperation that adds the given
NodeContentPart to the HidingModel of its
IViewer.protected ITransactionalOperation createOperation()
createOperation in class AbstractTransactionPolicy<javafx.scene.Node>protected ITransactionalOperation createUnfocusOperation(NodeContentPart part)
ITransactionalOperation that removes the given
NodeContentPart from the FocusModel of the corresponding
IViewer.part - The NodeContentPart that is to be removed.ITransactionalOperation that removes the given
NodeContentPart from the FocusModel.public NodeContentPart getHost()
getHost in interface IPolicy<javafx.scene.Node>getHost in class AbstractPolicy<javafx.scene.Node>public void hide()
host NodeContentPart (and removes it from the FocusModel
and from the SelectionModel).Copyright (c) 2014 itemis AG and others. All rights reserved.