|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.framework.Accelerator
public class Accelerator
Accelerator object.
An Accelerator is a mapping between a particular keyboard combination and a command. When you press the combination of keys on the keyboard, the command is executed. For example, Ctrl-C is a well-known accelerator for copying something in Windows. Some commands in the application already have accelerators assigned to them but you can also assign additional accelerators to these commands.
Use the IAcceleratorTable.Add method to create an accelerator.
Constructor Summary | |
---|---|
Accelerator(Object obj)
Construct a Accelerator using a reference to such an object returned from ArcGIS Engine or Server. |
Method Summary | |
---|---|
void |
delete()
Removes this accelerator from the accelerator table. |
boolean |
equals(Object o)
Compare this object with another |
Object |
getCommandID()
The identifier of the command that this accelerator activates. |
int |
getKey()
The keycode for this accelerator. |
int |
hashCode()
the hashcode for this object |
boolean |
isAlt()
Indicates if the Alt key is pressed for this accelerator. |
boolean |
isCtrl()
Indicates if the Ctrl key is pressed for this accelerator. |
boolean |
isShift()
Indicates if the Shift key is pressed for this accelerator. |
void |
setAlt(boolean bAlt)
Indicates if the Alt key is pressed for this accelerator. |
void |
setCommandID(Object cmdID)
The identifier of the command that this accelerator activates. |
void |
setCtrl(boolean bCtrl)
Indicates if the Ctrl key is pressed for this accelerator. |
void |
setKey(int keyCode)
The keycode for this accelerator. |
void |
setShift(boolean bShift)
Indicates if the Shift key is pressed for this accelerator. |
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 Accelerator(Object obj) throws IOException
obj
to Accelerator
. *
Accelerator o = (Accelerator)obj; // will not work
Accelerator o = new Accelerator(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server
IOException
- if there are interop problems
Accelerator theAccelerator = (Accelerator) obj;
Method Detail |
---|
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void setShift(boolean bShift) throws IOException, AutomationException
setShift
in interface IAccelerator
bShift
- The bShift (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isShift() throws IOException, AutomationException
Use True if the Shift key is one of the keys used in the accelerator; otherwise use False.
isShift
in interface IAccelerator
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setAlt(boolean bAlt) throws IOException, AutomationException
setAlt
in interface IAccelerator
bAlt
- The bAlt (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isAlt() throws IOException, AutomationException
Use True if the Alt key is one of the keys used in the accelerator; otherwise use False.
isAlt
in interface IAccelerator
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setCtrl(boolean bCtrl) throws IOException, AutomationException
setCtrl
in interface IAccelerator
bCtrl
- The bCtrl (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isCtrl() throws IOException, AutomationException
Use True if the Ctrl key is one of the keys used in the accelerator; otherwise use False.
isCtrl
in interface IAccelerator
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setKey(int keyCode) throws IOException, AutomationException
anAccelerator.Key = vbKeyA
Dim x as Long x = anAccelerator.Key
setKey
in interface IAccelerator
keyCode
- The keyCode (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getKey() throws IOException, AutomationException
getKey
in interface IAccelerator
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setCommandID(Object cmdID) throws IOException, AutomationException
setCommandID
in interface IAccelerator
cmdID
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object getCommandID() throws IOException, AutomationException
value specifies the unique identifier of the command. For built-in commands, use the UID. For VBA macros and UIControls, use a string representing the full name of the command.
getCommandID
in interface IAccelerator
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void delete() throws IOException, AutomationException
delete
in interface IAccelerator
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 |