net.infonode.tabbedpanel

Class TabbedUtils

public class TabbedUtils extends Object

Utility methods

Version: $Revision: 1.10 $

Author: $Author: jesper $

Method Summary
static TabgetParentTab(Component c)

Gets the tab for whom the given component is a child.

Note: This is not a method for retrieving the tab for a specific content component.

static TabbedPanelgetParentTabbedPanel(Component c)
Gets the tabbed panel for whom the given component is a child
static TabbedPanelContentPanelgetParentTabbedPanelContentPanel(Component c)
Gets the TabbedPanelContentPanel for whom the given component is a child
static booleanisHoverEnabled()

Checks to see if hover is enabled i.e. if the AWTPermission "listenToAllAWTEvents" has been granted so that hover can be used.

Method Detail

getParentTab

public static Tab getParentTab(Component c)

Gets the tab for whom the given component is a child.

Note: This is not a method for retrieving the tab for a specific content component. This method is only useful for finding the Tab for components that have been added to a Tab.

Parameters: c the component

Returns: the tab or null if component is not a child of any tab

getParentTabbedPanel

public static TabbedPanel getParentTabbedPanel(Component c)
Gets the tabbed panel for whom the given component is a child

Parameters: c the component

Returns: the tabbed panel or null if component is not a child of any tabbed panel

getParentTabbedPanelContentPanel

public static TabbedPanelContentPanel getParentTabbedPanelContentPanel(Component c)
Gets the TabbedPanelContentPanel for whom the given component is a child

Parameters: c the component

Returns: the content panel or null if component is not a child of any tabbed panel content panel

isHoverEnabled

public static boolean isHoverEnabled()

Checks to see if hover is enabled i.e. if the AWTPermission "listenToAllAWTEvents" has been granted so that hover can be used.

Note: This method is not meant to be used for permission checks, only as a convenience to check if hover is enabled or not.

Returns: true if hover is enabled, otherwise false

Since: ITP 1.3.0