VR - The visual root node of the UI toolkit used, e.g.
javafx.scene.Node in case of JavaFX.public class FocusModel<VR>
extends java.lang.Object
FocusModel stores the IContentPart which has keyboard
focus. Note that you are responsible for synchronizing keyboard focus with
the model.| Type | Property and Description |
|---|---|
javafx.beans.property.ObjectProperty<IContentPart<VR,? extends VR>> |
focus
Returns an object property providing the currently focused
IContentPart. |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FOCUS_PROPERTY
The
FocusModel fires PropertyChangeEvents when the
focused part changes. |
| Constructor and Description |
|---|
FocusModel()
Constructs a new
FocusModel. |
| Modifier and Type | Method and Description |
|---|---|
javafx.beans.property.ObjectProperty<IContentPart<VR,? extends VR>> |
focusProperty()
Returns an object property providing the currently focused
IContentPart. |
IContentPart<VR,? extends VR> |
getFocus()
Returns the
IContentPart which has keyboard focus, or
null if no IContentPart currently has keyboard
focus. |
void |
setFocus(IContentPart<VR,? extends VR> focusPart)
Selects the given IContentPart as the focus part.
|
public javafx.beans.property.ObjectProperty<IContentPart<VR,? extends VR>> focusProperty
IContentPart.getFocus(),
setFocus(IContentPart)public static final java.lang.String FOCUS_PROPERTY
FocusModel fires PropertyChangeEvents when the
focused part changes. This is the name of the property that is delivered
with the event.setFocus(IContentPart),
Constant Field Valuespublic javafx.beans.property.ObjectProperty<IContentPart<VR,? extends VR>> focusProperty()
IContentPart.getFocus(),
setFocus(IContentPart)public IContentPart<VR,? extends VR> getFocus()
IContentPart which has keyboard focus, or
null if no IContentPart currently has keyboard
focus.nullpublic void setFocus(IContentPart<VR,? extends VR> focusPart)
focusPart - The IContentPart which should become the new focus
part.Copyright (c) 2014 itemis AG and others. All rights reserved.