com.esri.arcgis.editor
Class RepresentationInspector

java.lang.Object
  extended by com.esri.arcgis.editor.RepresentationInspector
All Implemented Interfaces:
IObjectInspector, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class RepresentationInspector
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IObjectInspector

A property inspector for features containing representations.

Product Availability

Available with ArcGIS Desktop.

See Also:
Serialized Form

Constructor Summary
RepresentationInspector()
          Constructs a RepresentationInspector using ArcGIS Engine.
RepresentationInspector(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
RepresentationInspector theRepresentationInspector = (RepresentationInspector) obj;
 
Method Summary
 void clear()
          Clear the inspector before inspecting another object.
 void copy(IRow srcRow)
          Copies the values from srcRow to the row being edited.
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 int getHWND()
          The window handle for the inspector.
 int hashCode()
          the hashcode for this object
 void inspect(IEnumRow objects, IEditor editor)
          Inspects the properties of the features.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef
getJintegraDispatch, release
 

Constructor Detail

RepresentationInspector

public RepresentationInspector()
                        throws IOException,
                               UnknownHostException
Constructs a RepresentationInspector using ArcGIS Engine.

Throws:
IOException - if there are interop problems
UnknownHostException - if there are interop problems

RepresentationInspector

public RepresentationInspector(Object obj)
                        throws IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
RepresentationInspector theRepresentationInspector = (RepresentationInspector) obj;

Construct a RepresentationInspector using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to RepresentationInspector.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
IOException - if there are interop problems
Method Detail

getClsid

public static String getClsid()
getClsid.


equals

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

Overrides:
equals in class Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class Object

getHWND

public int getHWND()
            throws IOException,
                   AutomationException
The window handle for the inspector.

Remarks

The Object Inpector reads this property to determine what it will display in its right pane. Custom Object Inspectors must supply the hWnd property of the window or control that is going to be displayed.



Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
getHWND in interface IObjectInspector
Returns:
The hWND (A COM typedef)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

inspect

public void inspect(IEnumRow objects,
                    IEditor editor)
             throws IOException,
                    AutomationException
Inspects the properties of the features.

Remarks

Use the Inspect method to display your custom Feature Inspector.

The Inspect method provides you with an enumeration of row objects to inspect as well as a pointer to the Editor extension. Use the row enumeration to retrieve properties of a feature. Then you can use the Editor object reference to modify properties of a row within the context of an edit operation.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
inspect in interface IObjectInspector
Parameters:
objects - A reference to a com.esri.arcgis.editor.IEnumRow (in)
editor - A reference to a com.esri.arcgis.editor.IEditor (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

clear

public void clear()
           throws IOException,
                  AutomationException
Clear the inspector before inspecting another object.

Remarks

Use the Clear property to reset your custom Feature Inspector control(s). The Clear property is called prior to updating the Inspect property with a new row enumeration.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

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

copy

public void copy(IRow srcRow)
          throws IOException,
                 AutomationException
Copies the values from srcRow to the row being edited.

Remarks

Use the Copy property to get rows that have been copied using the context menu in the tree control of the Attributes Dialog located on the Editor Toolbar.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
copy in interface IObjectInspector
Parameters:
srcRow - A reference to a com.esri.arcgis.geodatabase.IRow (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.