|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.beans.toolbar.ToolItem
public class ToolItem
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 |
---|
public static final java.lang.String SEPARATOR
public static final java.lang.String PKG_CLASS_SEPARATOR
public static javax.swing.ImageIcon TOOL_ICON
public static javax.swing.ImageIcon TOOL_TEXT
public static javax.swing.ImageIcon TOOL_ICONTEXT
public static javax.swing.ImageIcon TOOL_BLANK
Constructor Detail |
---|
public ToolItem()
public ToolItem(java.lang.String name, java.lang.String className, java.lang.String icon)
name
- String - descriptive nameclassName
- String - class nameicon
- String - icon namepublic ToolItem(java.lang.String itemString)
itemString
- StringMethod Detail |
---|
public java.lang.String getName()
public java.lang.String getClassName()
public java.lang.String getIconName()
public void setSubType(java.lang.String type)
type
- Stringpublic java.lang.String getSubType()
public void setPackageName(java.lang.String pkg)
pkg
- Stringpublic java.lang.String getPackageName()
public void setStyle(int style)
style
- int - an enumeration integeresriCommandStyles
public int getStyle()
public void setBeginGroup(boolean group)
group
- boolean true/falsepublic boolean isBeginGroup()
public void setIndex(int index)
index
- int a valid integerpublic int getIndex()
public int getCategory()
public void setCategory(int category)
category
- int an integerToolbarBeanConstants
public javax.swing.ImageIcon getImageIcon()
public java.lang.String serializeToString()
public java.lang.String toString()
toString
in class java.lang.Object
protected java.lang.String debugToString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |