de.kleopatra.view.factory
Class AWTUIFactory

java.lang.Object
  extended byde.kleopatra.view.factory.AWTUIFactory
All Implemented Interfaces:
UIFactory

public class AWTUIFactory
extends java.lang.Object
implements UIFactory

minimal implementation for testing AWT.

Version:
$Revision: 1.1.1.1 $ - $Date: 2004/05/05 10:02:18 $
Author:
(C) Jeanette Winzenburg, Berlin

Constructor Summary
AWTUIFactory()
           
 
Method Summary
protected  java.awt.Component createAndCustomizeComponent(java.lang.Object componentID, java.lang.Object componentType)
           
 java.awt.Component createComponent(java.lang.Object componentID, java.lang.Object componentType)
          returns the most appropriate Component based on componentID and componentType.
protected  ComponentTypeMap createComponentTypeMap()
           
 java.awt.Container createDefaultContainer(java.lang.Object componentID)
          POST: result !
protected  java.util.Map createMap()
           
protected  PresentationManager createPresentationManager()
           
 java.awt.Component customizeComponentByComponentID(java.awt.Component comp, java.lang.Object componentID)
           
protected  void customizeComponentDefaultProperty(java.awt.Component comp, java.lang.Object componentID)
           
protected  boolean customizeComponentDefaultProperty(java.awt.Component comp, java.lang.Object componentID, java.lang.String methodName)
           
 java.lang.Object getComponentID(java.awt.Component comp)
          tries to extract the componentID from a given comp.
 ComponentTypeMap getComponentTypeMap()
          returns the currently used ComponentTypeMap.
protected  java.lang.Object getDefaultContainerType()
           
protected  java.lang.Object getFallBackComponentType()
           
 PresentationManager getPresentationManager()
           
protected  java.lang.Object guessComponentID(java.awt.Component comp)
           
protected  void installDefaultComponentTypes()
           
 void setComponentTypeMap(ComponentTypeMap componentTypeMap)
          sets map used to map between generic componentType <--> component class in the context of this toolkit.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AWTUIFactory

public AWTUIFactory()
Method Detail

createDefaultContainer

public java.awt.Container createDefaultContainer(java.lang.Object componentID)
Description copied from interface: UIFactory
POST: result != null.

Specified by:
createDefaultContainer in interface UIFactory

createComponent

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

Specified by:
createComponent in interface UIFactory

setComponentTypeMap

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

Specified by:
setComponentTypeMap in interface UIFactory

getComponentTypeMap

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

Specified by:
getComponentTypeMap in interface UIFactory

getPresentationManager

public PresentationManager getPresentationManager()
Specified by:
getPresentationManager in interface UIFactory

createPresentationManager

protected PresentationManager createPresentationManager()

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

Specified by:
getComponentID in interface UIFactory

createAndCustomizeComponent

protected java.awt.Component createAndCustomizeComponent(java.lang.Object componentID,
                                                         java.lang.Object componentType)

customizeComponentByComponentID

public java.awt.Component customizeComponentByComponentID(java.awt.Component comp,
                                                          java.lang.Object componentID)

customizeComponentDefaultProperty

protected void customizeComponentDefaultProperty(java.awt.Component comp,
                                                 java.lang.Object componentID)

customizeComponentDefaultProperty

protected boolean customizeComponentDefaultProperty(java.awt.Component comp,
                                                    java.lang.Object componentID,
                                                    java.lang.String methodName)

guessComponentID

protected java.lang.Object guessComponentID(java.awt.Component comp)

installDefaultComponentTypes

protected void installDefaultComponentTypes()

getFallBackComponentType

protected java.lang.Object getFallBackComponentType()

getDefaultContainerType

protected java.lang.Object getDefaultContainerType()

createComponentTypeMap

protected ComponentTypeMap createComponentTypeMap()

createMap

protected java.util.Map createMap()


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