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