|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.editor.ConflictsWindow
public class ConflictsWindow
Window used to resolve versioning conflicts.
ConflictsWindow is an extension that presents the conflicts between the current edit version, the version the edits are being saved into, and the original state of the editor’s data when its edit session first started. Conflicts arise when features are modified by more than one person. For example, if two people start an edit session on the same
version and edit the same feature, the last editor to save the modifications will get a conflict that must be resolved if any edits made are to be committed to the database.
Use IEditor::FindExtension to access the ConflictsWindow class programmatically.
Field Summary |
---|
Fields inherited from interface com.esri.arcgis.system.IExtension |
---|
IID, IID7f657ec9_dbf1_11d2_9f2f_00c04f6bc69e, xxDummy |
Constructor Summary | |
---|---|
ConflictsWindow(Object obj)
Construct a ConflictsWindow using a reference to such an object returned from ArcGIS Engine or Server. |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this object with another |
IConflictClass |
esri_getClass(int index)
Class by index. |
ITable |
findTable(IConflictClass conflictClass,
int vers)
Finds a cached table corresponding to the conflict class and version. |
int |
getClassCount()
The number of classes with conflicts. |
IConflictClass |
getCurrentClass()
Class of the selected feature, or 0 if no ConflictClass. |
int |
getCurrentRow()
ID of the selected row or feature, or -1 if no current row. |
IFillSymbol |
getFillSymbol(int vers)
Display symbol used to draw polygon features. |
IEnumIDs |
getIDs(IConflictClass conflictClass)
Enumerate the feature IDs for a ConflictClass. |
ILineSymbol |
getLineSymbol(int vers)
Display symbol used to draw line features. |
IMarkerSymbol |
getMarkerSymbol(int vers)
Display symbol used to draw point features. |
String |
getName()
The name of the extension. |
ILongArray |
getSelectedFieldIndexes()
The indexes of the fields in the row that are currently selected. |
boolean |
hasConflicts()
Indicates if conflicts have been detected. |
int |
hashCode()
the hashcode for this object |
boolean |
isCurrentVisited()
Indicates whether the visited state of the current selected tree item. |
boolean |
isShowOnConflictsDetected()
Indicates whether the conficts window is displayed when a conflicts event is fired. |
boolean |
isVersionVisible(int vers)
Indicates whether the specified version is visible in the conflicts window. |
boolean |
isVisible()
Indicates if Conflicts Window is visible. |
void |
removeClass(IConflictClass conflictClass)
Removes the conlict class from the window. |
void |
reset()
Resets the conflicts. |
void |
setCurrentVisited(boolean visited)
Indicates whether the visited state of the current selected tree item. |
void |
setFillSymbolByRef(int vers,
IFillSymbol symbol)
Display symbol used to draw polygon features. |
void |
setLineSymbolByRef(int vers,
ILineSymbol symbol)
Display symbol used to draw line features. |
void |
setMarkerSymbolByRef(int vers,
IMarkerSymbol symbol)
Display symbol used to draw point features. |
void |
setShowOnConflictsDetected(boolean showWindow)
Indicates whether the conficts window is displayed when a conflicts event is fired. |
void |
setVersionVisible(int vers,
boolean visible)
Indicates whether the specified version is visible in the conflicts window. |
void |
setVisible(boolean vis)
Indicates if Conflicts Window is visible. |
void |
shutdown()
Shuts down the extension. |
void |
startup(Object initializationData)
Starts up the extension with the given initialization data. |
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 |
---|
public ConflictsWindow(Object obj) throws IOException
obj
to ConflictsWindow
. *
ConflictsWindow o = (ConflictsWindow)obj; // will not work
ConflictsWindow o = new ConflictsWindow(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server
IOException
- if there are interop problems
ConflictsWindow theConflictsWindow = (ConflictsWindow) obj;
Method Detail |
---|
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void setVisible(boolean vis) throws IOException, AutomationException
setVisible
in interface IConflictsWindow
vis
- The vis (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isVisible() throws IOException, AutomationException
isVisible
in interface IConflictsWindow
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean hasConflicts() throws IOException, AutomationException
HasConflicts returns True if any classes are returned by IVersionEdit::ConflictClasses.
hasConflicts
in interface IConflictsWindow
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getCurrentRow() throws IOException, AutomationException
getCurrentRow
in interface IConflictsWindow
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IConflictClass getCurrentClass() throws IOException, AutomationException
getCurrentClass
in interface IConflictsWindow
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getClassCount() throws IOException, AutomationException
Use ClassCount to loop over the set of conflict classes.
getClassCount
in interface IConflictsWindow
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IConflictClass esri_getClass(int index) throws IOException, AutomationException
esri_getClass
in interface IConflictsWindow
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumIDs getIDs(IConflictClass conflictClass) throws IOException, AutomationException
getIDs
in interface IConflictsWindow
conflictClass
- A reference to a com.esri.arcgis.geodatabase.IConflictClass (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void reset() throws IOException, AutomationException
reset
in interface IConflictsWindow
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ITable findTable(IConflictClass conflictClass, int vers) throws IOException, AutomationException
findTable
in interface IConflictsWindow
conflictClass
- A reference to a com.esri.arcgis.geodatabase.IConflictClass (in)vers
- A com.esri.arcgis.editor.esriVersion constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void removeClass(IConflictClass conflictClass) throws IOException, AutomationException
Issuing RemoveClass provides a way to filter the list of conflicts presented to the user; it does not resolve conflicts from that class. Use IConflictsWindow::Reset to populate the conflict window with all conflict classes removed using RemoveClass.
removeClass
in interface IConflictsWindow2
conflictClass
- A reference to a com.esri.arcgis.geodatabase.IConflictClass (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setShowOnConflictsDetected(boolean showWindow) throws IOException, AutomationException
setShowOnConflictsDetected
in interface IConflictsWindow3
showWindow
- The showWindow (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isShowOnConflictsDetected() throws IOException, AutomationException
isShowOnConflictsDetected
in interface IConflictsWindow3
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ILongArray getSelectedFieldIndexes() throws IOException, AutomationException
getSelectedFieldIndexes
in interface IConflictsWindow3
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isCurrentVisited() throws IOException, AutomationException
isCurrentVisited
in interface IConflictsWindow3
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setCurrentVisited(boolean visited) throws IOException, AutomationException
setCurrentVisited
in interface IConflictsWindow3
visited
- The visited (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isVersionVisible(int vers) throws IOException, AutomationException
isVersionVisible
in interface IConflictDisplay
vers
- A com.esri.arcgis.editor.esriVersion constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setVersionVisible(int vers, boolean visible) throws IOException, AutomationException
setVersionVisible
in interface IConflictDisplay
vers
- A com.esri.arcgis.editor.esriVersion constant (in)visible
- The visible (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IMarkerSymbol getMarkerSymbol(int vers) throws IOException, AutomationException
getMarkerSymbol
in interface IConflictDisplay
vers
- A com.esri.arcgis.editor.esriVersion constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setMarkerSymbolByRef(int vers, IMarkerSymbol symbol) throws IOException, AutomationException
setMarkerSymbolByRef
in interface IConflictDisplay
vers
- A com.esri.arcgis.editor.esriVersion constant (in)symbol
- A reference to a com.esri.arcgis.display.IMarkerSymbol (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ILineSymbol getLineSymbol(int vers) throws IOException, AutomationException
getLineSymbol
in interface IConflictDisplay
vers
- A com.esri.arcgis.editor.esriVersion constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setLineSymbolByRef(int vers, ILineSymbol symbol) throws IOException, AutomationException
setLineSymbolByRef
in interface IConflictDisplay
vers
- A com.esri.arcgis.editor.esriVersion constant (in)symbol
- A reference to a com.esri.arcgis.display.ILineSymbol (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IFillSymbol getFillSymbol(int vers) throws IOException, AutomationException
getFillSymbol
in interface IConflictDisplay
vers
- A com.esri.arcgis.editor.esriVersion constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setFillSymbolByRef(int vers, IFillSymbol symbol) throws IOException, AutomationException
setFillSymbolByRef
in interface IConflictDisplay
vers
- A com.esri.arcgis.editor.esriVersion constant (in)symbol
- A reference to a com.esri.arcgis.display.IFillSymbol (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getName() throws IOException, AutomationException
getName
in interface IExtension
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void startup(Object initializationData) throws IOException, AutomationException
startup
in interface IExtension
initializationData
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void shutdown() throws IOException, AutomationException
shutdown
in interface IExtension
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |