|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.framework.Templates
public class Templates
Templates collection object.
The Templates collection references the template objects that are currently loaded with the application.
A Template is a document that is used as a starting point for creating new documents. It carries customizations of several types—user interface, VBA project, and application-specific data. ArcMap has two or three templates loaded with an application. If the document is based on the Normal template, two items are in the templates collection. If the document is based on a project template, three items are in the templates collection. ArcCatalog always has one item in the templates collection; this item represents Normal.gxt.
Use the IApplication.Templates property to get a reference to the Templates collection.
Note, the esriDisplay library contains an object called Template that is unrelated to this Templates collection.
Constructor Summary | |
---|---|
Templates(Object obj)
Construct a Templates using a reference to such an object returned from ArcGIS Engine or Server. |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this object with another |
int |
getCount()
The number of templates associated with the current document. |
String |
getItem(int index)
The pathname to the template at the given index. |
int |
hashCode()
the hashcode for this object |
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 Templates(Object obj) throws IOException
obj
to Templates
. *
Templates o = (Templates)obj; // will not work
Templates o = new Templates(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server
IOException
- if there are interop problems
Templates theTemplates = (Templates) obj;
Method Detail |
---|
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public int getCount() throws IOException, AutomationException
getCount
in interface ITemplates
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getItem(int index) throws IOException, AutomationException
getItem
in interface ITemplates
index
- The index (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 |