public interface IActivatable
IActivatable
represents an entity that can be activated (
activate()
) and deactivated (deactivate()
) as required.
The current activation state of an IActivatable
(whether the entity
is active or not) can be queried by clients (isActive()
) and changes
to it can be observed via the active property
Any client implementing this interface may internally use an
ActivatableSupport
as a delegate to easily realize the required
functionality.
Type | Property and Description |
---|---|
javafx.beans.property.ReadOnlyBooleanProperty |
active
A read-only property providing information about the active state if this
IActivatable . |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACTIVE_PROPERTY
The name of the
active property . |
Modifier and Type | Method and Description |
---|---|
void |
activate()
Activates the
IActivatable . |
javafx.beans.property.ReadOnlyBooleanProperty |
activeProperty()
A read-only property providing information about the active state if this
IActivatable . |
void |
deactivate()
Deactivates the
IActivatable . |
boolean |
isActive()
Reports whether this
IActivatable is active or inactive, which
resembles the value of the active property . |
javafx.beans.property.ReadOnlyBooleanProperty activeProperty
IActivatable
.isActive()
static final java.lang.String ACTIVE_PROPERTY
active property
.void activate()
IActivatable
. It is expected that a call to
isActive()
returns true
after this method
has been called (unless deactivate()
is called to deactivate the
IActivatable
).javafx.beans.property.ReadOnlyBooleanProperty activeProperty()
IActivatable
.isActive()
void deactivate()
IActivatable
. It is expected that a call to
isActive()
return false
after this method
has been called (unless {activate()
is called to re-activate the
IAdaptable
.boolean isActive()
IActivatable
is active or inactive, which
resembles the value of the active property
.true
in case the IActivatable
is active,
false
otherwise.Copyright (c) 2014 itemis AG and others. All rights reserved.