当前页面:
在线文档首页 >
NetBeans API Javadoc (Current Development Version)
ComponentConverter (Tab Control) - NetBeans API Javadoc (Current Development Version)
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 |
DEFAULT
static final ComponentConverter DEFAULT
- A default implementation which simply delegates to
TabData.getComponent()
getComponent
Component getComponent(TabData data)