com.esri.arcgis.framework
Class CommandBars

java.lang.Object
  extended by com.esri.arcgis.framework.CommandBars
All Implemented Interfaces:
ICommandBars, com.esri.arcgis.interop.RemoteObjRef, java.io.Serializable

public class CommandBars
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, ICommandBars

COM Class 'CommandBars'. Generated 3/19/2015 1:20:50 PM from 'C:\ArcGIS\COM\esriFramework.olb'

Description 'CommandBars collection object.' 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
 
Fields inherited from interface com.esri.arcgis.framework.ICommandBars
IID, IID289fc451_d249_11d1_91ad_0080c718df97, xxDummy
 
Constructor Summary
CommandBars(java.lang.Object obj)
          Construct a CommandBars using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 ICommandBar create(java.lang.String name, int barType)
          Creates a new blank toolbar or shortcut menu.
 boolean equals(java.lang.Object o)
          Compare this object with another
 ICommandItem find(java.lang.Object identifier, boolean noRecurse, boolean noCreate)
          Searches for the item specified by identifier.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 int hashCode()
          the hashcode for this object
 void hideAllToolbars()
          Hides all visible bars.
 boolean isLargeIcons()
          Indicates if large icons should be shown.
 boolean isShowToolTips()
          Indicates if tooltips should be shown.
 void release()
          Release a CommandBars.
 void setLargeIcons(boolean bLarge)
          Indicates if large icons should be shown.
 void setShowToolTips(boolean bShow)
          Indicates if tooltips should be shown.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandBars

public CommandBars(java.lang.Object obj)
            throws java.io.IOException
Construct a CommandBars using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to CommandBars.
Casting to this class from the return value of a method will not work, as this class represents an abstract class in ArcObjects.
*
CommandBars o = (CommandBars)obj; // will not work

CommandBars o = new CommandBars(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server

Throws:
java.io.IOException - if there are interop problems CommandBars theCommandBars = (CommandBars) obj;
Method Detail

equals

public boolean equals(java.lang.Object o)
Compare this object with another

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class java.lang.Object

getJintegraDispatch

public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
Deprecated. Internal use only.

Specified by:
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRef

release

public void release()
Release a CommandBars.

Specified by:
release in interface com.esri.arcgis.interop.RemoteObjRef

setShowToolTips

public void setShowToolTips(boolean bShow)
                     throws java.io.IOException,
                            AutomationException
Indicates if tooltips should be shown.

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

isShowToolTips

public boolean isShowToolTips()
                       throws java.io.IOException,
                              AutomationException
Indicates if tooltips should be shown.

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

setLargeIcons

public void setLargeIcons(boolean bLarge)
                   throws java.io.IOException,
                          AutomationException
Indicates if large icons should be shown.

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

isLargeIcons

public boolean isLargeIcons()
                     throws java.io.IOException,
                            AutomationException
Indicates if large icons should be shown.

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

create

public ICommandBar create(java.lang.String name,
                          int barType)
                   throws java.io.IOException,
                          AutomationException
Creates a new blank toolbar or shortcut menu.

Specified by:
create in interface ICommandBars
Parameters:
name - The name (in)
barType - A com.esri.arcgis.systemUI.esriCmdBarType constant (in)
Returns:
A reference to a com.esri.arcgis.framework.ICommandBar
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

find

public ICommandItem find(java.lang.Object identifier,
                         boolean noRecurse,
                         boolean noCreate)
                  throws java.io.IOException,
                         AutomationException
Searches for the item specified by identifier.

Specified by:
find in interface ICommandBars
Parameters:
identifier - A Variant (in)
noRecurse - The noRecurse (in, optional, pass false if not required)
noCreate - The noCreate (in, optional, pass false if not required)
Returns:
A reference to a com.esri.arcgis.framework.ICommandItem
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

hideAllToolbars

public void hideAllToolbars()
                     throws java.io.IOException,
                            AutomationException
Hides all visible bars.

Specified by:
hideAllToolbars in interface ICommandBars
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.