Package net.infonode.tabbedpanel.hover
Class TitledTabHoverAction
java.lang.Object
net.infonode.tabbedpanel.hover.TitledTabHoverAction
- All Implemented Interfaces:
HoverListener
TitledTabHoverAction is an action that makes it easy to change properties for
a hovered TitledTab. The action is meant to be set as a HoverListener
in the TitledTabProperties.
This hover action contains a TitledTabProperties object that will be added as super object to the hovered titled tab and then automatically removed when the titled tab is no longer hovered.
- Since:
- ITP 1.3.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a TitledTabHoverAction containing an empty TitledTabProperties object.Creates a TitledTabHoverAction with the given TitledTabProperties object. -
Method Summary
Modifier and TypeMethodDescriptionGets the TitledTabProperties object for this action.voidmouseEntered(HoverEvent event) Called when the mouse enters the hoverable componentvoidmouseExited(HoverEvent event) Called when the mouse exits the hoverable component
-
Constructor Details
-
TitledTabHoverAction
public TitledTabHoverAction()Creates a TitledTabHoverAction containing an empty TitledTabProperties object. -
TitledTabHoverAction
Creates a TitledTabHoverAction with the given TitledTabProperties object.- Parameters:
props- reference to a TitledTabProperties object
-
-
Method Details
-
getTitledTabProperties
Gets the TitledTabProperties object for this action.- Returns:
- reference to the TitledTabProperties
-
mouseEntered
Description copied from interface:HoverListenerCalled when the mouse enters the hoverable component- Specified by:
mouseEnteredin interfaceHoverListener- Parameters:
event- the hover event
-
mouseExited
Description copied from interface:HoverListenerCalled when the mouse exits the hoverable component- Specified by:
mouseExitedin interfaceHoverListener- Parameters:
event- the hover event
-