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.
-
ItemTableFactory(String, ItemTableContext)
- Constructor
-
createItemTable()
-
Creates an ItemTable using the results of the various get()
methods and the values passed into the constructor.
-
getItemTableColumnRenderer()
- Returns the ItemTableColumnRenderer to use with this
ItemTable.
-
getItemTableController()
- Returns the ItemTableController to use in the ItemTable.
-
getItemTablePanel()
-
Returns the ItemTablePanel to use for the ItemTable.
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
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.
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.
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.
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