net.infonode.tabbedpanel
Class TabFactory

java.lang.Object
  extended by net.infonode.tabbedpanel.TabFactory

public class TabFactory
extends java.lang.Object

Factory methods for creating different tabs

Version:
$Revision: 1.10 $
Author:
$Author: jesper $
See Also:
Tab, TitledTab

Constructor Summary
private TabFactory()
           
 
Method Summary
static TitledTab createTitledTab(java.lang.String text, javax.swing.Icon icon)
          Creates a TitledTab with a text and an icon
static TitledTab createTitledTab(java.lang.String text, javax.swing.Icon icon, javax.swing.Icon highlightedIcon, javax.swing.Icon disabledIcon, javax.swing.JComponent contentComponent, javax.swing.JComponent titleComponent)
          Creates a TitledTab with a text, a different icon for each of the states, a title component and a content component
static TitledTab createTitledTab(java.lang.String text, javax.swing.Icon icon, javax.swing.JComponent contentComponent)
          Creates a TitledTab with a text, an icon and a content component
static TitledTab createTitledTab(java.lang.String text, javax.swing.Icon icon, javax.swing.JComponent contentComponent, javax.swing.JComponent titleComponent)
          Creates a TitledTab with a text, an icon, a title component and a content component
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TabFactory

private TabFactory()
Method Detail

createTitledTab

public static TitledTab createTitledTab(java.lang.String text,
                                        javax.swing.Icon icon)
Creates a TitledTab with a text and an icon

Parameters:
text - the text
icon - the icon or null for no icon
Returns:
the created TitledTab

createTitledTab

public static TitledTab createTitledTab(java.lang.String text,
                                        javax.swing.Icon icon,
                                        javax.swing.JComponent contentComponent)
Creates a TitledTab with a text, an icon and a content component

Parameters:
text - the text
icon - the icon or null for no icon
contentComponent - the content component for the tab
Returns:
the created TitledTab

createTitledTab

public static TitledTab createTitledTab(java.lang.String text,
                                        javax.swing.Icon icon,
                                        javax.swing.JComponent contentComponent,
                                        javax.swing.JComponent titleComponent)
Creates a TitledTab with a text, an icon, a title component and a content component

Parameters:
text - the text
icon - the icon or null for no icon
contentComponent - the content component for the tab
titleComponent - the title component for the tab
Returns:
the created TitledTab

createTitledTab

public static TitledTab createTitledTab(java.lang.String text,
                                        javax.swing.Icon icon,
                                        javax.swing.Icon highlightedIcon,
                                        javax.swing.Icon disabledIcon,
                                        javax.swing.JComponent contentComponent,
                                        javax.swing.JComponent titleComponent)
Creates a TitledTab with a text, a different icon for each of the states, a title component and a content component

Parameters:
text - the text
icon - the icon for the normal state or null for no icon
highlightedIcon - the icon for the highlighted state or null fo no icon
disabledIcon - the icon for the disabled state or null for no icon
contentComponent - the content component for the tab
titleComponent - the title component for the tab
Returns:
the created TitledTab