com.esri.arcgis.arcmapui
Class IContentsViewEditProxy

java.lang.Object
  extended by com.esri.arcgis.interop.Dispatch
      extended by com.esri.arcgis.arcmapui.IContentsViewEditProxy
All Implemented Interfaces:
IContentsViewEdit, Externalizable, Serializable

public class IContentsViewEditProxy
extends com.esri.arcgis.interop.Dispatch
implements IContentsViewEdit, Serializable

Provides access to members that control Contents View Edit.

Description

Used to add or remove tabs of the Table of Contents (TOC) in ArcMap, ArcScene, or ArcGlobe.

Remarks

When tabs are cleared, they are removed from the TOC and also they do not appear in the TOC options dialog (in ArcMap and ArcGlobe: Tools > Options > Table of Contents). To simply show/hide tabs, use IContentsView::Visible. When IContentsViewEdit is used, the tab state is saved in the document template (normal.mxt or normal.sxt). Deleting the document template returns the tab state to the default.

Product Availability

Available with ArcGIS Desktop.

See Also:
Serialized Form

Field Summary
 boolean noncastable
           
 
Fields inherited from class com.esri.arcgis.interop.Dispatch
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef
 
Constructor Summary
  IContentsViewEditProxy()
           
  IContentsViewEditProxy(Object obj)
           
protected IContentsViewEditProxy(Object obj, String iid)
           
 
Method Summary
 void addContentsView(IContentsView contentsView)
          Adds a contents view object to the TOC.
 void addListener(String iidStr, Object theListener, Object theSource)
           
 void clearContentsViews()
          Removes all current contents views.
 void removeListener(String iidStr, Object theListener)
           
 
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

noncastable

public boolean noncastable
Constructor Detail

IContentsViewEditProxy

public IContentsViewEditProxy()

IContentsViewEditProxy

public IContentsViewEditProxy(Object obj)
                       throws IOException
Throws:
IOException

IContentsViewEditProxy

protected IContentsViewEditProxy(Object obj,
                                 String iid)
                          throws IOException
Throws:
IOException
Method Detail

addListener

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

removeListener

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

clearContentsViews

public void clearContentsViews()
                        throws IOException,
                               AutomationException
Removes all current contents views.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
clearContentsViews in interface IContentsViewEdit
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addContentsView

public void addContentsView(IContentsView contentsView)
                     throws IOException,
                            AutomationException
Adds a contents view object to the TOC.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
addContentsView in interface IContentsViewEdit
Parameters:
contentsView - A reference to a com.esri.arcgis.arcmapui.IContentsView (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.