com.esri.arcgis.beans.toolbar
Class ToolbarBeanToolMgr
java.lang.Object
com.esri.arcgis.beans.toolbar.ToolbarBeanToolMgr
public class ToolbarBeanToolMgr
- extends java.lang.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 |
java.lang.Object[] |
getCategories()
Returns the available categories. |
static int |
getCategory(java.lang.String categoryDesc)
Returns the category enumeration index for given the category string |
static ToolbarBeanToolMgr |
getDefault()
Instantiates an instance of the class. |
java.lang.String |
getIconDirectory(int category)
Returns the tool package and class name. |
java.lang.String |
getToolItemDescriptiveName(int pkgId,
java.lang.String className)
Returns the ToolItem the descriptive name for the given tool's class name |
java.lang.String |
getToolItemIconName(int pkgId,
java.lang.String className)
Returns the ToolItem the icon name for the given tool's class name |
java.lang.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 |
getDefault
public static ToolbarBeanToolMgr getDefault()
- Instantiates an instance of the class.
- Returns:
- ToolbarBeanToolMgr
getCategories
public final java.lang.Object[] getCategories()
- Returns the available categories.
- Returns:
- String[]
getCategory
public static final int getCategory(java.lang.String categoryDesc)
- Returns the category enumeration index for given the category string
- Parameters:
categoryDesc
- String
- Returns:
- int
getToolItems
public final java.lang.Object[] getToolItems(int categoryName)
- Returns the available tools
- Returns:
- ToolItem[] an array of tools
getToolItemIconName
public java.lang.String getToolItemIconName(int pkgId,
java.lang.String className)
- Returns the ToolItem the icon name for the given tool's class name
- Parameters:
pkgId
- intclassName
- String
- Returns:
- String
getToolItemDescriptiveName
public java.lang.String getToolItemDescriptiveName(int pkgId,
java.lang.String className)
- Returns the ToolItem the descriptive name for the given tool's class name
- Parameters:
pkgId
- intclassName
- String
- Returns:
- String
getIconDirectory
public java.lang.String getIconDirectory(int category)
- Returns the tool package and class name.
- Parameters:
category
- int an integer for the category id
- Returns:
- String a combined package/class name