public class HoverModel extends IAdaptable.Bound.Impl<IViewer> implements IDisposable
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<IContentPart<? extends javafx.scene.Node>> |
hoverIntent
Returns an object property representing the hover intent part.
|
javafx.beans.property.ObjectProperty<IVisualPart<? extends javafx.scene.Node>> |
hover
Returns an object property representing the current hover part.
|
adaptable
IAdaptable.Bound.Impl<T extends IAdaptable>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
HOVER_INTENT_PROPERTY
This property stores the intended hovered
|
static java.lang.String |
HOVER_PROPERTY
This is the name of the property that stores the currently hovered
IVisualPart . |
Constructor and Description |
---|
HoverModel() |
Modifier and Type | Method and Description |
---|---|
void |
clearHover()
Sets the hovered part to
null . |
void |
clearHoverIntent()
Sets the intentionally hovered part to
null . |
void |
dispose() |
IVisualPart<? extends javafx.scene.Node> |
getHover()
Returns the currently hovered
IVisualPart or null if
no visual part is hovered. |
IContentPart<? extends javafx.scene.Node> |
getHoverIntent()
Returns the current hover intent
IContentPart or
null if no content part is intentionally hovered. |
javafx.beans.property.ObjectProperty<IContentPart<? extends javafx.scene.Node>> |
hoverIntentProperty()
Returns an object property representing the hover intent part.
|
javafx.beans.property.ObjectProperty<IVisualPart<? extends javafx.scene.Node>> |
hoverProperty()
Returns an object property representing the current hover part.
|
void |
setAdaptable(IViewer adaptable) |
void |
setHover(IVisualPart<? extends javafx.scene.Node> cp)
Sets the hovered
IVisualPart to the given value. |
void |
setHoverIntent(IContentPart<? extends javafx.scene.Node> cp)
Sets the hover intent
IContentPart to the given value. |
adaptableProperty, getAdaptable
public javafx.beans.property.ObjectProperty<IContentPart<? extends javafx.scene.Node>> hoverIntentProperty
getHoverIntent()
,
setHoverIntent(IContentPart)
public javafx.beans.property.ObjectProperty<IVisualPart<? extends javafx.scene.Node>> hoverProperty
getHover()
,
setHover(IVisualPart)
public static final java.lang.String HOVER_PROPERTY
IVisualPart
.public static final java.lang.String HOVER_INTENT_PROPERTY
public void clearHover()
null
.public void clearHoverIntent()
null
.public void dispose()
dispose
in interface IDisposable
public IVisualPart<? extends javafx.scene.Node> getHover()
IVisualPart
or null
if
no visual part is hovered.IVisualPart
or null
public IContentPart<? extends javafx.scene.Node> getHoverIntent()
IContentPart
or
null
if no content part is intentionally hovered.IContentPart
or
null
public javafx.beans.property.ObjectProperty<IContentPart<? extends javafx.scene.Node>> hoverIntentProperty()
getHoverIntent()
,
setHoverIntent(IContentPart)
public javafx.beans.property.ObjectProperty<IVisualPart<? extends javafx.scene.Node>> hoverProperty()
getHover()
,
setHover(IVisualPart)
public void setAdaptable(IViewer adaptable)
setAdaptable
in interface IAdaptable.Bound<IViewer>
setAdaptable
in class IAdaptable.Bound.Impl<IViewer>
public void setHover(IVisualPart<? extends javafx.scene.Node> cp)
IVisualPart
to the given value. The given part
may be null
in order to unhover.cp
- hovered IVisualPart
or null
public void setHoverIntent(IContentPart<? extends javafx.scene.Node> cp)
IContentPart
to the given value. The given
part may be null
to indicate unhovering.cp
- The hover intent IContentPart
or null
.Copyright (c) 2014, 2016 itemis AG and others. All rights reserved.