de.kleopatra.view.factory
Class SwingComponentTypeMap

java.lang.Object
  extended byde.kleopatra.view.factory.DefaultComponentTypeMap
      extended byde.kleopatra.view.factory.SwingComponentTypeMap
All Implemented Interfaces:
ComponentTypeMap

public class SwingComponentTypeMap
extends DefaultComponentTypeMap

Type map that's roughly initialized to standard Swing JComponent classes.

Note: subclasses which want to hook into custom factories for the types already registered here should make sure to remove the entry from the corresponding componentMap. Or subclass DefaultComponentTypeMap.

Version:
$Revision: 1.2 $ - $Date: 2004/09/29 14:39:41 $
Author:
(C) Jeanette Winzenburg, Berlin

Nested Class Summary
static interface SwingComponentTypeMap.Instantiator
           
 
Field Summary
protected  java.util.Map instantiatorMap
           
 
Fields inherited from class de.kleopatra.view.factory.DefaultComponentTypeMap
componentMap, containerMap, LOGGER, scrollableTypes
 
Constructor Summary
SwingComponentTypeMap()
           
 
Method Summary
protected  void addComponentInstantiator(java.lang.Object componentType, SwingComponentTypeMap.Instantiator instantiator)
           
protected  java.lang.Object factoryHook(java.lang.Object componentType)
          hook for subclasses to use custom component factories.
 java.util.Set getComponentTypes()
          returns a Collection of all generic component types.
protected  java.util.Map getInstantiatorMap()
           
protected  void initComponentTypes()
           
protected  void initContainerTypes()
           
protected  void initInstantiatorTypes()
           
protected  void initScrollableTypes()
           
 
Methods inherited from class de.kleopatra.view.factory.DefaultComponentTypeMap
addComponentType, addComponentType, addContainerType, addContainerType, addScrollableType, createMap, createSet, getClass, getClassForEntry, getComponentInstance, getComponentMap, getComponentType, getContainerMap, getContainerTypes, getScrollableTypes, shouldScroll
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instantiatorMap

protected java.util.Map instantiatorMap
Constructor Detail

SwingComponentTypeMap

public SwingComponentTypeMap()
Method Detail

getComponentTypes

public java.util.Set getComponentTypes()
Description copied from interface: ComponentTypeMap
returns a Collection of all generic component types.

Specified by:
getComponentTypes in interface ComponentTypeMap
Overrides:
getComponentTypes in class DefaultComponentTypeMap

factoryHook

protected java.lang.Object factoryHook(java.lang.Object componentType)
Description copied from class: DefaultComponentTypeMap
hook for subclasses to use custom component factories. Should return a component instance for the generic type or null. here: returns null;

Overrides:
factoryHook in class DefaultComponentTypeMap

addComponentInstantiator

protected void addComponentInstantiator(java.lang.Object componentType,
                                        SwingComponentTypeMap.Instantiator instantiator)

initScrollableTypes

protected void initScrollableTypes()

initComponentTypes

protected void initComponentTypes()

initContainerTypes

protected void initContainerTypes()

initInstantiatorTypes

protected void initInstantiatorTypes()

getInstantiatorMap

protected java.util.Map getInstantiatorMap()


Copyright © 2003, 2004 SwingEmpire Jeanette Winzenburg. All Rights Reserved.