public class FXFocusBehavior extends AbstractBehavior<javafx.scene.Node> implements java.beans.PropertyChangeListener
FXFocusBehavior
can be registered on an IVisualPart
to
transfer the focus information from the FocusModel
to the part's
visualization.pcs
ACTIVE_PROPERTY
Constructor and Description |
---|
FXFocusBehavior() |
Modifier and Type | Method and Description |
---|---|
void |
activate() |
protected void |
applyFocus()
Assigns keyboard focus to the visualization of the host.
|
void |
deactivate() |
void |
propertyChange(java.beans.PropertyChangeEvent evt) |
addFeedback, addFeedback, addHandles, addHandles, addPropertyChangeListener, getAdaptable, getFeedbackParts, getHandleParts, getHost, isActive, removeFeedback, removeHandles, removePropertyChangeListener, setAdaptable, switchAdaptableScopes
public void activate()
activate
in interface IActivatable
activate
in class AbstractBehavior<javafx.scene.Node>
protected void applyFocus()
public void deactivate()
deactivate
in interface IActivatable
deactivate
in class AbstractBehavior<javafx.scene.Node>
public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener
Copyright (c) 2014 itemis AG and others. All rights reserved.