站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

ComponentConverter (Tab Control) - NetBeans API Javadoc (Current Development Version)

org.netbeans.swing.tabcontrol 1.8

org.netbeans.swing.tabcontrol
Interface ComponentConverter

All Known Implementing Classes:
ComponentConverter.Fixed

public interface ComponentConverter

A class which can provide a component corresponding to a TabData object. While TabData.getComponent can provide a Component via its getComponent() method, there are use cases where the tabbed container should contain a single component, and the data model should be used to control it (the tabbed form of NetBeans' property sheet is one example).

A ComponentConvertor can be plugged into an instance of TabbedContainer to enable it to display, for example, the same component for all tabs, which a listener on its selection model will reconfigure for the selected tab; or it can be used for lazy initialization, to construct components on demand.


Nested Class Summary
static class ComponentConverter.Fixed
          A ComponentConverter implementation which always returns the same component
 
Field Summary
static ComponentConverter DEFAULT
          A default implementation which simply delegates to TabData.getComponent()
 
Method Summary
 Component getComponent(TabData data)
           
 

Field Detail

DEFAULT

static final ComponentConverter DEFAULT
A default implementation which simply delegates to TabData.getComponent()

Method Detail

getComponent

Component getComponent(TabData data)

org.netbeans.swing.tabcontrol 1.8

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.