Package net.infonode.tabbedpanel
Class TabFactory
- java.lang.Object
-
- net.infonode.tabbedpanel.TabFactory
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TitledTab
createTitledTab(java.lang.String text, javax.swing.Icon icon)
Creates a TitledTab with a text and an iconstatic 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 componentstatic 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 componentstatic 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
-
-
-
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 texticon
- 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 texticon
- the icon or null for no iconcontentComponent
- 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 texticon
- the icon or null for no iconcontentComponent
- the content component for the tabtitleComponent
- 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 texticon
- the icon for the normal state or null for no iconhighlightedIcon
- the icon for the highlighted state or null fo no icondisabledIcon
- the icon for the disabled state or null for no iconcontentComponent
- the content component for the tabtitleComponent
- the title component for the tab- Returns:
- the created TitledTab
-
-