com.esri.arcgis.controls
Class IToolbarItemProxy

java.lang.Object
  extended by com.esri.arcgis.interop.Dispatch
      extended by com.esri.arcgis.controls.IToolbarItemProxy
All Implemented Interfaces:
IToolbarItem, java.io.Externalizable, java.io.Serializable
Direct Known Subclasses:
IToolbarItem2Proxy

public class IToolbarItemProxy
extends com.esri.arcgis.interop.Dispatch
implements IToolbarItem, java.io.Serializable

Internal use class Proxy for COM Interface 'IToolbarItem'. Generated 3/19/2015 1:21:01 PM from 'C:\ArcGIS\COM\esriControls.olb'

Description: 'Provides access to members that control ToolbarControl items.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =

See Also:
Serialized Form

Field Summary
 boolean noncastable
           
static java.lang.Class targetClass
           
 
Fields inherited from class com.esri.arcgis.interop.Dispatch
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef
 
Fields inherited from interface com.esri.arcgis.controls.IToolbarItem
IID, IIDd92bcf03_4308_11d6_aa0e_00104bb6fc1c
 
Constructor Summary
  IToolbarItemProxy()
          For internal use only
  IToolbarItemProxy(java.lang.Object obj)
           
protected IToolbarItemProxy(java.lang.Object obj, java.lang.String iid)
           
  IToolbarItemProxy(java.lang.String CLSID, java.lang.String host, com.esri.arcgis.interop.AuthInfo authInfo)
           
protected IToolbarItemProxy(java.lang.String CLSID, java.lang.String iid, java.lang.String host, com.esri.arcgis.interop.AuthInfo authInfo)
           
 
Method Summary
 void addListener(java.lang.String iidStr, java.lang.Object theListener, java.lang.Object theSource)
           
 ICommand getCommand()
          The command used by the item.
 java.lang.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(java.lang.String iidStr, java.lang.Object theListener)
           
 void setCustomProperty(java.lang.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

targetClass

public static final java.lang.Class targetClass

noncastable

public boolean noncastable
Constructor Detail

IToolbarItemProxy

public IToolbarItemProxy(java.lang.String CLSID,
                         java.lang.String host,
                         com.esri.arcgis.interop.AuthInfo authInfo)
                  throws java.net.UnknownHostException,
                         java.io.IOException
Throws:
java.net.UnknownHostException
java.io.IOException

IToolbarItemProxy

public IToolbarItemProxy()
For internal use only


IToolbarItemProxy

public IToolbarItemProxy(java.lang.Object obj)
                  throws java.io.IOException
Throws:
java.io.IOException

IToolbarItemProxy

protected IToolbarItemProxy(java.lang.Object obj,
                            java.lang.String iid)
                     throws java.io.IOException
Throws:
java.io.IOException

IToolbarItemProxy

protected IToolbarItemProxy(java.lang.String CLSID,
                            java.lang.String iid,
                            java.lang.String host,
                            com.esri.arcgis.interop.AuthInfo authInfo)
                     throws java.io.IOException
Throws:
java.io.IOException
Method Detail

addListener

public void addListener(java.lang.String iidStr,
                        java.lang.Object theListener,
                        java.lang.Object theSource)
                 throws java.io.IOException
Overrides:
addListener in class com.esri.arcgis.interop.Dispatch
Throws:
java.io.IOException

removeListener

public void removeListener(java.lang.String iidStr,
                           java.lang.Object theListener)
                    throws java.io.IOException
Overrides:
removeListener in class com.esri.arcgis.interop.Dispatch
Throws:
java.io.IOException

getCommand

public ICommand getCommand()
                    throws java.io.IOException,
                           AutomationException
The command used by the item.

Specified by:
getCommand in interface IToolbarItem
Returns:
A reference to a com.esri.arcgis.systemUI.ICommand
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getUID

public IUID getUID()
            throws java.io.IOException,
                   AutomationException
The UID of the command used by the item, which may be empty.

Specified by:
getUID in interface IToolbarItem
Returns:
A reference to a com.esri.arcgis.system.IUID
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isGroup

public boolean isGroup()
                throws java.io.IOException,
                       AutomationException
Indicates if a group separator exists to the left of the item on the ToolbarControl.

Specified by:
isGroup in interface IToolbarItem
Returns:
The pVal
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setGroup

public void setGroup(boolean pVal)
              throws java.io.IOException,
                     AutomationException
Indicates if a group separator exists to the left of the item on the ToolbarControl.

Specified by:
setGroup in interface IToolbarItem
Parameters:
pVal - The pVal (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getGroupSpacing

public int getGroupSpacing()
                    throws java.io.IOException,
                           AutomationException
The width of the group separator in pixels if present.

Specified by:
getGroupSpacing in interface IToolbarItem
Returns:
The pVal
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setGroupSpacing

public void setGroupSpacing(int pVal)
                     throws java.io.IOException,
                            AutomationException
The width of the group separator in pixels if present.

Specified by:
setGroupSpacing in interface IToolbarItem
Parameters:
pVal - The pVal (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getStyle

public int getStyle()
             throws java.io.IOException,
                    AutomationException
The style of the item. Displays a combination of text caption and bitmap.

Specified by:
getStyle in interface IToolbarItem
Returns:
A com.esri.arcgis.systemUI.esriCommandStyles constant
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setStyle

public void setStyle(int pVal)
              throws java.io.IOException,
                     AutomationException
The style of the item. Displays a combination of text caption and bitmap.

Specified by:
setStyle in interface IToolbarItem
Parameters:
pVal - A com.esri.arcgis.systemUI.esriCommandStyles constant (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getCustomProperty

public java.lang.Object getCustomProperty()
                                   throws java.io.IOException,
                                          AutomationException
A property to associate data with an item.

Specified by:
getCustomProperty in interface IToolbarItem
Returns:
A Variant
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setCustomProperty

public void setCustomProperty(java.lang.Object pVal)
                       throws java.io.IOException,
                              AutomationException
A property to associate data with an item.

Specified by:
setCustomProperty in interface IToolbarItem
Parameters:
pVal - A Variant (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getMenu

public IToolbarMenu getMenu()
                     throws java.io.IOException,
                            AutomationException
If the item is a menu, this property is a ToolbarMenu object.

Specified by:
getMenu in interface IToolbarItem
Returns:
A reference to a com.esri.arcgis.controls.IToolbarMenu
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.