All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sgi.sysadm.ui.ItemViewFactory

java.lang.Object
   |
   +----com.sgi.sysadm.ui.ItemViewFactory

public class ItemViewFactory
extends Object
implements ItemViewProperties
A class that knows how to construct an ItemView. If you don't want to use the default ItemViewPanel, ItemViewController, TaskShelfController, or TaskShelfPanel, you must subclass this class. You do not need to subclass this class to get an item view that uses an ItemViewFieldRenderer or an ItemViewAdditionalInfoRenderer, See the descriptions of getItemViewFieldRenderer() and getItemViewAdditionalInfoRenderer() for more information.


Constructor Index

 o ItemViewFactory(String, ItemViewContext)
Constructor

Method Index

 o createItemView()
Creates an ItemView using the results of the various get() methods and the values passed into the constructor.
 o getItemViewAdditionalInfoRenderer()
Returns the ItemViewAdditionalInfoRenderer to use with this ItemView.
 o getItemViewController()
Returns the ItemViewController to use in the ItemView.
 o getItemViewFieldRenderer()
Returns the ItemViewFieldRenderer to use with this ItemView.
 o getItemViewPanel()
Returns the ItemViewPanel to use for the ItemView.
 o getTaskShelfController()
Returns the TaskShelfController to use in the ItemView.
 o getTaskShelfPanel()
Returns the TaskShelfPanel to use with this ItemView.

Constructors

 o ItemViewFactory
 public ItemViewFactory(String categoryName,
                        ItemViewContext itemViewContext)
Constructor

Parameters:
categoryName - The fully-qualified name of the category that contains the item you wish to view.
itemViewContext - The ItemViewContext to use

Methods

 o createItemView
 public ItemView createItemView() throws ItemViewException
Creates an ItemView using the results of the various get() methods and the values passed into the constructor.

Returns:
An ItemView
Throws: ItemViewException
if there is an error while creating the ItemView.
 o getItemViewController
 protected ItemViewController getItemViewController()
Returns the ItemViewController to use in the ItemView. By default, this method returns the ItemViewController base class that is constructed by passing categoryName and itemViewContext (as passed to the ItemViewFactory constructor) to the constructor of ItemViewController. Override this method to use your own ItemViewController.

 o getItemViewPanel
 protected ItemViewPanel getItemViewPanel()
Returns the ItemViewPanel to use for the ItemView. By default, this method returns the ItemViewPanel base class that is constructed by passing itemViewContext (as passed to the ItemViewFactory constructor) to the constructor of ItemViewPanel. Override this method to use your own ItemViewPanel subclass.

 o getTaskShelfController
 protected TaskShelfController getTaskShelfController()
Returns the TaskShelfController to use in the ItemView. By default, this method returns the TaskShelfController base class that is constructed by passing the TaskRegistry found in hostContext (as passed to the ItemViewFactory constructor) to the constructor of TaskShelfController. Override this method to use your own TaskShelfController subclass.

 o getTaskShelfPanel
 protected TaskShelfPanel getTaskShelfPanel()
Returns the TaskShelfPanel to use with this ItemView. By default, this method returns the TaskShelfPanel base class that is constructed by passing itemViewContext> (as passed to the ItemViewFactory constructor) to the constructor of TaskShelfPanel. Override this method to use your own TaskShelfPanel subclass.

 o getItemViewFieldRenderer
 protected ItemViewFieldRenderer getItemViewFieldRenderer() throws ItemViewException
Returns the ItemViewFieldRenderer to use with this ItemView. By default, this method first checks to see if there is a resource specifying the class to use (FIELD_RENDERER). If this resource is not found, this method attempts to load a class with the name {categoryName}FieldRenderer If that class is not found, this method returns null.

Throws: ItemViewException
if the class specified in the resource file does not exist, or if the class cannot be loaded.
 o getItemViewAdditionalInfoRenderer
 protected ItemViewAdditionalInfoRenderer getItemViewAdditionalInfoRenderer() throws ItemViewException
Returns the ItemViewAdditionalInfoRenderer to use with this ItemView. By default, this method first checks to see if there is a resource specifying the class to use (ADDITIONAL_INFO_RENDERER). If this resource is not found, this method attempts to load a class with the name {categoryName}AdditionalInfoRenderer If that class is not found, this method returns null.

Throws: ItemViewException
if the class specified in the resource file does not exist, or if the class cannot be loaded.

All Packages  Class Hierarchy  This Package  Previous  Next  Index