|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ICommandPool
Provides access to the contents of the command pool.
The ICommandPool interface is used to access the collection of commands used by the ToolbarControl or a ToolbarMenu or ToolbarPalette, or the commands shared between several ToolbarControl's. The ToolbarControl manages its CommandPool itself in order to maintain its command items. If a ToolbarMenu or ToolbarPalette are added to a ToolbarControl they will automatically share the same CommandPool as the ToolbarControl. If a ToolbarMenu or ToolbarPalette are used standalone they will mange their own CommandPool.
Use the CommandPool to determine if a particular Command Exists, and to then retrieve its UsageCount, UID and Created properties. The Created property indicates whether the ICommand::OnCreate method has been called. Alternatively, iterate the contents of the CommandPool by using the Count and Command properties or the FindByUID method.
Method Summary | |
---|---|
boolean |
created(ICommand command)
Indicates if the commands OnCreate method has been called. |
boolean |
exists(ICommand command)
Indicates if the given command exists in the command pool. |
ICommand |
findByUID(IUID uID)
Searches the command pool for the given UID. |
ICommand |
getCommand(int index)
The command at the given index. |
int |
getCount()
The number of commands in the command pool. |
IUID |
getUID(ICommand command)
The UID of the given command. |
int |
getUsageCount(ICommand command)
The number of items using the given command. |
Method Detail |
---|
int getCount() throws IOException, AutomationException
Returns the number of commands in the CommandPool.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getUsageCount(ICommand command) throws IOException, AutomationException
command
- A reference to a com.esri.arcgis.systemUI.ICommand (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean exists(ICommand command) throws IOException, AutomationException
Indicates whether the specified command exists in the CommandPool.
command
- A reference to a com.esri.arcgis.systemUI.ICommand (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ICommand findByUID(IUID uID) throws IOException, AutomationException
Searches the CommandPool for the specified UID, and returns the matching Command. Returns Nothing if the UID cannot be found. For commands that implement ICommandSubType, the IUID::SubType must be specified, otherwise Nothing will be returned.
uID
- A reference to a com.esri.arcgis.system.IUID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IUID getUID(ICommand command) throws IOException, AutomationException
command
- A reference to a com.esri.arcgis.systemUI.ICommand (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ICommand getCommand(int index) throws IOException, AutomationException
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean created(ICommand command) throws IOException, AutomationException
Indicates if the specified command's ICommand::OnCreate method has been called.
command
- A reference to a com.esri.arcgis.systemUI.ICommand (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 |