VR
- The visual root node of the UI toolkit used, e.g.
javafx.scene.Node in case of JavaFX.public class HoverModel<VR>
extends java.lang.Object
HoverModel
is used to store the current viewer's mouse hover
target, i.e. the IVisualPart
that is currently under the mouse
cursor.Type | Property and Description |
---|---|
javafx.beans.property.ObjectProperty<IVisualPart<VR,? extends VR>> |
hover
Returns an object property representing the current hover part.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
HOVER_PROPERTY
The
HoverModel fires PropertyChangeEvent s when the
hovered part changes. |
Constructor and Description |
---|
HoverModel() |
Modifier and Type | Method and Description |
---|---|
void |
clearHover()
Sets the hovered part to
null . |
IVisualPart<VR,? extends VR> |
getHover()
Returns the currently hovered
IContentPart or null
if no visual part is hovered. |
javafx.beans.property.ObjectProperty<IVisualPart<VR,? extends VR>> |
hoverProperty()
Returns an object property representing the current hover part.
|
void |
setHover(IVisualPart<VR,? extends VR> cp)
Sets the hovered
IVisualPart to the given value. |
public javafx.beans.property.ObjectProperty<IVisualPart<VR,? extends VR>> hoverProperty
getHover()
,
setHover(IVisualPart)
public static final java.lang.String HOVER_PROPERTY
HoverModel
fires PropertyChangeEvent
s when the
hovered part changes. This is the name of the property that is delivered
with the event.public void clearHover()
null
.
Fires a PropertyChangeEvent
.
public IVisualPart<VR,? extends VR> getHover()
IContentPart
or null
if no visual part is hovered.IContentPart
or null
public javafx.beans.property.ObjectProperty<IVisualPart<VR,? extends VR>> hoverProperty()
getHover()
,
setHover(IVisualPart)
public void setHover(IVisualPart<VR,? extends VR> cp)
IVisualPart
to the given value. The given part
may be null
in order to unhover.
Fires a PropertyChangeEvent
.
cp
- hovered IVisualPart
or null
Copyright (c) 2014 itemis AG and others. All rights reserved.