Package org.eclipse.gef.common.activate
Class ActivatableSupport
java.lang.Object
org.eclipse.gef.common.activate.ActivatableSupport
A support class to manage the activeProperty state for a source
 
IActivatable. It offers all methods defined by IActivatable,
 while not formally implementing the interface, and can thus be used by a
 source IActivatable as a delegate.- 
Property SummaryPropertiesTypePropertyDescriptionjavafx.beans.property.ReadOnlyBooleanPropertyReturns aReadOnlyBooleanPropertythat reflects the activeProperty state of thisActivatableSupport.
- 
Constructor SummaryConstructorsConstructorDescriptionActivatableSupport(IActivatable source) Creates a newActivatableSupportfor the given sourceIActivatable.
- 
Method SummaryModifier and TypeMethodDescriptionvoidActivates thisActivatableSupportif it is not yet active.javafx.beans.property.ReadOnlyBooleanPropertyReturns aReadOnlyBooleanPropertythat reflects the activeProperty state of thisActivatableSupport.voiddeactivate(Runnable preDeactivationCallback, Runnable postDeactivationCallback) Deactivates thisActivatableSupportif it is not yet inactive.booleanisActive()Reports whether thisActivatableSupportis activeProperty or inactive.
- 
Property Details- 
activepublic javafx.beans.property.ReadOnlyBooleanProperty activePropertyReturns aReadOnlyBooleanPropertythat reflects the activeProperty state of thisActivatableSupport.- See Also:
 
 
- 
- 
Constructor Details- 
ActivatableSupportCreates a newActivatableSupportfor the given sourceIActivatable.- Parameters:
- source- The- IActivatablethat encloses the to be created- ActivatableSupport, delegating calls to it. May not be- null
 
 
- 
- 
Method Details- 
activateActivates thisActivatableSupportif it is not yet active.- Parameters:
- preActivationCallback- An optional callback that is executed before the active state is set.
- postActivationCallback- An optional callback that is executed after the active state has been set.
- See Also:
 
- 
activePropertypublic javafx.beans.property.ReadOnlyBooleanProperty activeProperty()Returns aReadOnlyBooleanPropertythat reflects the activeProperty state of thisActivatableSupport.- See Also:
 
- 
deactivateDeactivates thisActivatableSupportif it is not yet inactive.- Parameters:
- preDeactivationCallback- An optional callback that is executed before the active state is unset.
- postDeactivationCallback- An optional callback that is executed after the active state has been unset.
- See Also:
 
- 
isActivepublic boolean isActive()Reports whether thisActivatableSupportis activeProperty or inactive.- Returns:
- truein case the- ActivatableSupportis activeProperty,- falseotherwise.
- See Also:
 
 
-