Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.scopemvc.model.beans
Class BeansEditorManager  view BeansEditorManager download BeansEditorManager.java

java.lang.Object
  extended byorg.scopemvc.core.ModelManager
      extended byorg.scopemvc.core.EditorManager
          extended byorg.scopemvc.model.beans.BeansEditorManager

public class BeansEditorManager
extends org.scopemvc.core.EditorManager

BeansEditorManager is a org.scopemvc.core.EditorManager that handles creation of editors and viewer for properties of JavaBean model objects.

Currently this ignores BeanInfo and uses the defaults in org.scopemvc.view.util.PropertyEditorFactory since the BeanInfo API has no way to distinguish different View implementations and doesn't have a getter for a viewer, just an editor. We could handle this a little better by type-checking the BeanInfo property editor for instanceof JComponent (and View) to see if it has a Swing impl, however that doesn't really work for arbitrary view types.

Version:
$Revision: 1.4 $ $Date: 2002/01/26 09:46:20 $

Field Summary
private static org.apache.commons.logging.Log LOG
           
 
Fields inherited from class org.scopemvc.core.EditorManager
 
Fields inherited from class org.scopemvc.core.ModelManager
modelClass
 
Constructor Summary
BeansEditorManager()
           
 
Method Summary
 org.scopemvc.core.View getEditor(java.lang.String inViewType, java.lang.Object inModel, org.scopemvc.core.Selector inSelector)
           
 org.scopemvc.core.View getViewer(java.lang.String inViewType, java.lang.Object inModel, org.scopemvc.core.Selector inSelector)
           
 
Methods inherited from class org.scopemvc.core.EditorManager
getInstance, getInstance
 
Methods inherited from class org.scopemvc.core.ModelManager
make
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static final org.apache.commons.logging.Log LOG
Constructor Detail

BeansEditorManager

public BeansEditorManager()
Method Detail

getEditor

public org.scopemvc.core.View getEditor(java.lang.String inViewType,
                                        java.lang.Object inModel,
                                        org.scopemvc.core.Selector inSelector)

getViewer

public org.scopemvc.core.View getViewer(java.lang.String inViewType,
                                        java.lang.Object inModel,
                                        org.scopemvc.core.Selector inSelector)