public abstract class AbstractHidingBehavior extends AbstractBehavior<javafx.scene.Node>
AbstractHidingBehavior registers listeners on the
HidingModel upon activation. When the HidingModel changes,
the hidden status of the host is
determined. If the hidden status of the
host changed, either hide() or show()
will be called, respectively. By default, the host's
visual's visibility and mouse-transparency are changed depending on the
hidden status.pcsACTIVE_PROPERTY| Constructor and Description |
|---|
AbstractHidingBehavior() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
deactivate() |
protected abstract boolean |
determineHiddenStatus()
Returns
true if the host is currently
hidden. |
protected HidingModel |
getHidingModel()
|
protected void |
hide()
Hides the
host. |
protected boolean |
isHidden()
Returns
true if the host is currently
considered to be hidden. |
protected void |
onHidingModelChange()
Called upon
HidingModel changes. |
protected void |
show()
Shows the
host. |
addFeedback, addFeedback, addHandles, addHandles, addPropertyChangeListener, getAdaptable, getFeedbackParts, getHandleParts, getHost, isActive, removeFeedback, removeHandles, removePropertyChangeListener, setAdaptable, switchAdaptableScopespublic void activate()
activate in interface IActivatableactivate in class AbstractBehavior<javafx.scene.Node>public void deactivate()
deactivate in interface IActivatabledeactivate in class AbstractBehavior<javafx.scene.Node>protected abstract boolean determineHiddenStatus()
true if the host is currently
hidden, otherwise false.protected HidingModel getHidingModel()
HidingModel that is installed on the IViewer
of the host.protected void hide()
protected boolean isHidden()
true if the host is currently
considered to be hidden, otherwise false.protected void onHidingModelChange()
HidingModel changes. Determines if the
host is now hidden using
determineHiddenStatus() and compares the result with the
previous hidden status. If the host was previously
hidden and is not hidden anymore, show() is called. Otherwise,
hide() is called.protected void show()
Copyright (c) 2014 itemis AG and others. All rights reserved.