|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.interop.Dispatch com.esri.arcgis.controls.IToolbarItemProxy
public class IToolbarItemProxy
Provides access to members that control ToolbarControl items.
A ToolbarItem represents a Command, Tool, ToolControl, Menu or Palette item on the ToolbarControl. These items generally appear as buttons however, a ToolControl will provide its own window, and will typically be a combo box.
Field Summary | |
---|---|
boolean |
noncastable
|
Fields inherited from class com.esri.arcgis.interop.Dispatch |
---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
Constructor Summary | |
---|---|
|
IToolbarItemProxy()
|
|
IToolbarItemProxy(Object obj)
|
protected |
IToolbarItemProxy(Object obj,
String iid)
|
Method Summary | |
---|---|
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
ICommand |
getCommand()
The command used by the item. |
Object |
getCustomProperty()
A property to associate data with an item. |
int |
getGroupSpacing()
The width of the group separator in pixels if present. |
IToolbarMenu |
getMenu()
If the item is a menu, this property is a ToolbarMenu object. |
int |
getStyle()
The style of the item. |
IUID |
getUID()
The UID of the command used by the item, which may be empty. |
boolean |
isGroup()
Indicates if a group separator exists to the left of the item on the ToolbarControl. |
void |
removeListener(String iidStr,
Object theListener)
|
void |
setCustomProperty(Object pVal)
A property to associate data with an item. |
void |
setGroup(boolean pVal)
Indicates if a group separator exists to the left of the item on the ToolbarControl. |
void |
setGroupSpacing(int pVal)
The width of the group separator in pixels if present. |
void |
setStyle(int pVal)
The style of the item. |
Methods inherited from class com.esri.arcgis.interop.Dispatch |
---|
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public boolean noncastable
Constructor Detail |
---|
public IToolbarItemProxy()
public IToolbarItemProxy(Object obj) throws IOException
IOException
protected IToolbarItemProxy(Object obj, String iid) throws IOException
IOException
Method Detail |
---|
public void addListener(String iidStr, Object theListener, Object theSource) throws IOException
addListener
in class com.esri.arcgis.interop.Dispatch
IOException
public void removeListener(String iidStr, Object theListener) throws IOException
removeListener
in class com.esri.arcgis.interop.Dispatch
IOException
public ICommand getCommand() throws IOException, AutomationException
Returns the ICommand object used by the Command, Tool or ToolControl item. If the item is using a Menu, an IMultiItem object or Palette Nothing is returned.
getCommand
in interface IToolbarItem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IUID getUID() throws IOException, AutomationException
Returns the UID of the Command used by the item. The method will return Nothing if the command has been added to the CommandPool using either the AddCommand or IToolbarControl::AddItem methods without a UID or ProgID supplied.
The UID objects are managed in association with objects implementing ICommand by the IToolbarControl::CommandPool.
getUID
in interface IToolbarItem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isGroup() throws IOException, AutomationException
Determines whether a separator exists to the left of the item on the ToolbarControl. The separator will appear as verticle line. By default Group is False.
isGroup
in interface IToolbarItem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setGroup(boolean pVal) throws IOException, AutomationException
setGroup
in interface IToolbarItem
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getGroupSpacing() throws IOException, AutomationException
Determines the width in pixels of a Group separator if it exists to the left the of the item on the ToolbarControl. The separator appears as verticle line and is drawn to the left of the GroupSpacing. A zero value sets the GroupSpacing to its default value (currently 4 pixels).
getGroupSpacing
in interface IToolbarItem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setGroupSpacing(int pVal) throws IOException, AutomationException
setGroupSpacing
in interface IToolbarItem
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getStyle() throws IOException, AutomationException
Determines the Style of the item on the ToolbarControl, and whether the Caption, or Bitmap or Caption and Bitmap defined within the Command are displayed on the ToolbarControl. By default the Style is esriCommandStyleIconOnly. If the item has a Menu then the Style is fixed to a esriCommandStyleMenuBar Style.
getStyle
in interface IToolbarItem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setStyle(int pVal) throws IOException, AutomationException
setStyle
in interface IToolbarItem
pVal
- A com.esri.arcgis.systemUI.esriCommandStyles constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object getCustomProperty() throws IOException, AutomationException
Use the CustomProperty to associate any useful data with the ToolbarItem. This is similar to a 'Tag' property, and can be use to store strings, numbers and objects.
getCustomProperty
in interface IToolbarItem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setCustomProperty(Object pVal) throws IOException, AutomationException
setCustomProperty
in interface IToolbarItem
pVal
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IToolbarMenu getMenu() throws IOException, AutomationException
Returns the IToolbarMenu used by the item if the item represents a menu. If the item does not use a menu Nothing is returned.
getMenu
in interface IToolbarItem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |