public class ActivatableSupport
extends java.lang.Object
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.Type | Property and Description |
---|---|
javafx.beans.property.ReadOnlyBooleanProperty |
active
Returns a
ReadOnlyBooleanProperty that reflects the
activeProperty state of this ActivatableSupport . |
Constructor and Description |
---|
ActivatableSupport(IActivatable source)
Creates a new
ActivatableSupport for the given source
IActivatable . |
Modifier and Type | Method and Description |
---|---|
void |
activate(java.lang.Runnable preActivationCallback,
java.lang.Runnable postActivationCallback)
Activates this
ActivatableSupport if it is not yet active. |
javafx.beans.property.ReadOnlyBooleanProperty |
activeProperty()
Returns a
ReadOnlyBooleanProperty that reflects the
activeProperty state of this ActivatableSupport . |
void |
deactivate(java.lang.Runnable preDeactivationCallback,
java.lang.Runnable postDeactivationCallback)
Deactivates this
ActivatableSupport if it is not yet inactive. |
boolean |
isActive()
Reports whether this
ActivatableSupport is activeProperty or
inactive. |
public javafx.beans.property.ReadOnlyBooleanProperty activeProperty
ReadOnlyBooleanProperty
that reflects the
activeProperty state of this ActivatableSupport
.isActive()
public ActivatableSupport(IActivatable source)
ActivatableSupport
for the given source
IActivatable
.source
- The IActivatable
that encloses the to be created
ActivatableSupport
, delegating calls to it. May not be
null
public void activate(java.lang.Runnable preActivationCallback, java.lang.Runnable postActivationCallback)
ActivatableSupport
if it is not yet active.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.IActivatable.activate()
public javafx.beans.property.ReadOnlyBooleanProperty activeProperty()
ReadOnlyBooleanProperty
that reflects the
activeProperty state of this ActivatableSupport
.isActive()
public void deactivate(java.lang.Runnable preDeactivationCallback, java.lang.Runnable postDeactivationCallback)
ActivatableSupport
if it is not yet inactive.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.IActivatable.deactivate()
public boolean isActive()
ActivatableSupport
is activeProperty or
inactive.true
in case the ActivatableSupport
is
activeProperty, false
otherwise.IActivatable.isActive()
Copyright (c) 2014 itemis AG and others. All rights reserved.