org.netbeans.swing.tabcontrol 1.36

org.netbeans.swing.tabcontrol.customtabs
Interface TabbedComponentFactory


public interface TabbedComponentFactory

Service interface used by the Window System for creating NetBeans specific Tabbed Containers. Use this if you want to provide an alternative implementation e.g. based on JTabbedPane:

            class MyTabbedPane extends JTabbedPane implements Tabbed.Accessor {
                private final Tabbed tabbedImpl = new Tabbed() {
                    //implement abstract methods while delegating most of them to JTabbedPane
                };

                public Tabbed getTabbed() {
                    return tabbedImpl;
                }
            }
        

Then inject your new implementation to the window system by registering your own TabbedComponentFactory:

            @ServiceProvider(service=TabbedComponentFactory.class,position=1000)
            public class MyTabbedPaneFactory implements TabbedComponentFactory {
                public Tabbed createTabbedComponent( TabbedType type, WinsysInfoForTabbedContainer info ) {
                    return new MyTabbedPane().getTabbed();
                }
            }
        

Since:
1.33

Method Summary
 Tabbed createTabbedComponent(TabbedType type, WinsysInfoForTabbedContainer info)
          Create Tabbed implementation for given type.
 

Method Detail

createTabbedComponent

Tabbed createTabbedComponent(TabbedType type,
                             WinsysInfoForTabbedContainer info)
Create Tabbed implementation for given type.

Parameters:
type - Type of the container to be created.
info - Information from the window system that may affect the look and feel of the tab control.
Returns:
New Tabbed instance.

org.netbeans.swing.tabcontrol 1.36

Built on May 25 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.