Package net.infonode.tabbedpanel.hover
Class TabbedPanelHoverAction
java.lang.Object
net.infonode.tabbedpanel.hover.TabbedPanelHoverAction
- All Implemented Interfaces:
HoverListener
TabbedPanelHoverAction is an action that makes it easy to change properties for
a hovered TabbedPanel
. The action is meant to be set as a HoverListener
for the entire tabbed panel, the tab area, the tab area components area and/or the
content area in their corresponding properties objects.
This hover action contains a TabbedPanelProperties object that will be added as super object to the hovered tabbed panel and then automatically removed when the area is no longer hovered.
- Since:
- ITP 1.3.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a TabbedPanelHoverAction containing an empty TabbedPanelProperties object.Creates a TabbedPanelHoverAction with the given TabbedPanelProperties object. -
Method Summary
Modifier and TypeMethodDescriptionGets the TabbedPanelProperties object for this action.void
mouseEntered
(HoverEvent event) Called when the mouse enters the hoverable componentvoid
mouseExited
(HoverEvent event) Called when the mouse exits the hoverable component
-
Constructor Details
-
TabbedPanelHoverAction
public TabbedPanelHoverAction()Creates a TabbedPanelHoverAction containing an empty TabbedPanelProperties object. -
TabbedPanelHoverAction
Creates a TabbedPanelHoverAction with the given TabbedPanelProperties object.- Parameters:
props
- reference to a TabbedPanelProperties object
-
-
Method Details
-
getTabbedPanelProperties
Gets the TabbedPanelProperties object for this action.- Returns:
- reference to the TabbedPanelProperties
-
mouseEntered
Description copied from interface:HoverListener
Called when the mouse enters the hoverable component- Specified by:
mouseEntered
in interfaceHoverListener
- Parameters:
event
- the hover event
-
mouseExited
Description copied from interface:HoverListener
Called when the mouse exits the hoverable component- Specified by:
mouseExited
in interfaceHoverListener
- Parameters:
event
- the hover event
-