|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IEditTemplate
IEditTemplate Interface
This interface contains the properties of the template including the associated layer and the default values for fields.
Templates are created using the IEditTemplate and IEditTemplateFactory interfaces and managed through the IEditor3 interface.
The current or selected template can be obtained from the IEditor3::Currenttemplate method returning IEditTemplate.
The symbology for the template is determined by the value of the field used to render the layer in the map and is handled internally.
Templates are stored within the map document and within a layer file if the layer is exported as such.
Method Summary | |
---|---|
void |
clearDefaultValues()
Removes all the default values currently set. |
int |
getCreateCount()
Returns the number of times this template has created a feature. |
Object |
getDefaultValue(String field)
Gets the default value for the given field. |
String |
getDescription()
Gets the description of the template. |
ILayer |
getLayer()
Gets the layer of the template. |
String |
getName()
Gets the name of the template. |
String |
getTags()
The tags of the item. |
GUID |
getTool()
Gets the tool for the template. |
void |
setDefaultValue(String field,
Object value,
boolean initDefaultValues)
Sets the default value for the given field. |
void |
setDefaultValues(IFeature feature)
Sets the default values on the given feature. |
void |
setDescription(String description)
Gets the description of the template. |
void |
setLayerByRef(ILayer layer)
Gets the layer of the template. |
void |
setName(String name)
Gets the name of the template. |
void |
setTags(String tags)
The tags of the item. |
void |
setTool(GUID tool)
Gets the tool for the template. |
Method Detail |
---|
String getName() throws IOException, AutomationException
Set or return the name of the template.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setName(String name) throws IOException, AutomationException
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getDescription() throws IOException, AutomationException
Set or return the description of the template.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDescription(String description) throws IOException, AutomationException
description
- The description (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ILayer getLayer() throws IOException, AutomationException
Set or return the layer associated with the template.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setLayerByRef(ILayer layer) throws IOException, AutomationException
layer
- A reference to a com.esri.arcgis.carto.ILayer (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.GUID getTool() throws IOException, AutomationException
Set or return the default tool for the template. The value is the GUID of the tool.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setTool(GUID tool) throws IOException, AutomationException
tool
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void clearDefaultValues() throws IOException, AutomationException
Sets the value of each field to the default value for that field type. The field value will be set to null if null values are allowed.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.Object getDefaultValue(String field) throws IOException, AutomationException
field
- The field (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDefaultValue(String field, Object value, boolean initDefaultValues) throws IOException, AutomationException
Sets the value of a given field to the supplied value.
An exception will be raised if the supplied value is not valid for the given field type e.g. If you try to set a text value for an integer field.
For subtype fields, the supplied value can either be the integer code or the text description. When initdefaultvalues is true the default values for that subtype are used to set the default values for other fields. Initdefaultvalues has no effect on non-subtype fields.
field
- The field (in)value
- A Variant (in)initDefaultValues
- The initDefaultValues (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDefaultValues(IFeature feature) throws IOException, AutomationException
This method populates the fields of an IFeature with the default values of the current template. It is used to populate the fields of a feature that may have been created programmatically.
feature
- A reference to a com.esri.arcgis.geodatabase.IFeature (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getCreateCount() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getTags() throws IOException, AutomationException
Set or return the tags for the template. Multiple tags are comma delimited.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setTags(String tags) throws IOException, AutomationException
tags
- The tags (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 |