org.nakedobjects.viewer.lightweight.util
Class ViewFactory

java.lang.Object
  extended byorg.nakedobjects.viewer.lightweight.util.ViewFactory
All Implemented Interfaces:
DebugInfo

public class ViewFactory
extends java.lang.Object
implements DebugInfo

This class holds all the different view types that all the different objects can be viewed as.


Method Summary
 void addClassPrototype(DesktopView view)
           
 void addClosedPrototype(java.lang.Class forType, InternalView view)
           
 void addDragOutlinePrototype(View view)
           
 void addDragPrototype(View view)
           
 void addEmptyFieldPrototype(InternalView view)
           
 void addInternalViewPrototype(java.lang.Class forType, InternalView view)
           
 void addRootViewPrototype(java.lang.Class forType, RootView view)
           
 java.util.Enumeration closedViews(NakedObject object)
           
 DesktopView createClassView(NakedClass object)
           
 DragView createDragOutline(Naked object)
           
 DragView createDragView(Naked object)
           
 InternalView createFieldView(Naked object, Field field)
           
 DesktopView createIconView(Naked object, Field field)
           
 InternalView createInternalView(Naked forObject, Field asField, boolean iconized)
           
 InternalView createOpenView(Naked object, Field field)
           
 RootView createRootView(Naked object)
           
 java.lang.String getDebugData()
          Debug details describing the object being investigated
 java.lang.String getDebugTitle()
          the title for the debug information
static ViewFactory getViewFactory()
           
 boolean hasClosedViews(Naked object)
           
 boolean hasInternalViews(Naked object)
           
 boolean hasRootViews(Naked object)
           
 java.util.Enumeration internalViews(NakedObject object)
           
 java.util.Enumeration rootViews(NakedObject object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getViewFactory

public static ViewFactory getViewFactory()

getDebugData

public java.lang.String getDebugData()
Description copied from interface: DebugInfo
Debug details describing the object being investigated

Specified by:
getDebugData in interface DebugInfo

getDebugTitle

public java.lang.String getDebugTitle()
Description copied from interface: DebugInfo
the title for the debug information

Specified by:
getDebugTitle in interface DebugInfo

addClassPrototype

public void addClassPrototype(DesktopView view)

addClosedPrototype

public void addClosedPrototype(java.lang.Class forType,
                               InternalView view)

addDragPrototype

public void addDragPrototype(View view)

addDragOutlinePrototype

public void addDragOutlinePrototype(View view)

addEmptyFieldPrototype

public void addEmptyFieldPrototype(InternalView view)

addInternalViewPrototype

public void addInternalViewPrototype(java.lang.Class forType,
                                     InternalView view)

addRootViewPrototype

public void addRootViewPrototype(java.lang.Class forType,
                                 RootView view)

closedViews

public java.util.Enumeration closedViews(NakedObject object)

createClassView

public DesktopView createClassView(NakedClass object)

createDragView

public DragView createDragView(Naked object)

createDragOutline

public DragView createDragOutline(Naked object)

createFieldView

public InternalView createFieldView(Naked object,
                                    Field field)

createIconView

public DesktopView createIconView(Naked object,
                                  Field field)

createInternalView

public InternalView createInternalView(Naked forObject,
                                       Field asField,
                                       boolean iconized)

createOpenView

public InternalView createOpenView(Naked object,
                                   Field field)

createRootView

public RootView createRootView(Naked object)

hasClosedViews

public boolean hasClosedViews(Naked object)

hasInternalViews

public boolean hasInternalViews(Naked object)

hasRootViews

public boolean hasRootViews(Naked object)

internalViews

public java.util.Enumeration internalViews(NakedObject object)

rootViews

public java.util.Enumeration rootViews(NakedObject object)