public class TabbedPanelHoverAction extends java.lang.Object implements 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.
TabbedPanel
,
TabbedPanelProperties
,
TabAreaProperties
,
TabAreaComponentsProperties
,
TabbedPanelContentPanelProperties
Constructor and Description |
---|
TabbedPanelHoverAction()
Creates a TabbedPanelHoverAction containing an empty TabbedPanelProperties
object.
|
TabbedPanelHoverAction(TabbedPanelProperties props)
Creates a TabbedPanelHoverAction with the given TabbedPanelProperties
object.
|
Modifier and Type | Method and Description |
---|---|
TabbedPanelProperties |
getTabbedPanelProperties()
Gets the TabbedPanelProperties 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 TabbedPanelHoverAction()
public TabbedPanelHoverAction(TabbedPanelProperties props)
props
- reference to a TabbedPanelProperties objectpublic TabbedPanelProperties getTabbedPanelProperties()
public void mouseEntered(HoverEvent event)
HoverListener
mouseEntered
in interface HoverListener
event
- the hover eventpublic void mouseExited(HoverEvent event)
HoverListener
mouseExited
in interface HoverListener
event
- the hover event