|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.system.NameFactory
public class NameFactory
Name Object Factory.
A NameFactory object identifies and locates a geodatabase object such as a dataset or a workspace, or a map object such as a layer. You can implement your own custom drag-and-drop behavior for these objects on your controls and forms.
ESRI applications such as ArcMap and ArcCatalog may be either the drop source or the target for your custom drag-and-drop behavior. You cannot, however, change the standard drag-and-drop behavior of the windows inside ArcMap and ArcCatalog, though of course you can add your own custom windows and controls to the applications.
When implementing a drop source for ESRI data objects, use INameFactory::PackageNames to wrap up the objects chosen. When implementing the drop target, use UnPackageNames followed by whatever action you would like to do with the name objects.
The DataObjectHelper (defined in esriSystemUI) performs a similar job to that of a NameFactory except it also supports file names as Name objects. It is used by the MapControl and PageLayoutControl to support drag-and-drop functionality.
Constructor Summary | |
---|---|
NameFactory()
Constructs a NameFactory using ArcGIS Engine. |
|
NameFactory(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. NameFactory theNameFactory = (NameFactory) obj; |
Method Summary | |
---|---|
IName |
create(String nameString)
Finds the correct name-string parser for the given name string, and uses it to create a new Name object. |
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
int |
hashCode()
the hashcode for this object |
Object |
packageNames(IEnumName names)
Packages the set of names into a VARIANT (typically for initiating a drag operation). |
IEnumName |
unpackageNames(Object bytesArray)
Unpackages the given VARIANT into a set of Name objects (typically for responding to a drop operation). |
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 NameFactory() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic NameFactory(Object obj) throws IOException
NameFactory theNameFactory = (NameFactory) obj;
obj
to NameFactory
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public IName create(String nameString) throws IOException, AutomationException
The Create method creates a new Name object by searching the "ESRI Name String Parsers" component category for objects implementing IParseNameString. Once the correct name-string parser is found it is used to create the Name object.
create
in interface INameFactory
nameString
- The nameString (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object packageNames(IEnumName names) throws IOException, AutomationException
The PackageNames method packages a set of Name objects into a VARIANT. This is typically used to package data objects when starting a custom drag operation.
packageNames
in interface INameFactory
names
- A reference to a com.esri.arcgis.system.IEnumName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumName unpackageNames(Object bytesArray) throws IOException, AutomationException
The UnpackageNames method unpackages the given VARIANT into a set of Name objects. This is typically used to unpackage data objects when sresponding to a custom drop operation.
unpackageNames
in interface INameFactory
bytesArray
- A Variant (in)
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 |