|
|||||||||
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 com.esri.arcgis.controls.IToolbarItem2Proxy
public class IToolbarItem2Proxy
Provides access to members that control ToolbarControl items.
A ToolbarItem represents a Command, Tool, ToolControl, MultiItem, Menu or Palette on the ToolbarControl.
Field Summary | |
---|---|
boolean |
noncastable
|
Fields inherited from class com.esri.arcgis.interop.Dispatch |
---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
Constructor Summary | |
---|---|
|
IToolbarItem2Proxy()
|
|
IToolbarItem2Proxy(Object obj)
|
protected |
IToolbarItem2Proxy(Object obj,
String iid)
|
Method Summary | |
---|---|
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
Object |
getItemObject()
The Command, Tool, ToolControl, ToolbarMenu, ToolbarPalette or MultiItem used by the item. |
IMultiItem |
getMultiItem()
If the item is a multi-item, this property is a MultiItem object. |
IToolbarPalette |
getPalette()
If the item is a palette, this property is a ToolbarPalette object. |
int |
getType()
The type of item |
void |
removeListener(String iidStr,
Object theListener)
|
Methods inherited from class com.esri.arcgis.controls.IToolbarItemProxy |
---|
getCommand, getCustomProperty, getGroupSpacing, getMenu, getStyle, getUID, isGroup, setCustomProperty, setGroup, setGroupSpacing, setStyle |
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 |
Methods inherited from interface com.esri.arcgis.controls.IToolbarItem |
---|
getCommand, getCustomProperty, getGroupSpacing, getMenu, getStyle, getUID, isGroup, setCustomProperty, setGroup, setGroupSpacing, setStyle |
Field Detail |
---|
public boolean noncastable
Constructor Detail |
---|
public IToolbarItem2Proxy()
public IToolbarItem2Proxy(Object obj) throws IOException
IOException
protected IToolbarItem2Proxy(Object obj, String iid) throws IOException
IOException
Method Detail |
---|
public void addListener(String iidStr, Object theListener, Object theSource) throws IOException
addListener
in class IToolbarItemProxy
IOException
public void removeListener(String iidStr, Object theListener) throws IOException
removeListener
in class IToolbarItemProxy
IOException
public IToolbarPalette getPalette() throws IOException, AutomationException
Returns the IToolbarPalette used by the item if the item represents a palette. If the item does not use a palette Nothing is returned.
getPalette
in interface IToolbarItem2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IMultiItem getMultiItem() throws IOException, AutomationException
Returns the IMultiItem object used by the item if the item represents a multi-item. If the item does not use a multi-item Nothing is returned.
getMultiItem
in interface IToolbarItem2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getType() throws IOException, AutomationException
Returns the type of object returned by ItemObject.
getType
in interface IToolbarItem2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object getItemObject() throws IOException, AutomationException
Returns the ICommand, ITool, IToolControl, IMultiItem, IToolbarMenu2 or IToolbarPalette object from the ToolbarItem. Use the Type property to determine the type of object to be returned before using the ItemObject property.
getItemObject
in interface IToolbarItem2
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 |