net.infonode.tabbedpanel.hover
Class TitledTabHoverAction

java.lang.Object
  extended by net.infonode.tabbedpanel.hover.TitledTabHoverAction
All Implemented Interfaces:
HoverListener

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.

Since:
ITP 1.3.0
Version:
$Revision: 1.12 $
Author:
johan
See Also:
TitledTab, TitledTabProperties

Field Summary
private  TitledTabProperties props
           
 
Constructor Summary
TitledTabHoverAction()
          Creates a TitledTabHoverAction containing an empty TitledTabProperties object.
TitledTabHoverAction(TitledTabProperties props)
          Creates a TitledTabHoverAction with the given TitledTabProperties object.
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

props

private TitledTabProperties props
Constructor Detail

TitledTabHoverAction

public TitledTabHoverAction()
Creates a TitledTabHoverAction containing an empty TitledTabProperties object.


TitledTabHoverAction

public TitledTabHoverAction(TitledTabProperties props)
Creates a TitledTabHoverAction with the given TitledTabProperties object.

Parameters:
props - reference to a TitledTabProperties object
Method Detail

getTitledTabProperties

public TitledTabProperties getTitledTabProperties()
Gets the TitledTabProperties object for this action.

Returns:
reference to the TitledTabProperties

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