net.infonode.docking

Class TabWindowHoverAction

public class TabWindowHoverAction extends Object implements HoverListener

TabWindowHoverAction is a hover action that makes it easy to change properties for a tab window and the title bar in the view.

This action contains a titled tab proeprties object, a tabbed panel properties object and a view title bar properties object. Those objects are automatically added/removed as superobject to the currently hovered tab window if this action is set as a hover listener in the titled tab properties and the content panel properties for the tabbed panel.

Example:

 rootWindowProperties.getTabWindowProperties().getTabbedPanelProperties().getContentPanelProperties().setHoverListener(tabWindowHoverAction);
rootWindowProperties.getTabWindowProperties().getTabProperties().getTitledTabProperties().setHoverListener(tabWindowHoverAction);

Since: IDW 1.4.0

Author: johan

Constructor Summary
TabWindowHoverAction()
Creates an empty tab window hover action object.
TabWindowHoverAction(TabbedPanelProperties tabbedPanelProperties, TitledTabProperties titledTabProperties, ViewTitleBarProperties viewTitleBarProperties)
Method Summary
TabbedPanelPropertiesgetTabbedPanelProperties()
Returns this action's tabbed panel properties
TitledTabPropertiesgetTitledTabProperties()
Returns this action's titled tab properties
ViewTitleBarPropertiesgetViewTitleBarProperties()
Returns this action's view title bar properties
voidmouseEntered(HoverEvent event)
voidmouseExited(HoverEvent event)

Constructor Detail

TabWindowHoverAction

public TabWindowHoverAction()
Creates an empty tab window hover action object.

TabWindowHoverAction

public TabWindowHoverAction(TabbedPanelProperties tabbedPanelProperties, TitledTabProperties titledTabProperties, ViewTitleBarProperties viewTitleBarProperties)

Method Detail

getTabbedPanelProperties

public TabbedPanelProperties getTabbedPanelProperties()
Returns this action's tabbed panel properties

Returns: tabbed panel properties

getTitledTabProperties

public TitledTabProperties getTitledTabProperties()
Returns this action's titled tab properties

Returns: titled tab properties

getViewTitleBarProperties

public ViewTitleBarProperties getViewTitleBarProperties()
Returns this action's view title bar properties

Returns: view title bar properties

mouseEntered

public void mouseEntered(HoverEvent event)

mouseExited

public void mouseExited(HoverEvent event)