public abstract class AbstractLayoutBehavior extends AbstractBehavior<javafx.scene.Node>
AbstractLayoutBehavior
is an abstract behavior that schedules
preLayout()
and postLayout()
to be called before or after a
layout pass, respectively. The preLayout()
method can be used to
write layout information into the layout model. Similarly, the
postLayout()
method can be used to read layout information from the
layout model.active, adaptable
IAdaptable.Bound.Impl<T extends IAdaptable>
ACTIVE_PROPERTY
Constructor and Description |
---|
AbstractLayoutBehavior() |
Modifier and Type | Method and Description |
---|---|
protected abstract LayoutContext |
getLayoutContext()
Returns the
LayoutContext for which preLayout() and
postLayout() shall be called before or after a layout pass,
respectively. |
protected abstract void |
postLayout()
Called after a layout pass.
|
protected abstract void |
preLayout()
Called before a layout pass.
|
protected void |
updateLabels()
Called before a layout pass.
|
activate, activeProperty, adaptableProperty, addFeedback, addHandles, deactivate, doActivate, doDeactivate, getAdaptable, getFeedbackParts, getHandleParts, getHost, isActive, removeFeedback, removeHandles, setAdaptable, switchAdaptableScopes, updateHandles
protected abstract LayoutContext getLayoutContext()
LayoutContext
for which preLayout()
and
postLayout()
shall be called before or after a layout pass,
respectively.LayoutContext
for which preLayout()
and
postLayout()
shall be called before or after a layout
pass, respectively.protected abstract void postLayout()
protected abstract void preLayout()
protected void updateLabels()
Copyright (c) 2014 itemis AG and others. All rights reserved.