Class TitledTabTabbedPanelHoverAction
- java.lang.Object
-
- net.infonode.tabbedpanel.hover.TitledTabTabbedPanelHoverAction
-
- All Implemented Interfaces:
HoverListener
public class TitledTabTabbedPanelHoverAction extends java.lang.Object implements HoverListener
TitledTabTabbedPanelHoverAction is an action that makes it easy to change properties for a hovered
TitledTab
and theTabbedPanel
it is a member of. The action is meant to be set as aHoverListener
for a TitledTab in theTitledTabProperties
.The action can be configured to add the TabbedPanelProperties only when the highlighted TitledTab is hovered or when any of the TitledTabs are hovered.
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. It also contains a TabbedPanelProperties object that will be added as super object to the tabbed panel that the hovered titled tab is a member of. The TabbedPanelProperties are automatically removed from the tabbed panel if the hovered titled tab is removed.
Note: This action is not meant to be set as hover listener for a Tabbed Panel (or any of its areas). For TabbedPanel, use
TabbedPanelTitledTabHoverAction
instead.- Since:
- ITP 1.3.0
- See Also:
TabbedPanel
,TitledTab
,TitledTabProperties
,TabbedPanelProperties
,TabbedPanelTitledTabHoverAction
-
-
Constructor Summary
Constructors Constructor Description TitledTabTabbedPanelHoverAction()
Creates a TitledTabTabbedPanelHoverAction containing an empty TitledTabProperties object and an empty TabbedPanelProperties object.TitledTabTabbedPanelHoverAction(boolean allTabs)
Creates a TitledTabTabbedPanelHoverAction containing an empty TitledTabProperties object and an empty TabbedPanelProperties object.TitledTabTabbedPanelHoverAction(TitledTabProperties titledTabProperties, TabbedPanelProperties tabbedPanelProperties)
Creates a TitledTabTabbedPanelHoverAction containing with the given TitledTabProperties object and the given TabbedPanelProperties object.TitledTabTabbedPanelHoverAction(TitledTabProperties titledTabProperties, TabbedPanelProperties tabbedPanelProperties, boolean allTabs)
Creates a TitledTabTabbedPanelHoverAction containing with the given TitledTabProperties object and the given TabbedPanelProperties object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TabbedPanelProperties
getTabbedPanelProperties()
Gets the TabbedPanelProperties object for this action.TitledTabProperties
getTitledTabProperties()
Gets the TitledTabProperties 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 Detail
-
TitledTabTabbedPanelHoverAction
public TitledTabTabbedPanelHoverAction()
Creates a TitledTabTabbedPanelHoverAction containing an empty TitledTabProperties object and an empty TabbedPanelProperties object. The TabbedPanelProperties are only applied when the highlighted tab is hovered.
-
TitledTabTabbedPanelHoverAction
public TitledTabTabbedPanelHoverAction(boolean allTabs)
Creates a TitledTabTabbedPanelHoverAction containing an empty TitledTabProperties object and an empty TabbedPanelProperties object.- Parameters:
allTabs
- true if the TabbedPanelProperties should be applied to the tabbed panel when a tab is hovered, false if it should only be applied when the the highlighted tab is hovered
-
TitledTabTabbedPanelHoverAction
public TitledTabTabbedPanelHoverAction(TitledTabProperties titledTabProperties, TabbedPanelProperties tabbedPanelProperties)
Creates a TitledTabTabbedPanelHoverAction containing with the given TitledTabProperties object and the given TabbedPanelProperties object. The TabbedPanelProperties are only applied when the highlighted tab is hovered.- Parameters:
titledTabProperties
- reference to a TitledTabProperties objecttabbedPanelProperties
- reference to a TabbedPanelProperties object
-
TitledTabTabbedPanelHoverAction
public TitledTabTabbedPanelHoverAction(TitledTabProperties titledTabProperties, TabbedPanelProperties tabbedPanelProperties, boolean allTabs)
Creates a TitledTabTabbedPanelHoverAction containing with the given TitledTabProperties object and the given TabbedPanelProperties object.- Parameters:
titledTabProperties
- reference to a TitledTabProperties objecttabbedPanelProperties
- reference to a TabbedPanelProperties objectallTabs
- true if the TabbedPanelProperties should be applied to the tabbed panel when a tab is hovered, false if it should only be applied when the the highlighted tab is hovered
-
-
Method Detail
-
getTitledTabProperties
public TitledTabProperties getTitledTabProperties()
Gets the TitledTabProperties object for this action.- Returns:
- reference to the TitledTabProperties
-
getTabbedPanelProperties
public TabbedPanelProperties getTabbedPanelProperties()
Gets the TabbedPanelProperties object for this action.- Returns:
- reference to the TabbedPanelProperties
-
mouseEntered
public void mouseEntered(HoverEvent event)
Description copied from interface:HoverListener
Called when the mouse enters the hoverable component- Specified by:
mouseEntered
in interfaceHoverListener
- Parameters:
event
- the hover event
-
mouseExited
public void mouseExited(HoverEvent event)
Description copied from interface:HoverListener
Called when the mouse exits the hoverable component- Specified by:
mouseExited
in interfaceHoverListener
- Parameters:
event
- the hover event
-
-