Class TabbedPanelHoverAction

java.lang.Object
net.infonode.tabbedpanel.hover.TabbedPanelHoverAction
All Implemented Interfaces:
HoverListener

public class TabbedPanelHoverAction extends 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.

Since:
ITP 1.3.0
See Also:
  • Constructor Details

    • TabbedPanelHoverAction

      public TabbedPanelHoverAction()
      Creates a TabbedPanelHoverAction containing an empty TabbedPanelProperties object.
    • TabbedPanelHoverAction

      public TabbedPanelHoverAction(TabbedPanelProperties props)
      Creates a TabbedPanelHoverAction with the given TabbedPanelProperties object.
      Parameters:
      props - reference to a TabbedPanelProperties object
  • Method Details

    • 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 interface HoverListener
      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 interface HoverListener
      Parameters:
      event - the hover event