com.esri.arcgis.editor
Class VersionChangesWindow

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

public class VersionChangesWindow
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IVersionChangesWindow

Window used to find changes between versions.

Description

This object is new at ArcGIS 9.3.

Product Availability

Available with ArcGIS Desktop.

See Also:
Serialized Form

Constructor Summary
VersionChangesWindow()
          Constructs a VersionChangesWindow using ArcGIS Engine.
VersionChangesWindow(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
VersionChangesWindow theVersionChangesWindow = (VersionChangesWindow) obj;
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
 String esri_getClass(int index)
          Class by index.
 IObjectClass findClass(String className, int vers)
          Finds a cached table corresponding to specified version.
 int getClassCount()
          The number of classes with changes.
static String getClsid()
          getClsid.
 int getCurrentChangeType()
          Change Type of the selected row or feature.
 String getCurrentClass()
          Class name of the selected row or feature.
 int getCurrentRow()
          ID of the current row or feature.
 IEnumIDs getIDs(String className, int changeType)
          Enumerate the difference row IDs of the current class.
 ILongArray getSelectedFieldIndexes()
          The indexes of the fields in the row that are currently selected.
 int hashCode()
          the hashcode for this object
 boolean initialize(int parentHwnd, IMap pMap, IVersion pSourceVersion, IVersion pTargetVersion, IEnvelope pEnvelope, ITrackCancel pTrackCancel)
          Initialize Version Changes Window.
 boolean isVisible()
          Indicates if Version Changes Window is visible.
 boolean refreshChanges(ITrackCancel pTrackCancel)
          Re-Discover changes and re-populate window.
 void setVisible(boolean pVisible)
          Indicates if Version Changes Window is visible.
 
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

VersionChangesWindow

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

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

VersionChangesWindow

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

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

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

initialize

public boolean initialize(int parentHwnd,
                          IMap pMap,
                          IVersion pSourceVersion,
                          IVersion pTargetVersion,
                          IEnvelope pEnvelope,
                          ITrackCancel pTrackCancel)
                   throws IOException,
                          AutomationException
Initialize Version Changes Window.

Description

Initializes the dialog finding the changes between versions.

Product Availability

Available with ArcGIS Desktop.

Specified by:
initialize in interface IVersionChangesWindow
Parameters:
parentHwnd - The parentHwnd (A COM typedef) (in)
pMap - A reference to a com.esri.arcgis.carto.IMap (in)
pSourceVersion - A reference to a com.esri.arcgis.geodatabase.IVersion (in)
pTargetVersion - A reference to a com.esri.arcgis.geodatabase.IVersion (in)
pEnvelope - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
pTrackCancel - A reference to a com.esri.arcgis.system.ITrackCancel (in)
Returns:
The pCanceled
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

refreshChanges

public boolean refreshChanges(ITrackCancel pTrackCancel)
                       throws IOException,
                              AutomationException
Re-Discover changes and re-populate window.

Description

Refreshes the dialog finding the current changes between the two versions referenced by the dialog.

Product Availability

Available with ArcGIS Desktop.

Specified by:
refreshChanges in interface IVersionChangesWindow
Parameters:
pTrackCancel - A reference to a com.esri.arcgis.system.ITrackCancel (in)
Returns:
The pCanceled
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setVisible

public void setVisible(boolean pVisible)
                throws IOException,
                       AutomationException
Indicates if Version Changes Window is visible.

Product Availability

Available with ArcGIS Desktop.

Specified by:
setVisible in interface IVersionChangesWindow
Parameters:
pVisible - The pVisible (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isVisible

public boolean isVisible()
                  throws IOException,
                         AutomationException
Indicates if Version Changes Window is visible.

Product Availability

Available with ArcGIS Desktop.

Specified by:
isVisible in interface IVersionChangesWindow
Returns:
The pVisible
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSelectedFieldIndexes

public ILongArray getSelectedFieldIndexes()
                                   throws IOException,
                                          AutomationException
The indexes of the fields in the row that are currently selected.

Description

Index of the selected feautres in the version changes dialog.

Product Availability

Available with ArcGIS Desktop.

Specified by:
getSelectedFieldIndexes in interface IVersionChangesWindow
Returns:
A reference to a com.esri.arcgis.system.ILongArray
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getCurrentRow

public int getCurrentRow()
                  throws IOException,
                         AutomationException
ID of the current row or feature.

Product Availability

Available with ArcGIS Desktop.

Specified by:
getCurrentRow in interface IVersionChangesWindow
Returns:
The pID
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getCurrentChangeType

public int getCurrentChangeType()
                         throws IOException,
                                AutomationException
Change Type of the selected row or feature.

Product Availability

Available with ArcGIS Desktop.

Specified by:
getCurrentChangeType in interface IVersionChangesWindow
Returns:
A com.esri.arcgis.editor.esriChangeType constant
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getCurrentClass

public String getCurrentClass()
                       throws IOException,
                              AutomationException
Class name of the selected row or feature.

Product Availability

Available with ArcGIS Desktop.

Specified by:
getCurrentClass in interface IVersionChangesWindow
Returns:
The pClassName
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getClassCount

public int getClassCount()
                  throws IOException,
                         AutomationException
The number of classes with changes.

Description

Count of all the classes with changes between selected versions

Product Availability

Available with ArcGIS Desktop.

Specified by:
getClassCount in interface IVersionChangesWindow
Returns:
The pCount
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

esri_getClass

public String esri_getClass(int index)
                     throws IOException,
                            AutomationException
Class by index.

Product Availability

Available with ArcGIS Desktop.

Specified by:
esri_getClass in interface IVersionChangesWindow
Parameters:
index - The index (in)
Returns:
The pClassName
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getIDs

public IEnumIDs getIDs(String className,
                       int changeType)
                throws IOException,
                       AutomationException
Enumerate the difference row IDs of the current class.

Product Availability

Available with ArcGIS Desktop.

Specified by:
getIDs in interface IVersionChangesWindow
Parameters:
className - The className (in)
changeType - A com.esri.arcgis.editor.esriChangeType constant (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IEnumIDs
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

findClass

public IObjectClass findClass(String className,
                              int vers)
                       throws IOException,
                              AutomationException
Finds a cached table corresponding to specified version.

Product Availability

Available with ArcGIS Desktop.

Specified by:
findClass in interface IVersionChangesWindow
Parameters:
className - The className (in)
vers - A com.esri.arcgis.editor.esriChangeVersion constant (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IObjectClass
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.