de.kleopatra.view.presentation
Class DefaultPresentationManager

java.lang.Object
  extended byde.kleopatra.view.presentation.DefaultPresentationManager
All Implemented Interfaces:
PresentationManager

public class DefaultPresentationManager
extends java.lang.Object
implements PresentationManager

PresentationManager for Swing.

Version:
$Revision: 1.4 $ - $Date: 2004/10/04 12:18:34 $
Author:
(C) Jeanette Winzenburg, Berlin

Nested Class Summary
static class DefaultPresentationManager.ButtonCustomizer
          Customizer for AbstractButtons.
static class DefaultPresentationManager.DefaultComponentCustomizer
          Default: sets tooltip.
static class DefaultPresentationManager.LabelCustomizer
          Customizer for JLabel.
static class DefaultPresentationManager.PanelCustomizer
          .
static class DefaultPresentationManager.PlaceHolderCustomizer
          set tooltip, text of JTitledPlaceHolder.
static class DefaultPresentationManager.SeparatorCustomizer
          set tooltip, text of JTitledSeparator.
 
Field Summary
protected  CustomizerMap customizerMap
           
protected static java.lang.Object tempResourceID
           
 
Fields inherited from interface de.kleopatra.view.presentation.PresentationManager
LABEL_POSTFIX
 
Constructor Summary
DefaultPresentationManager()
           
 
Method Summary
protected  CustomizerMap createCustomizerMap()
           
 PresentationDescription createPresentationDescription(java.awt.Component comp)
           
 void customize(java.awt.Container container, Presentation presentation)
          removed: manager is responsible, don't try to interfere public ComponentCustomizer getCustomizer(Component comp);
 void customize(java.awt.Container container, Presentation presentation, java.lang.Class targetClass)
           
protected  java.awt.Component findComponent(java.awt.Container container, java.lang.Object id)
           
static ActionFactory getActionFactory()
          returns current ActionFactory.
protected  ComponentCustomizer getCustomizer(java.awt.Component comp)
          removed from public interface.
 CustomizerMap getCustomizerMap()
           
static java.lang.Object getGroupID()
          returns current presentation/groupID.
protected  java.lang.Object getProbableLabelID(java.lang.Object id)
           
protected  void initCustomizers()
           
 void setActionFactory(ActionFactory actionFactory)
          Set the actionFactory to use if different from the shared one.
 void setCustomizerMap(CustomizerMap map)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

customizerMap

protected CustomizerMap customizerMap

tempResourceID

protected static java.lang.Object tempResourceID
Constructor Detail

DefaultPresentationManager

public DefaultPresentationManager()
Method Detail

customize

public void customize(java.awt.Container container,
                      Presentation presentation)
Description copied from interface: PresentationManager
removed: manager is responsible, don't try to interfere public ComponentCustomizer getCustomizer(Component comp);

Specified by:
customize in interface PresentationManager

customize

public void customize(java.awt.Container container,
                      Presentation presentation,
                      java.lang.Class targetClass)
Specified by:
customize in interface PresentationManager

createPresentationDescription

public PresentationDescription createPresentationDescription(java.awt.Component comp)
Specified by:
createPresentationDescription in interface PresentationManager

getCustomizerMap

public CustomizerMap getCustomizerMap()
Specified by:
getCustomizerMap in interface PresentationManager

setCustomizerMap

public void setCustomizerMap(CustomizerMap map)
Specified by:
setCustomizerMap in interface PresentationManager

setActionFactory

public void setActionFactory(ActionFactory actionFactory)
Set the actionFactory to use if different from the shared one. NOTE: used at design-time only (to decouple actions in preview from application scope actions).

Specified by:
setActionFactory in interface PresentationManager
Parameters:
actionFactory -

getActionFactory

public static ActionFactory getActionFactory()
returns current ActionFactory. HACK: valid during lifetime of customization of container only.

Returns:
actionFactory to register actions.

getGroupID

public static java.lang.Object getGroupID()
returns current presentation/groupID. HACK: valid during lifetime of customization of container only.

Returns:
presentationID of currently customized container.

getProbableLabelID

protected java.lang.Object getProbableLabelID(java.lang.Object id)

getCustomizer

protected ComponentCustomizer getCustomizer(java.awt.Component comp)
removed from public interface.


findComponent

protected java.awt.Component findComponent(java.awt.Container container,
                                           java.lang.Object id)

initCustomizers

protected void initCustomizers()

createCustomizerMap

protected CustomizerMap createCustomizerMap()


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