com.esri.arcgis.beans.toolbar
Class ToolItem

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

public class ToolItem
extends java.lang.Object

A virtual tool item used in the toolbar design time.


Field Summary
static java.lang.String PKG_CLASS_SEPARATOR
           
static java.lang.String SEPARATOR
           
static javax.swing.ImageIcon TOOL_BLANK
           
static javax.swing.ImageIcon TOOL_ICON
           
static javax.swing.ImageIcon TOOL_ICONTEXT
           
static javax.swing.ImageIcon TOOL_TEXT
           
 
Constructor Summary
ToolItem()
           
ToolItem(java.lang.String itemString)
           
ToolItem(java.lang.String name, java.lang.String className, java.lang.String icon)
          Constructs a ToolItem
 
Method Summary
protected  java.lang.String debugToString()
          seriallizes the item object into a string for readable format
 int getCategory()
          A category the item belongs to.
 java.lang.String getClassName()
          Returns the class name
 java.lang.String getIconName()
          Sets the icon name
 javax.swing.ImageIcon getImageIcon()
          Returns the icon image the item represented
 int getIndex()
          Returns the position of item in the toolbar.
 java.lang.String getName()
          Gets the tool item name
 java.lang.String getPackageName()
          Returns the package name
 int getStyle()
          Returns the enumeration stlye integer.
 java.lang.String getSubType()
          Returns the subtype
 boolean isBeginGroup()
          Returns true if the toolbar would begin to group.
 java.lang.String serializeToString()
          seriallizes the item object into a string.
 void setBeginGroup(boolean group)
          Sets if the toolbar begins to group from the item.
 void setCategory(int category)
          Assign the item to a category.
 void setIndex(int index)
          Sets the position of item in the toolbar.
 void setPackageName(java.lang.String pkg)
          Sets the package name
 void setStyle(int style)
          Sets the item display style
 void setSubType(java.lang.String type)
          Sets the subtype
 java.lang.String toString()
          Returns the tool name;
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SEPARATOR

public static final java.lang.String SEPARATOR
See Also:
Constant Field Values

PKG_CLASS_SEPARATOR

public static final java.lang.String PKG_CLASS_SEPARATOR
See Also:
Constant Field Values

TOOL_ICON

public static javax.swing.ImageIcon TOOL_ICON

TOOL_TEXT

public static javax.swing.ImageIcon TOOL_TEXT

TOOL_ICONTEXT

public static javax.swing.ImageIcon TOOL_ICONTEXT

TOOL_BLANK

public static javax.swing.ImageIcon TOOL_BLANK
Constructor Detail

ToolItem

public ToolItem()

ToolItem

public ToolItem(java.lang.String name,
                java.lang.String className,
                java.lang.String icon)
Constructs a ToolItem

Parameters:
name - String - descriptive name
className - String - class name
icon - String - icon name

ToolItem

public ToolItem(java.lang.String itemString)
Parameters:
itemString - String
Method Detail

getName

public java.lang.String getName()
Gets the tool item name

Returns:
String

getClassName

public java.lang.String getClassName()
Returns the class name

Returns:
String

getIconName

public java.lang.String getIconName()
Sets the icon name

Returns:
String

setSubType

public void setSubType(java.lang.String type)
Sets the subtype

Parameters:
type - String

getSubType

public java.lang.String getSubType()
Returns the subtype

Returns:
String

setPackageName

public void setPackageName(java.lang.String pkg)
Sets the package name

Parameters:
pkg - String

getPackageName

public java.lang.String getPackageName()
Returns the package name

Returns:
String

setStyle

public void setStyle(int style)
Sets the item display style

Parameters:
style - int - an enumeration integer
See Also:
esriCommandStyles

getStyle

public int getStyle()
Returns the enumeration stlye integer.

Returns:
int an enumeration integer

setBeginGroup

public void setBeginGroup(boolean group)
Sets if the toolbar begins to group from the item.

Parameters:
group - boolean true/false

isBeginGroup

public boolean isBeginGroup()
Returns true if the toolbar would begin to group.

Returns:
boolean - true/false

setIndex

public void setIndex(int index)
Sets the position of item in the toolbar.

Parameters:
index - int a valid integer

getIndex

public int getIndex()
Returns the position of item in the toolbar.

Returns:
int an integer.

getCategory

public int getCategory()
A category the item belongs to.

Returns:
int an integer

setCategory

public void setCategory(int category)
Assign the item to a category.

Parameters:
category - int an integer
See Also:
ToolbarBeanConstants

getImageIcon

public javax.swing.ImageIcon getImageIcon()
Returns the icon image the item represented

Returns:
ImageIcon

serializeToString

public java.lang.String serializeToString()
seriallizes the item object into a string.

Returns:
String - a string to represent the item object

toString

public java.lang.String toString()
Returns the tool name;

Overrides:
toString in class java.lang.Object
Returns:
String

debugToString

protected java.lang.String debugToString()
seriallizes the item object into a string for readable format

Returns:
String - a string to represent the item object