|
|||||||||
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 String |
PKG_CLASS_SEPARATOR
|
static String |
SEPARATOR
|
static ImageIcon |
TOOL_BLANK
|
static ImageIcon |
TOOL_ICON
|
static ImageIcon |
TOOL_ICONTEXT
|
static ImageIcon |
TOOL_TEXT
|
Constructor Summary | |
---|---|
ToolItem()
|
|
ToolItem(String itemString)
|
|
ToolItem(String name,
String className,
String icon)
Constructs a ToolItem |
Method Summary | |
---|---|
protected String |
debugToString()
seriallizes the item object into a string for readable format |
int |
getCategory()
A category the item belongs to. |
String |
getClassName()
Returns the class name |
String |
getIconName()
Sets the icon name |
ImageIcon |
getImageIcon()
Returns the icon image the item represented |
int |
getIndex()
Returns the position of item in the toolbar. |
String |
getName()
Gets the tool item name |
String |
getPackageName()
Returns the package name |
int |
getStyle()
Returns the enumeration stlye integer. |
String |
getSubType()
Returns the subtype |
boolean |
isBeginGroup()
Returns true if the toolbar would begin to group. |
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(String pkg)
Sets the package name |
void |
setStyle(int style)
Sets the item display style |
void |
setSubType(String type)
Sets the subtype |
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 String SEPARATOR
public static final String PKG_CLASS_SEPARATOR
public static ImageIcon TOOL_ICON
public static ImageIcon TOOL_TEXT
public static ImageIcon TOOL_ICONTEXT
public static ImageIcon TOOL_BLANK
Constructor Detail |
---|
public ToolItem()
public ToolItem(String name, String className, String icon)
name
- String - descriptive nameclassName
- String - class nameicon
- String - icon namepublic ToolItem(String itemString)
itemString
- StringMethod Detail |
---|
public String getName()
public String getClassName()
public String getIconName()
public void setSubType(String type)
type
- Stringpublic String getSubType()
public void setPackageName(String pkg)
pkg
- Stringpublic 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 ImageIcon getImageIcon()
public String serializeToString()
public String toString()
toString
in class Object
protected String debugToString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |