|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IActionCollection2
Provides access to the methods and properties needed to manage a collection of actions.
This interface provides properties and methods that allow a collection of action objects, or COM objects that implement the IAction interface, to be managed in an ordered collection. The action processor uses this interface to iterate a set of action objects in order to process them from top to bottom.
Method Summary | |
---|---|
boolean |
actionNameExists(String bstrName)
Checks if an action within the collection exists with the specified name. |
void |
add(IAction piAction,
int nIndex)
Adds an action to the collection. |
void |
checkLayers(boolean bRebuildGeometry)
Checks for deleted Layers and disables affected actions. |
boolean |
dependsUponFeatureClass(IFeatureClass piFeatureClass)
Indicates if a contained action depends upon the specified feature class. |
boolean |
disableActionsUsingLayer(ILayer piLayer)
Disables all action using the specified layer for location trigger. |
int |
find(IAction piAction)
Finds an action within the collection. |
IAction |
getAction(int nIndex)
Retrieves the action at the specified index. |
int |
getActionCount()
Total number of actions. |
int |
getCount()
Number of objects in the collection. |
int |
getEnabledActionCount()
Number of enabled actions. |
int |
getExclusionCategory()
Action category to be excluded from processing. |
int |
getMaximumDepth()
Maximum number of nested action levels to be processed. |
int |
getNextActionNumber()
Gives next sequential number for assigning names to actions. |
void |
move(int nSourceIndex,
int nDestinationIndex)
Moves an action to a user-specified location in the collection. |
boolean |
reenableActionsUsingLayer(ILayer piLayer)
Reenable all action using the specified layer for location trigger. |
void |
remove(int nIndex)
Removes an action from the collection. |
void |
removeAll()
Removes all actions from the index. |
void |
setExclusionCategory(int pVal)
Action category to be excluded from processing. |
void |
setMaximumDepth(int pVal)
Maximum number of nested action levels to be processed. |
void |
setNextActionNumber(int pVal)
Gives next sequential number for assigning names to actions. |
Method Detail |
---|
void add(IAction piAction, int nIndex) throws IOException, AutomationException
This method allows a user to add an action to the Collection. The action will be added at the specified index. Specifying a large index value, such as 999999 will ensure the action is placed at the end of the list. This method will addref the received action before placing in the collection.
piAction
- A reference to a com.esri.arcgis.carto.IAction (in)nIndex
- The nIndex (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void remove(int nIndex) throws IOException, AutomationException
This method allows a user to remove an action at the specified index. If the index specified is out of range an E_FAIL is returned otherwise a S_OK is returned on success. This method on success releases the action removed.
nIndex
- The nIndex (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void move(int nSourceIndex, int nDestinationIndex) throws IOException, AutomationException
This method allows the user to move an action in the collection. The from and to index allows the user to specify the location in the collection to move the action about. The behavior is to insert the moved action at the specified index moving the existing action at the move to index forward in the list thus adding one to its index.
nSourceIndex
- The nSourceIndex (in)nDestinationIndex
- The nDestinationIndex (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void removeAll() throws IOException, AutomationException
This method removes all actions from the index using the remove method.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IAction getAction(int nIndex) throws IOException, AutomationException
nIndex
- The nIndex (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getCount() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int find(IAction piAction) throws IOException, AutomationException
This method finds the specified action in the collection and returns the index of that action.
piAction
- A reference to a com.esri.arcgis.carto.IAction (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getMaximumDepth() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setMaximumDepth(int pVal) throws IOException, AutomationException
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getNextActionNumber() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setNextActionNumber(int pVal) throws IOException, AutomationException
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getExclusionCategory() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setExclusionCategory(int pVal) throws IOException, AutomationException
pVal
- A com.esri.arcgis.carto.enumActionCategory constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getActionCount() throws IOException, AutomationException
This property retrieves the Total number of actions in the collection.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getEnabledActionCount() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean dependsUponFeatureClass(IFeatureClass piFeatureClass) throws IOException, AutomationException
piFeatureClass
- A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean disableActionsUsingLayer(ILayer piLayer) throws IOException, AutomationException
piLayer
- A reference to a com.esri.arcgis.carto.ILayer (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean reenableActionsUsingLayer(ILayer piLayer) throws IOException, AutomationException
piLayer
- A reference to a com.esri.arcgis.carto.ILayer (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void checkLayers(boolean bRebuildGeometry) throws IOException, AutomationException
bRebuildGeometry
- The bRebuildGeometry (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean actionNameExists(String bstrName) throws IOException, AutomationException
bstrName
- The bstrName (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 |