de.kleopatra.view.factory
Interface UIFactory

All Known Implementing Classes:
AWTUIFactory, SwingUIFactory

public interface UIFactory

Factory to create components as appropriate for a concrete widget toolkit.

Version:
$Revision: 1.1.1.1 $ - $Date: 2003/10/14 11:13:47 $
Author:
(C) Jeanette Winzenburg, Berlin

Method Summary
 java.awt.Component createComponent(java.lang.Object componentID, java.lang.Object componentType)
          returns the most appropriate Component based on componentID and componentType.
 java.awt.Container createDefaultContainer(java.lang.Object componentID)
          POST: result !
 java.lang.Object getComponentID(java.awt.Component comp)
          tries to extract the componentID from a given comp.
 ComponentTypeMap getComponentTypeMap()
          returns the currently used ComponentTypeMap.
 PresentationManager getPresentationManager()
           
 void setComponentTypeMap(ComponentTypeMap componentTypes)
          sets map used to map between generic componentType <--> component class in the context of this toolkit.
 

Method Detail

createComponent

public java.awt.Component createComponent(java.lang.Object componentID,
                                          java.lang.Object componentType)
returns the most appropriate Component based on componentID and componentType. it's up to the factory to decide which is appropriate. POST: result != null.


setComponentTypeMap

public void setComponentTypeMap(ComponentTypeMap componentTypes)
sets map used to map between generic componentType <--> component class in the context of this toolkit. PRE: componentTypes != null


getComponentTypeMap

public ComponentTypeMap getComponentTypeMap()
returns the currently used ComponentTypeMap. Clients can use it to add type <--> class mappings at any time.


getPresentationManager

public PresentationManager getPresentationManager()

getComponentID

public java.lang.Object getComponentID(java.awt.Component comp)
tries to extract the componentID from a given comp. result may be null. PRE: comp != null


createDefaultContainer

public java.awt.Container createDefaultContainer(java.lang.Object componentID)
POST: result != null.



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