org.nakedobjects.viewer.classic.view
Class StandardViewerFactory

java.lang.Object
  extended byorg.nakedobjects.viewer.classic.view.ViewerFactory
      extended byorg.nakedobjects.viewer.classic.view.StandardViewerFactory
Direct Known Subclasses:
ApplicationViewerFactory

public class StandardViewerFactory
extends ViewerFactory


Field Summary
static ViewBackground clearBackground
           
static ViewBorder emptyBorder
           
static View form
           
static View icon
           
static View list
           
static View smallIcon
           
static View text
           
static View topForm
           
static View topList
           
 
Constructor Summary
StandardViewerFactory()
           
 
Method Summary
 ObjectViewer createCollectionAttributeViewer(NakedObject object, OneToManyAssociation attribute)
          Creates an ObjectViewer for viewing a collection which is an Attribute of an NakedObject as a field within a form.
 ObjectViewer createCollectionElementViewer(NakedObject object)
          Creates an ObjectViewer for viewing a collection which is an element of another collection
 ObjectViewer createCollectionViewer(NakedObject object)
          Creates an ObjectViewer for viewing a NakedCollection in a top level window.
 ObjectViewer createElementViewer(NakedObject object)
          Creates an ObjectViewer for viewing an NakedObject with a NakedCollection.
 ObjectViewer createInstanceElementViewer(NakedObject object)
           
 ObjectViewer createInternalCollectionAttributeViewer(NakedObject object, OneToManyAssociation attribute)
          Creates an ObjectViewer for viewing a collection which is an Attribute of an NakedObject as a field within a form.
 ObjectViewer createObjectAttributeViewer(NakedObject object, Association attribute)
          Creates an ObjectViewer for viewing an Attribute of an NakedObject as a field within a form.
 ObjectViewer createObjectCellViewer(NakedObject object)
          Creates an ObjectViewer for viewing an NakedObject as a cell within a row within a table
 ObjectViewer createObjectElementViewer(NakedObject object)
          Creates an ObjectViewer for viewing an expressive object which is an element of a collection
 ObjectViewer createObjectRowViewer(NakedObject object, TableLayout layout)
          Creates an ObjectViewer for viewing an NakedObject in a table view.
 ObjectViewer createObjectViewer(NakedObject object)
          Creates an ObjectViewer for viewing an NakedObject in a top level window.
 
Methods inherited from class org.nakedobjects.viewer.classic.view.ViewerFactory
getInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

emptyBorder

public static final ViewBorder emptyBorder

clearBackground

public static final ViewBackground clearBackground

icon

public static final View icon

smallIcon

public static final View smallIcon

text

public static final View text

topForm

public static final View topForm

form

public static final View form

topList

public static final View topList

list

public static final View list
Constructor Detail

StandardViewerFactory

public StandardViewerFactory()
Method Detail

createCollectionAttributeViewer

public ObjectViewer createCollectionAttributeViewer(NakedObject object,
                                                    OneToManyAssociation attribute)
Description copied from class: ViewerFactory
Creates an ObjectViewer for viewing a collection which is an Attribute of an NakedObject as a field within a form.

Specified by:
createCollectionAttributeViewer in class ViewerFactory
Parameters:
object - the expressive object to be viewed
Returns:
ObjectViewer for viewing a collection as a field.

createCollectionElementViewer

public ObjectViewer createCollectionElementViewer(NakedObject object)
Description copied from class: ViewerFactory
Creates an ObjectViewer for viewing a collection which is an element of another collection

Specified by:
createCollectionElementViewer in class ViewerFactory
Parameters:
object - the expressive object to be viewed
Returns:
ObjectViewer for viewing a collection within a collection.

createCollectionViewer

public ObjectViewer createCollectionViewer(NakedObject object)
Description copied from class: ViewerFactory
Creates an ObjectViewer for viewing a NakedCollection in a top level window.

Specified by:
createCollectionViewer in class ViewerFactory
Parameters:
object - the collection to be viewed
Returns:
ObjectViewer for viewing a collection in its own window

createElementViewer

public ObjectViewer createElementViewer(NakedObject object)
Description copied from class: ViewerFactory
Creates an ObjectViewer for viewing an NakedObject with a NakedCollection.

Specified by:
createElementViewer in class ViewerFactory
Parameters:
object - the expressive object to be viewed
Returns:
ObjectViewer for viewing an expressive object within a view of the collection which this element is part of

createInternalCollectionAttributeViewer

public ObjectViewer createInternalCollectionAttributeViewer(NakedObject object,
                                                            OneToManyAssociation attribute)
Description copied from class: ViewerFactory
Creates an ObjectViewer for viewing a collection which is an Attribute of an NakedObject as a field within a form.

Specified by:
createInternalCollectionAttributeViewer in class ViewerFactory
Parameters:
object - the expressive object to be viewed
Returns:
ObjectViewer for viewing a collection as a field.

createObjectAttributeViewer

public ObjectViewer createObjectAttributeViewer(NakedObject object,
                                                Association attribute)
Description copied from class: ViewerFactory
Creates an ObjectViewer for viewing an Attribute of an NakedObject as a field within a form.

Specified by:
createObjectAttributeViewer in class ViewerFactory
Parameters:
object - the expressive object to be viewed
Returns:
ObjectViewer for viewing an expressive object as a field.

createObjectCellViewer

public ObjectViewer createObjectCellViewer(NakedObject object)
Description copied from class: ViewerFactory
Creates an ObjectViewer for viewing an NakedObject as a cell within a row within a table

Specified by:
createObjectCellViewer in class ViewerFactory
Parameters:
object - the expressive object to be viewed
Returns:
ObjectViewer for viewing an expressive object as a cell

createObjectElementViewer

public ObjectViewer createObjectElementViewer(NakedObject object)
Description copied from class: ViewerFactory
Creates an ObjectViewer for viewing an expressive object which is an element of a collection

Specified by:
createObjectElementViewer in class ViewerFactory
Parameters:
object - the expressive object to be viewed
Returns:
ObjectViewer for viewing an object within a collection.

createInstanceElementViewer

public ObjectViewer createInstanceElementViewer(NakedObject object)
Specified by:
createInstanceElementViewer in class ViewerFactory

createObjectRowViewer

public ObjectViewer createObjectRowViewer(NakedObject object,
                                          TableLayout layout)
Description copied from class: ViewerFactory
Creates an ObjectViewer for viewing an NakedObject in a table view.

Specified by:
createObjectRowViewer in class ViewerFactory
Parameters:
object - the expressive object to be viewed
Returns:
ObjectViewer for viewing an expressive object as a row

createObjectViewer

public ObjectViewer createObjectViewer(NakedObject object)
Description copied from class: ViewerFactory
Creates an ObjectViewer for viewing an NakedObject in a top level window.

Specified by:
createObjectViewer in class ViewerFactory
Parameters:
object - the expressive object to be viewed
Returns:
ObjectViewer for viewing an expressive object in its own window