public class TitledTabHoverAction extends java.lang.Object implements 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.
TitledTab,
TitledTabProperties| Constructor and Description |
|---|
TitledTabHoverAction()
Creates a TitledTabHoverAction containing an empty TitledTabProperties
object.
|
TitledTabHoverAction(TitledTabProperties props)
Creates a TitledTabHoverAction with the given TitledTabProperties
object.
|
| Modifier and Type | Method and Description |
|---|---|
TitledTabProperties |
getTitledTabProperties()
Gets the TitledTabProperties object for this action.
|
void |
mouseEntered(HoverEvent event)
Called when the mouse enters the hoverable component
|
void |
mouseExited(HoverEvent event)
Called when the mouse exits the hoverable component
|
public TitledTabHoverAction()
public TitledTabHoverAction(TitledTabProperties props)
props - reference to a TitledTabProperties objectpublic TitledTabProperties getTitledTabProperties()
public void mouseEntered(HoverEvent event)
HoverListenermouseEntered in interface HoverListenerevent - the hover eventpublic void mouseExited(HoverEvent event)
HoverListenermouseExited in interface HoverListenerevent - the hover event