com.esri.arcgis.beans.toolbar
Class ToolbarBeanToolMgr

java.lang.Object
  extended by com.esri.arcgis.beans.toolbar.ToolbarBeanToolMgr

public class ToolbarBeanToolMgr
extends Object

The class provides the support for the class ToolbarBeanItemsPanel. It parses the and dynamically supplies the user selected tools for above UI panel.


Method Summary
 Object[] getCategories()
          Returns the available categories.
static int getCategory(String categoryDesc)
          Returns the category enumeration index for given the category string
static ToolbarBeanToolMgr getDefault()
          Instantiates an instance of the class.
 String getIconDirectory(int category)
          Returns the tool package and class name.
 String getToolItemDescriptiveName(int pkgId, String className)
          Returns the ToolItem the descriptive name for the given tool's class name
 String getToolItemIconName(int pkgId, String className)
          Returns the ToolItem the icon name for the given tool's class name
 Object[] getToolItems(int categoryName)
          Returns the available tools
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDefault

public static ToolbarBeanToolMgr getDefault()
Instantiates an instance of the class.

Returns:
ToolbarBeanToolMgr

getCategories

public final Object[] getCategories()
Returns the available categories.

Returns:
String[]

getCategory

public static final int getCategory(String categoryDesc)
Returns the category enumeration index for given the category string

Parameters:
categoryDesc - String
Returns:
int

getToolItems

public final Object[] getToolItems(int categoryName)
Returns the available tools

Returns:
ToolItem[] an array of tools

getToolItemIconName

public String getToolItemIconName(int pkgId,
                                  String className)
Returns the ToolItem the icon name for the given tool's class name

Parameters:
pkgId - int
className - String
Returns:
String

getToolItemDescriptiveName

public String getToolItemDescriptiveName(int pkgId,
                                         String className)
Returns the ToolItem the descriptive name for the given tool's class name

Parameters:
pkgId - int
className - String
Returns:
String

getIconDirectory

public String getIconDirectory(int category)
Returns the tool package and class name.

Parameters:
category - int an integer for the category id
cmdDesc - String an string describing the tool
Returns:
String a combined package/class name