Package org.eclipse.gef.zest.fx.policies
Class HidePolicy
- java.lang.Object
-
- org.eclipse.gef.common.adapt.IAdaptable.Bound.Impl<IVisualPart<? extends javafx.scene.Node>>
-
- org.eclipse.gef.mvc.fx.policies.AbstractPolicy
-
- org.eclipse.gef.zest.fx.policies.HidePolicy
-
- All Implemented Interfaces:
IAdaptable.Bound<IVisualPart<? extends javafx.scene.Node>>,IPolicy
public class HidePolicy extends AbstractPolicy
TheHidePolicycan be installed onNodePartto hide the contents.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classHidePolicy.ClearHoverHandlesOperationClears the hover handles for the given part upon execution of this operation.-
Nested classes/interfaces inherited from interface org.eclipse.gef.common.adapt.IAdaptable.Bound
IAdaptable.Bound.Impl<T extends IAdaptable>
-
-
Constructor Summary
Constructors Constructor Description HidePolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ITransactionalOperationcreateDeselectOperation(NodePart part)Returns anITransactionalOperationthat removes the givenNodePartfrom theSelectionModelof the correspondingIViewer.protected ITransactionalOperationcreateHideOperation(NodePart part)protected ITransactionalOperationcreateOperation()protected ITransactionalOperationcreateUnfocusOperation(NodePart part)Returns anITransactionalOperationthat removes the givenNodePartfrom theFocusModelof the correspondingIViewer.NodePartgetHost()voidhide()Executes an operation on the history that hides thehostNodePart(and removes it from theFocusModeland from theSelectionModel).-
Methods inherited from class org.eclipse.gef.mvc.fx.policies.AbstractPolicy
checkInitialized, commit, getOperation, init, isInitialized, locallyExecuteOperation, rollback
-
Methods inherited from class org.eclipse.gef.common.adapt.IAdaptable.Bound.Impl
adaptableProperty, getAdaptable, setAdaptable
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.gef.common.adapt.IAdaptable.Bound
adaptableProperty, getAdaptable, setAdaptable
-
-
-
-
Method Detail
-
createDeselectOperation
protected ITransactionalOperation createDeselectOperation(NodePart part)
Returns anITransactionalOperationthat removes the givenNodePartfrom theSelectionModelof the correspondingIViewer.- Parameters:
part- TheNodePartthat is to be removed from theSelectionModel.- Returns:
- An
ITransactionalOperationthat removes the givenNodePartfrom theSelectionModel.
-
createHideOperation
protected ITransactionalOperation createHideOperation(NodePart part)
- Parameters:
part- TheNodePartthat is to be hidden.- Returns:
- An
ITransactionalOperationthat adds the givenNodePartto theHidingModelof itsIViewer.
-
createOperation
protected ITransactionalOperation createOperation()
- Specified by:
createOperationin classAbstractPolicy
-
createUnfocusOperation
protected ITransactionalOperation createUnfocusOperation(NodePart part)
Returns anITransactionalOperationthat removes the givenNodePartfrom theFocusModelof the correspondingIViewer.- Parameters:
part- TheNodePartthat is to be removed.- Returns:
- An
ITransactionalOperationthat removes the givenNodePartfrom theFocusModel.
-
getHost
public NodePart getHost()
-
hide
public void hide()
Executes an operation on the history that hides thehostNodePart(and removes it from theFocusModeland from theSelectionModel).
-
-