|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.interop.Dispatch com.esri.arcgis.framework.IAcceleratorTableProxy
public class IAcceleratorTableProxy
Provides access to members that modify the accelerator table.
An AcceleratorTable is an object that contains a list of accelerator keys and the command identifiers associated with them.
Use the IDocument::Accelerators property to get access to the AcceleratorTable.
IDocument.getAccelerators()
,
Serialized FormField Summary | |
---|---|
boolean |
noncastable
|
Fields inherited from class com.esri.arcgis.interop.Dispatch |
---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
Constructor Summary | |
---|---|
|
IAcceleratorTableProxy()
|
|
IAcceleratorTableProxy(Object obj)
|
protected |
IAcceleratorTableProxy(Object obj,
String iid)
|
Method Summary | |
---|---|
boolean |
add(Object iD,
int key,
boolean bCtrl,
boolean bAlt,
boolean bShift)
Adds a new accelerator to the accelerator table. |
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
IArray |
find(Object iD)
Finds the accelerator object/s currently associated with the specified command ID. |
IAccelerator |
findByKey(int key,
boolean bCtrl,
boolean bAlt,
boolean bShift)
Finds the accelerator object associated with the specified key combination. |
int |
getCount()
The count of accelerator items in the table. |
IAccelerator |
getItem(int index)
The accelerator object at the specified index. |
void |
removeListener(String iidStr,
Object theListener)
|
Methods inherited from class com.esri.arcgis.interop.Dispatch |
---|
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public boolean noncastable
Constructor Detail |
---|
public IAcceleratorTableProxy()
public IAcceleratorTableProxy(Object obj) throws IOException
IOException
protected IAcceleratorTableProxy(Object obj, String iid) throws IOException
IOException
Method Detail |
---|
public void addListener(String iidStr, Object theListener, Object theSource) throws IOException
addListener
in class com.esri.arcgis.interop.Dispatch
IOException
public void removeListener(String iidStr, Object theListener) throws IOException
removeListener
in class com.esri.arcgis.interop.Dispatch
IOException
public int getCount() throws IOException, AutomationException
getCount
in interface IAcceleratorTable
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IAccelerator getItem(int index) throws IOException, AutomationException
getItem
in interface IAcceleratorTable
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean add(Object iD, int key, boolean bCtrl, boolean bAlt, boolean bShift) throws IOException, AutomationException
ID specifies the unique identifier of the command that this accelerator activates. For built-in commands, use the UID. For VBA macros and UIControls, use a string representing the full name of the command.
Key specifies the keycode used for this accelerator. Use the
Visual Basic Key Code constants for the value of Key.
bCtrl Use True if the Ctrl key is one of the keys used in
the accelerator; otherwise use False.
bAlt Use True if the Alt key is one of the keys used in the
accelerator; otherwise use False.
bShift Use True if the Shift key is one of the keys used in
the accelerator; otherwise use False.
In VBA, you can use the builtin ArcID module to find the unique identifier for a particular command.
In the following example, the keyboard accelerator CTRL+A is assigned to the built-in ArcMap Add Data command. You would get m_app from the hook in ICommand::OnCreate() .
add
in interface IAcceleratorTable
iD
- A Variant (in)key
- The key (in)bCtrl
- The bCtrl (in, optional, pass false if not required)bAlt
- The bAlt (in, optional, pass false if not required)bShift
- The bShift (in, optional, pass false if not required)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IAccelerator
public IArray find(Object iD) throws IOException, AutomationException
ID specifies the unique identifier of a command. For built-in commands, use the UID. For VBA macros and UIControls, use a string representing the full name of the command.
find
in interface IAcceleratorTable
iD
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IAccelerator findByKey(int key, boolean bCtrl, boolean bAlt, boolean bShift) throws IOException, AutomationException
Key The keycode used for this accelerator.
bCtrl True if the Ctrl key is one of the keys used in the accelerator; otherwise False.
bAlt True if the Alt key is one of the keys used in the accelerator; otherwise False.
bShift True if the Shift key is one of the keys used in the accelerator; otherwise False.
findByKey
in interface IAcceleratorTable
key
- The key (in)bCtrl
- The bCtrl (in, optional, pass false if not required)bAlt
- The bAlt (in, optional, pass false if not required)bShift
- The bShift (in, optional, pass false if not required)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IAccelerator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |