|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.arcmapui.GNetCommandHandler
public class GNetCommandHandler
GNet Command Handler.
Constructor Summary | |
---|---|
GNetCommandHandler()
Constructs a GNetCommandHandler using ArcGIS Engine. |
|
GNetCommandHandler(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. GNetCommandHandler theGNetCommandHandler = (GNetCommandHandler) obj; |
Method Summary | |
---|---|
boolean |
canExecute(String command)
Indicates if the DDE command can be executed. |
boolean |
equals(Object o)
Compare this object with another |
void |
execute(String command)
Executes the DDE command. |
static String |
getClsid()
getClsid. |
int |
hashCode()
the hashcode for this object |
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 GNetCommandHandler() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic GNetCommandHandler(Object obj) throws IOException
GNetCommandHandler theGNetCommandHandler = (GNetCommandHandler) obj;
obj
to GNetCommandHandler
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public boolean canExecute(String command) throws IOException, AutomationException
For any class which implements IDDECommandHandler and which is registered in the "ESRI MX DDECommandHandlers" category, ArcMap will call this function whenever a DDE message is received to check if the class can accept the incoming DDE Command string. Returning TRUE from this function will cause ArcMap to call the Execute procedure where any required operations may be carried out. Typically the CanExecute function will check that the incoming Command string is of the format expected by the Execute code.
Depending upon the DDE Client involved the incoming Command string may need to be converted from ANSI to Unicode to be useful within the VB environment. Code such as the following can be used to do the conversion where StrCommUni is a string variable used to hold the unicode version of the Command string:
StrCommUni = StrConv(Command, vbUnicode))
canExecute
in interface IDDECommandHandler
command
- The command (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void execute(String command) throws IOException, AutomationException
Execute may be used to respond to incoming DDE messages and carry out an appropriate task. For a class implementing IDDECommandHandler, ArcMap will only call Execute if the previous call to CanExecute returned TRUE.
Depending upon the DDE Client involved the incoming Command string may need to be converted from ANSI to Unicode to be useful within the VB environment. Code such as the following can be used to do the conversion where StrCommUni is a string variable used to hold the unicode version of the Command string:
StrCommUni = StrConv(Command, vbUnicode))
execute
in interface IDDECommandHandler
command
- The command (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 |