|
org.netbeans.swing.tabcontrol 1.36 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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();
}
}
| Method Summary | |
|---|---|
Tabbed |
createTabbedComponent(TabbedType type,
WinsysInfoForTabbedContainer info)
Create Tabbed implementation for given type. |
| Method Detail |
|---|
Tabbed createTabbedComponent(TabbedType type,
WinsysInfoForTabbedContainer info)
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.
|
org.netbeans.swing.tabcontrol 1.36 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||