public class HideNodePolicy extends AbstractPolicy<javafx.scene.Node>
HideNodePolicy can be installed on NodeContentPart. It
provides two methods:
hide() to hide its host NodeContentPart
show() to show its host NodeContentPart
| Constructor and Description |
|---|
HideNodePolicy() |
| Modifier and Type | Method and Description |
|---|---|
protected ITransactionalOperation |
createDeselectOperation(IContentPart<javafx.scene.Node,? extends javafx.scene.Node> part)
Returns an
ITransactionalOperation that removes the given
IContentPart from the SelectionModel of the corresponding
IViewer. |
protected ITransactionalOperation |
createUnfocusOperation(IContentPart<javafx.scene.Node,? extends javafx.scene.Node> part)
Returns an
ITransactionalOperation that removes the given
IContentPart 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). |
void |
show()
Executes an operation on the history that shows the
host NodeContentPart. |
commit, getAdaptable, init, restoreRefreshVisuals, setAdaptable, storeAndDisableRefreshVisualsprotected ITransactionalOperation createDeselectOperation(IContentPart<javafx.scene.Node,? extends javafx.scene.Node> part)
ITransactionalOperation that removes the given
IContentPart from the SelectionModel of the corresponding
IViewer.part - The IContentPart that is removed from the
SelectionModel.ITransactionalOperation that changes the
SelectionModel.protected ITransactionalOperation createUnfocusOperation(IContentPart<javafx.scene.Node,? extends javafx.scene.Node> part)
ITransactionalOperation that removes the given
IContentPart from the FocusModel of the corresponding
IViewer.part - The IContentPart that is removed from the
FocusModel.ITransactionalOperation that changes 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).public void show()
host NodeContentPart.Copyright (c) 2014 itemis AG and others. All rights reserved.