com.esri.arcgis.catalog
Class GxSelection

java.lang.Object
  extended by com.esri.arcgis.catalog.GxSelection
All Implemented Interfaces:
IGxSelection, IConnectionPointContainer, com.esri.arcgis.interop.RemoteObjRef, java.io.Serializable

public class GxSelection
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, IGxSelection, IConnectionPointContainer

COM Class 'GxSelection'. Generated 3/19/2015 1:20:49 PM from 'C:\ArcGIS\COM\esriCatalog.olb'

Description 'GxObject that represents the catalog's selection.' 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.catalog.IGxSelection
IID, IIDbdbbb3ed_d0b2_11d1_aed9_080009ec734b, xxDummy
 
Fields inherited from interface com.esri.arcgis.display.IConnectionPointContainer
IID, IIDb196b284_bab4_101a_b69c_00aa00341d07, xxDummy
 
Constructor Summary
GxSelection()
          Constructs a GxSelection using ArcGIS Engine.
GxSelection(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
GxSelection theGxSelection = (GxSelection) obj;
 
Method Summary
 void addIGxSelectionEventsListener(IGxSelectionEvents theListener)
          addIGxSelectionEventsListener.
 void clear(java.lang.Object initiator)
          Unselects all objects.
 void enumConnectionPoints(IEnumConnectionPoints[] ppEnum)
          enumConnectionPoints
 boolean equals(java.lang.Object o)
          Compare this object with another
 void findConnectionPoint(GUID riid, IConnectionPoint[] ppCP)
          findConnectionPoint
static java.lang.String getClsid()
          getClsid.
 int getCount()
          The number of selected objects.
 IGxObject getFirstObject()
          The first object in the selection.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 IGxObject getLocation()
          The location of the selection.
 IEnumGxObject getSelectedObjects()
          The objects in the selection.
 int hashCode()
          the hashcode for this object
 boolean isDelayEvents()
          Delays or resumes selection event firing.
 boolean isSelected(IGxObject object)
          Checks if an object is selected.
 void release()
          Release a GxSelection.
 void removeIGxSelectionEventsListener(IGxSelectionEvents theListener)
          removeIGxSelectionEventsListener.
 void select(IGxObject object, boolean appendToExistingSelection, java.lang.Object initiator)
          Selects an object, optionally appending it to the existing selection.
 void setDelayEvents(boolean delayEvents)
          Delays or resumes selection event firing.
 void setLocation(IGxObject location, java.lang.Object pInitiator)
          Clears the selection and sets a new location.
 void unselect(IGxObject object, java.lang.Object initiator)
          Unselects an object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GxSelection

public GxSelection()
            throws java.io.IOException,
                   java.net.UnknownHostException
Constructs a GxSelection using ArcGIS Engine.

Throws:
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems

GxSelection

public GxSelection(java.lang.Object obj)
            throws java.io.IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
GxSelection theGxSelection = (GxSelection) obj;

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

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

getClsid

public static java.lang.String getClsid()
getClsid.


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

addIGxSelectionEventsListener

public void addIGxSelectionEventsListener(IGxSelectionEvents theListener)
                                   throws java.io.IOException
addIGxSelectionEventsListener. Listen to events generated by this class.

Parameters:
theListener - An object that implements the com.esri.arcgis.catalog.IGxSelectionEvents interface.
Throws:
java.io.IOException - If there are communications problems.

removeIGxSelectionEventsListener

public void removeIGxSelectionEventsListener(IGxSelectionEvents theListener)
                                      throws java.io.IOException
removeIGxSelectionEventsListener. Stop listening to events generated by this class.

Parameters:
theListener - An object that implements the com.esri.arcgis.catalog.IGxSelectionEvents interface.
Throws:
java.io.IOException - If there are communications problems.

release

public void release()
Release a GxSelection.

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

getLocation

public IGxObject getLocation()
                      throws java.io.IOException,
                             AutomationException
The location of the selection.

Specified by:
getLocation in interface IGxSelection
Returns:
A reference to a com.esri.arcgis.catalog.IGxObject
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setLocation

public void setLocation(IGxObject location,
                        java.lang.Object pInitiator)
                 throws java.io.IOException,
                        AutomationException
Clears the selection and sets a new location.

Specified by:
setLocation in interface IGxSelection
Parameters:
location - A reference to a com.esri.arcgis.catalog.IGxObject (in)
pInitiator - A reference to another Object (IUnknown) (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getCount

public int getCount()
             throws java.io.IOException,
                    AutomationException
The number of selected objects.

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

getFirstObject

public IGxObject getFirstObject()
                         throws java.io.IOException,
                                AutomationException
The first object in the selection.

Specified by:
getFirstObject in interface IGxSelection
Returns:
A reference to a com.esri.arcgis.catalog.IGxObject
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setDelayEvents

public void setDelayEvents(boolean delayEvents)
                    throws java.io.IOException,
                           AutomationException
Delays or resumes selection event firing. If the selection changed while events were being delayed, a single event is fired when events are resumed.

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

isDelayEvents

public boolean isDelayEvents()
                      throws java.io.IOException,
                             AutomationException
Delays or resumes selection event firing. If the selection changed while events were being delayed, a single event is fired when events are resumed.

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

select

public void select(IGxObject object,
                   boolean appendToExistingSelection,
                   java.lang.Object initiator)
            throws java.io.IOException,
                   AutomationException
Selects an object, optionally appending it to the existing selection.

Specified by:
select in interface IGxSelection
Parameters:
object - A reference to a com.esri.arcgis.catalog.IGxObject (in)
appendToExistingSelection - The appendToExistingSelection (in)
initiator - A reference to another Object (IUnknown) (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

unselect

public void unselect(IGxObject object,
                     java.lang.Object initiator)
              throws java.io.IOException,
                     AutomationException
Unselects an object.

Specified by:
unselect in interface IGxSelection
Parameters:
object - A reference to a com.esri.arcgis.catalog.IGxObject (in)
initiator - A reference to another Object (IUnknown) (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isSelected

public boolean isSelected(IGxObject object)
                   throws java.io.IOException,
                          AutomationException
Checks if an object is selected.

Specified by:
isSelected in interface IGxSelection
Parameters:
object - A reference to a com.esri.arcgis.catalog.IGxObject (in)
Returns:
The isSelected
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

clear

public void clear(java.lang.Object initiator)
           throws java.io.IOException,
                  AutomationException
Unselects all objects.

Specified by:
clear in interface IGxSelection
Parameters:
initiator - A reference to another Object (IUnknown) (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSelectedObjects

public IEnumGxObject getSelectedObjects()
                                 throws java.io.IOException,
                                        AutomationException
The objects in the selection.

Specified by:
getSelectedObjects in interface IGxSelection
Returns:
A reference to a com.esri.arcgis.catalog.IEnumGxObject
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

enumConnectionPoints

public void enumConnectionPoints(IEnumConnectionPoints[] ppEnum)
                          throws java.io.IOException,
                                 AutomationException
enumConnectionPoints

Specified by:
enumConnectionPoints in interface IConnectionPointContainer
Parameters:
ppEnum - A reference to a com.esri.arcgis.display.IEnumConnectionPoints (out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

findConnectionPoint

public void findConnectionPoint(GUID riid,
                                IConnectionPoint[] ppCP)
                         throws java.io.IOException,
                                AutomationException
findConnectionPoint

Specified by:
findConnectionPoint in interface IConnectionPointContainer
Parameters:
riid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
ppCP - A reference to a com.esri.arcgis.display.IConnectionPoint (out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.