All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sgi.sysadm.ui.ItemTableFactory

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

public class ItemTableFactory
extends Object
implements ItemTableProperties
A class that knows how to construct an ItemTable. If you don't want to use the default ItemTablePanel or ItemTableController, you must subclass this class. You do not need to subclass this class to get an ItemTable that uses an ItemTableColumnRenderer. See the description of getItemTableColumnRenderer() for more information.


Constructor Index

 o ItemTableFactory(String, ItemTableContext)
Constructor

Method Index

 o createItemTable()
Creates an ItemTable using the results of the various get() methods and the values passed into the constructor.
 o getItemTableColumnRenderer()
Returns the ItemTableColumnRenderer to use with this ItemTable.
 o getItemTableController()
Returns the ItemTableController to use in the ItemTable.
 o getItemTablePanel()
Returns the ItemTablePanel to use for the ItemTable.

Constructors

 o ItemTableFactory
 public ItemTableFactory(String categoryName,
                         ItemTableContext ItemTableContext)
Constructor

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

Methods

 o createItemTable
 public ItemTable createItemTable() throws ItemTableException
Creates an ItemTable using the results of the various get() methods and the values passed into the constructor.

Returns:
An ItemTable
Throws: ItemTableException
if there is an error while creating the ItemTable.
 o getItemTableController
 protected ItemTableController getItemTableController() throws ItemTableException
Returns the ItemTableController to use in the ItemTable. By default, this method returns the ItemTableController base class that is constructed by passing categoryName and ItemTableContext (as passed to the ItemTableFactory constructor) to the constructor of ItemTableController. Override this method to use your own ItemTableController.

Throws: ItemTableException
if there is an error while creating the ItemTable.
 o getItemTablePanel
 protected ItemTablePanel getItemTablePanel() throws ItemTableException
Returns the ItemTablePanel to use for the ItemTable. By default, this method returns the ItemTablePanel base class that is constructed by passing ItemTableContext (as passed to the ItemTableFactory constructor) to the constructor of ItemTablePanel. Override this method to use your own ItemTablePanel subclass.

Throws: ItemTableException
if there is an error while creating the ItemTable.
 o getItemTableColumnRenderer
 protected ItemTableColumnRenderer getItemTableColumnRenderer() throws ItemTableException
Returns the ItemTableColumnRenderer to use with this ItemTable. By default, this method first checks to see if there is a resource specifying the class to use (COLUMN_RENDERER). If this resource is not found, this method attempts to load a class with the name {categoryName}CategoryRenderer If that class is not found, this method returns null.

Throws: ItemTableException
Thrown 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